mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-08 21:56:09 +00:00
first commit
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
<div id="content" class="messages">
|
||||
<h1>Messages</h1>
|
||||
<?php
|
||||
include("menu.tpl");
|
||||
?>
|
||||
<form method="post" action="nachrichten.php" name="msg" ><input type="hidden" name="ft" value="m5" /><table cellpadding="1" cellspacing="1" id="overview">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Subject</th>
|
||||
<th>Sender</th>
|
||||
<th class="sent"><a href="nachrichten.php?s=0&t=3&o=1">Sent</a></th>
|
||||
</tr></thead><tfoot><tr><th>
|
||||
<input class="check" type="checkbox" id="s10" name="s10" onclick="Allmsg(this.form);" />
|
||||
</th>
|
||||
<th colspan="2" class="buttons">
|
||||
<input name="delmsg" value="delete" type="image" id="btn_delete" class="dynamic_img" src="img/x.gif" alt="delete" /> <input name="start" type="image" value="Back" alt="Back" id="btn_back" class="dynamic_img" src="img/x.gif" /></th>
|
||||
<th class="navi"><?php
|
||||
if(!isset($_GET['s']) && count($message->archived) < 10) {
|
||||
echo "«»";
|
||||
}
|
||||
else if (!isset($_GET['s']) && count($message->archived) > 10) {
|
||||
echo "«<a href=\"?s=10&o=0\">»</a>";
|
||||
}
|
||||
else if(isset($_GET['s']) && count($message->archived) > $_GET['s']) {
|
||||
if(count($message->archived) > ($_GET['s']+10) && $_GET['s']-10 < count($message->archived) && $_GET['s'] != 0) {
|
||||
echo "<a href=\"?s=".($_GET['s']-10)."&o=0\">«</a><a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else if(count($message->archived) > $_GET['s']+10) {
|
||||
echo "«<a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else {
|
||||
echo "<a href=\"?s=".($_GET['s']-10)."&o=0\">«</a>»";
|
||||
}
|
||||
}
|
||||
?></th></tr></tfoot><tbody>
|
||||
<?php
|
||||
if(isset($_GET['s'])) {
|
||||
$s = $_GET['s'];
|
||||
}
|
||||
else {
|
||||
$s = 0;
|
||||
}
|
||||
$name = 1;
|
||||
for($i=(1+$s);$i<=(10+$s);$i++) {
|
||||
if(count($message->archived) >= $i) {
|
||||
if($message->archived[$i-1]['owner'] == 0) {
|
||||
echo "<tr class=\"sup\">";
|
||||
}
|
||||
else {
|
||||
echo "<tr>";
|
||||
}
|
||||
echo "<td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n".$name."\" value=\"".$message->archived[$i-1]['id']."\" /></td>
|
||||
<td class=\"top\"><a href=\"nachrichten.php?id=".$message->archived[$i-1]['id']."\">".$message->archived[$i-1]['topic']."</a> ";
|
||||
if($message->archived[$i-1]['viewed'] == 0) {
|
||||
echo "(new)";
|
||||
}
|
||||
$date = $generator->procMtime($message->archived[$i-1]['time']);
|
||||
echo "</td><td class=\"send\"><a href=\"spieler.php?uid=".$message->archived[$i-1]['owner']."\"><u>".$database->getUserField($message->archived[$i-1]['owner'],'username',0)."</u></a></td>
|
||||
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
||||
}
|
||||
$name++;
|
||||
}
|
||||
if(count($message->archived) == 0) {
|
||||
echo "<td colspan=\"4\" class=\"none\">There are no messages available in the archive.</td></tr>";
|
||||
}
|
||||
?>
|
||||
</tbody></table>
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,84 @@
|
||||
<div id="content" class="messages">
|
||||
<h1>Messages</h1>
|
||||
<?php
|
||||
include("menu.tpl");
|
||||
?>
|
||||
<form method="post" action="nachrichten.php" name="msg" ><table cellpadding="1" cellspacing="1" id="overview">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Subject</th>
|
||||
<th>Sender</th>
|
||||
<th class="sent">Sent</th>
|
||||
</tr></thead><tfoot><tr><th>
|
||||
<?php
|
||||
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
|
||||
$golds = mysql_fetch_array($MyGold);
|
||||
$date2=strtotime("NOW");
|
||||
if ($golds['plus'] <= $date2) { ?>
|
||||
<?php } else { ?>
|
||||
<input class="check" type="checkbox" id="s10" name="s10" onclick="Allmsg(this.form);" />
|
||||
<?php } ?>
|
||||
</th>
|
||||
<th colspan="2" class="buttons">
|
||||
<input name="delmsg" value="delete" type="image" id="btn_delete" class="dynamic_img" src="img/x.gif" alt="delete" />
|
||||
<?php if($session->plus) { echo "<input name=\"archive\" value=\"Archive\" type=\"image\" id=\"btn_archiv\" class=\"dynamic_img\" src=\"img/x.gif\" alt=\"Archive\" />"; } ?>
|
||||
<input name="ft" value="m3" type="hidden" />
|
||||
</th><th class="navi"><?php
|
||||
if(!isset($_GET['s']) && count($message->inbox) < 10) {
|
||||
echo "«»";
|
||||
}
|
||||
else if (!isset($_GET['s']) && count($message->inbox) > 10) {
|
||||
echo "«<a href=\"?s=10&o=0\">»</a>";
|
||||
}
|
||||
else if(isset($_GET['s']) && count($message->inbox) > $_GET['s']) {
|
||||
if(count($message->inbox) > ($_GET['s']+10) && $_GET['s']-10 < count($message->inbox) && $_GET['s'] != 0) {
|
||||
echo "<a href=\"?s=".($_GET['s']-10)."&o=0\">«</a><a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else if(count($message->inbox) > $_GET['s']+10) {
|
||||
echo "«<a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else {
|
||||
echo "<a href=\"?s=".($_GET['s']-10)."&o=0\">«</a>»";
|
||||
}
|
||||
}
|
||||
?></th></tr></tfoot><tbody>
|
||||
<?php
|
||||
if(isset($_GET['s'])) {
|
||||
$s = $_GET['s'];
|
||||
}
|
||||
else {
|
||||
$s = 0;
|
||||
}
|
||||
$name = 1;
|
||||
for($i=(1+$s);$i<=(10+$s);$i++) {
|
||||
if(count($message->inbox) >= $i) {
|
||||
if($message->inbox[$i-1]['owner'] <= 1) {
|
||||
echo "<tr class=\"sup\">";
|
||||
}
|
||||
else {
|
||||
echo "<tr>";
|
||||
}
|
||||
echo "<td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n".$name."\" value=\"".$message->inbox[$i-1]['id']."\" /></td>
|
||||
<td class=\"top\"><a href=\"nachrichten.php?id=".$message->inbox[$i-1]['id']."\">".$message->inbox[$i-1]['topic']."</a> ";
|
||||
if($message->inbox[$i-1]['viewed'] == 0) {
|
||||
echo "(new)";
|
||||
}
|
||||
$date = $generator->procMtime($message->inbox[$i-1]['time']);
|
||||
if($message->inbox[$i-1]['owner'] <= 1) {
|
||||
echo "</td><td class=\"send\"><a><u>".$database->getUserField($message->inbox[$i-1]['owner'],'username',0)."</u></a></td>
|
||||
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
||||
}
|
||||
else {
|
||||
echo "</td><td class=\"send\"><a href=\"spieler.php?uid=".$message->inbox[$i-1]['owner']."\">".$database->getUserField($message->inbox[$i-1]['owner'],'username',0)."</a></td>
|
||||
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
||||
}
|
||||
}
|
||||
$name++;
|
||||
}
|
||||
if(count($message->inbox) == 0) {
|
||||
echo "<td colspan=\"4\" class=\"none\">There are no messages available.</td></tr>";
|
||||
}
|
||||
?>
|
||||
</tbody></table>
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div id="textmenu">
|
||||
<a href="nachrichten.php" <?php if(!isset($_GET['t'])) { echo "class=\"selected\""; } ?>>Inbox</a>
|
||||
| <a href="nachrichten.php?t=1" <?php if(isset($_GET['t']) && $_GET['t'] == 1) { echo "class=\"selected\""; } ?> >Write</a>
|
||||
| <a href="nachrichten.php?t=2" <?php if(isset($_GET['t']) && $_GET['t'] == 2) { echo "class=\"selected\""; } ?> >Sent</a>
|
||||
<?php if($session->plus) {
|
||||
echo " | <a href=\"nachrichten.php?t=3\"";
|
||||
if(isset($_GET['t']) && $_GET['t'] == 3) { echo "class=\"selected\""; }
|
||||
echo ">Archive</a> | <a href=\"nachrichten.php?t=4\"";
|
||||
if(isset($_GET['t']) && $_GET['t'] == 4) { echo "class=\"selected\""; }
|
||||
echo ">Notes</a>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<div id="content" class="messages">
|
||||
<h1>Messages</h1>
|
||||
<?php
|
||||
include("menu.tpl");
|
||||
?>
|
||||
<form method="post" action="nachrichten.php">
|
||||
<div id="block">
|
||||
<input type="hidden" name="ft" value="m6" />
|
||||
<textarea name="notizen" id="notice"><?php echo $message->note; ?></textarea>
|
||||
<p class="btn"><input id="btn_save" type="image" value="" name="s1" src="img/x.gif" class="dynamic_img" alt"save" /><br />
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
$input = $message->reading['message'];
|
||||
include("GameEngine/BBCode.php");
|
||||
?>
|
||||
<div id="content" class="messages">
|
||||
<h1>Messages</h1>
|
||||
<?php
|
||||
include("menu.tpl");
|
||||
?>
|
||||
<form method="post" action="nachrichten.php">
|
||||
|
||||
<div id="read_head" class="msg_head"></div>
|
||||
<div id="read_content" class="msg_content">
|
||||
<img src="img/x.gif" id="label" class="read" alt="" />
|
||||
<div id="heading">
|
||||
<div><?php echo $database->getUserField($message->reading['owner'],"username",0); ?></div>
|
||||
<div><?php echo $message->reading['topic']; ?></div>
|
||||
</div>
|
||||
<div id="time">
|
||||
<div><?php $date = $generator->procMtime($message->reading['time']);echo $date[0]; ?></div>
|
||||
<div><?php echo $date[1]; ?></div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="line"></div>
|
||||
<div class="message"><?php echo nl2br($bbcoded); ?></div>
|
||||
<input type="hidden" name="id" value="<?php echo $message->reading['id']; ?>" />
|
||||
<input type="hidden" name="ft" value="m1" />
|
||||
<input type="hidden" name="t" value="1" />
|
||||
<p class="btn">
|
||||
<input type="image" value="" name="s1" id="btn_reply" class="dynamic_img" src="img/x.gif" alt="answer" />
|
||||
</p>
|
||||
</div>
|
||||
<div id="read_foot" class="msg_foot"></div>
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
/** --------------------------------------------------- **\
|
||||
| ********* DO NOT REMOVE THIS COPYRIGHT NOTICE ********* |
|
||||
+---------------------------------------------------------+
|
||||
| Credits: All the developers including the leaders: |
|
||||
| Advocaite & Dzoki & Donnchadh |
|
||||
| |
|
||||
| Copyright: TravianX Project All rights reserved |
|
||||
\** --------------------------------------------------- **/
|
||||
|
||||
?>
|
||||
<div id="content" class="messages">
|
||||
<h1>Messages</h1>
|
||||
<?php include("menu.tpl"); ?>
|
||||
<form method="post" action="nachrichten.php" name="msg">
|
||||
<input type="hidden" name="ft" value="m4" />
|
||||
<table cellpadding="1" cellspacing="1" id="overview">
|
||||
<thead><tr>
|
||||
<th></th>
|
||||
<th>Subject</th>
|
||||
<th>Recipient</th>
|
||||
<th class="sent"><a href="nachrichten.php?s=0&t=2&o=1">Sent</a></th>
|
||||
</tr></thead><tfoot><tr><th><?php
|
||||
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
|
||||
$golds = mysql_fetch_array($MyGold);
|
||||
$date2=strtotime("NOW");
|
||||
if ($golds['plus'] <= $date2) { ?>
|
||||
<?php } else { ?>
|
||||
<input class="check" type="checkbox" id="s10" name="s10" onclick="Allmsg(this.form);" />
|
||||
<?php } ?></th>
|
||||
<th colspan="2" class="buttons"><input name="delmsg" value="delete" type="image" id="btn_delete" class="dynamic_img" src="img/x.gif" alt="delete" /></th><th class="navi"><?php
|
||||
if(!isset($_GET['s']) && count($message->sent) < 10) {
|
||||
echo "«»";
|
||||
}
|
||||
else if (!isset($_GET['s']) && count($message->sent) > 10) {
|
||||
echo "«<a href=\"?s=10&o=0\">»</a>";
|
||||
}
|
||||
else if(isset($_GET['s']) && count($message->sent) > $_GET['s']) {
|
||||
if(count($message->sent) > ($_GET['s']+10) && $_GET['s']-10 < count($message->sent) && $_GET['s'] != 0) {
|
||||
echo "<a href=\"?s=".($_GET['s']-10)."&o=0\">«</a><a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else if(count($message->sent) > $_GET['s']+10) {
|
||||
echo "«<a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else {
|
||||
echo "<a href=\"?s=".($_GET['s']-10)."&o=0\">«</a>»";
|
||||
}
|
||||
}
|
||||
?></th></tr></tfoot>
|
||||
<tbody>
|
||||
<?php
|
||||
if(isset($_GET['s'])) {
|
||||
$s = $_GET['s'];
|
||||
}
|
||||
else {
|
||||
$s = 0;
|
||||
}
|
||||
$name = 1;
|
||||
for($i=(1+$s);$i<=(10+$s);$i++) {
|
||||
if(count($message->sent) >= $i) {
|
||||
if($message->sent[$i-1]['target'] == 0) {
|
||||
echo "<tr class=\"sup\">";
|
||||
}
|
||||
else {
|
||||
echo "<tr>";
|
||||
}
|
||||
echo "<td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n".$name."\" value=\"".$message->sent[$i-1]['id']."\" /></td>
|
||||
<td class=\"top\"><a href=\"nachrichten.php?id=".$message->sent[$i-1]['id']."\">".$message->sent[$i-1]['topic']."</a> ";
|
||||
if($message->sent[$i-1]['viewed'] == 0) {
|
||||
echo "(unread)";
|
||||
}
|
||||
$date = $generator->procMtime($message->sent[$i-1]['time']);
|
||||
echo "</td><td class=\"send\"><a href=\"spieler.php?uid=".$message->sent[$i-1]['target']."\">".$database->getUserField($message->sent[$i-1]['target'],'username',0)."</a></td>
|
||||
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
||||
}
|
||||
$name++;
|
||||
}
|
||||
if(count($message->sent) == 0) {
|
||||
echo "<td colspan=\"4\" class=\"none\">There are no sent messages available.</td></tr>";
|
||||
}
|
||||
?>
|
||||
</tbody></table>
|
||||
</form>
|
||||
</div>
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user