mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-25 05:56:13 +00:00
big update
This commit is contained in:
@@ -15,17 +15,17 @@ include("menu.tpl");
|
||||
<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) {
|
||||
if(!isset($_GET['s']) && count($message->archived)-count($database->getDelArchive($session->uid)) < 10) {
|
||||
echo "«»";
|
||||
}
|
||||
else if (!isset($_GET['s']) && count($message->archived) > 10) {
|
||||
else if (!isset($_GET['s']) && count($message->archived)-count($database->getDelArchive($session->uid)) > 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) {
|
||||
else if(isset($_GET['s']) && count($message->archived)-count($database->getDelArchive($session->uid)) > $_GET['s']) {
|
||||
if(count($message->archived)-count($database->getDelArchive($session->uid)) > ($_GET['s']+10) && $_GET['s']-10 < count($message->archived)-count($database->getDelArchive($session->uid)) && $_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) {
|
||||
else if(count($message->archived)-count($database->getDelArchive($session->uid)) > $_GET['s']+10) {
|
||||
echo "«<a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else {
|
||||
@@ -42,7 +42,7 @@ include("menu.tpl");
|
||||
}
|
||||
$name = 1;
|
||||
for($i=(1+$s);$i<=(10+$s);$i++) {
|
||||
if(count($message->archived) >= $i) {
|
||||
if(count($message->archived)-count($database->getDelArchive($session->uid)) >= $i) {
|
||||
if($message->archived[$i-1]['owner'] == 0) {
|
||||
echo "<tr class=\"sup\">";
|
||||
}
|
||||
@@ -60,7 +60,7 @@ include("menu.tpl");
|
||||
}
|
||||
$name++;
|
||||
}
|
||||
if(count($message->archived) == 0) {
|
||||
if(count($message->archived)-count($database->getDelArchive($session->uid)) == 0) {
|
||||
echo "<td colspan=\"4\" class=\"none\">There are no messages available in the archive.</td></tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -24,17 +24,17 @@ include("menu.tpl");
|
||||
<?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) {
|
||||
if(!isset($_GET['s']) && count($message->inbox)-count($database->getDelInbox($session->uid)) < 10) {
|
||||
echo "«»";
|
||||
}
|
||||
else if (!isset($_GET['s']) && count($message->inbox) > 10) {
|
||||
else if (!isset($_GET['s']) && count($message->inbox)-count($database->getDelInbox($session->uid)) > 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) {
|
||||
else if(isset($_GET['s']) && count($message->inbox)-count($database->getDelInbox($session->uid)) > $_GET['s']) {
|
||||
if(count($message->inbox)-count($database->getDelInbox($session->uid)) > ($_GET['s']+10) && $_GET['s']-10 < count($message->inbox)-count($database->getDelInbox($session->uid)) && $_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) {
|
||||
else if(count($message->inbox)-count($database->getDelInbox($session->uid)) > $_GET['s']+10) {
|
||||
echo "«<a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else {
|
||||
@@ -51,7 +51,7 @@ include("menu.tpl");
|
||||
}
|
||||
$name = 1;
|
||||
for($i=(1+$s);$i<=(10+$s);$i++) {
|
||||
if(count($message->inbox) >= $i) {
|
||||
if(count($message->inbox)-count($database->getDelInbox($session->uid)) >= $i) {
|
||||
if($message->inbox[$i-1]['owner'] <= 1) {
|
||||
echo "<tr class=\"sup\">";
|
||||
}
|
||||
@@ -75,7 +75,7 @@ include("menu.tpl");
|
||||
}
|
||||
$name++;
|
||||
}
|
||||
if(count($message->inbox) == 0) {
|
||||
if(count($message->inbox)-count($database->getDelInbox($session->uid)) == 0) {
|
||||
echo "<td colspan=\"4\" class=\"none\">There are no messages available.</td></tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -30,17 +30,17 @@
|
||||
<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) {
|
||||
if(!isset($_GET['s']) && count($message->sent)-count($database->getDelSent($session->uid)) < 10) {
|
||||
echo "«»";
|
||||
}
|
||||
else if (!isset($_GET['s']) && count($message->sent) > 10) {
|
||||
else if (!isset($_GET['s']) && count($message->sent)-count($database->getDelSent($session->uid)) > 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) {
|
||||
else if(isset($_GET['s']) && count($message->sent)-count($database->getDelSent($session->uid)) > $_GET['s']) {
|
||||
if(count($message->sent)-count($database->getDelSent($session->uid)) > ($_GET['s']+10) && $_GET['s']-10 < count($message->sent)-count($database->getDelSent($session->uid)) && $_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) {
|
||||
else if(count($message->sent)-count($database->getDelSent($session->uid)) > $_GET['s']+10) {
|
||||
echo "«<a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else {
|
||||
@@ -58,7 +58,7 @@
|
||||
}
|
||||
$name = 1;
|
||||
for($i=(1+$s);$i<=(10+$s);$i++) {
|
||||
if(count($message->sent) >= $i) {
|
||||
if(count($message->sent)-count($database->getDelSent($session->uid)) >= $i) {
|
||||
if($message->sent[$i-1]['target'] == 0) {
|
||||
echo "<tr class=\"sup\">";
|
||||
}
|
||||
@@ -76,7 +76,7 @@
|
||||
}
|
||||
$name++;
|
||||
}
|
||||
if(count($message->sent) == 0) {
|
||||
if(count($message->sent)-count($database->getDelSent($session->uid)) == 0) {
|
||||
echo "<td colspan=\"4\" class=\"none\">There are no sent messages available.</td></tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user