chore: version change and some forgotten files :P

This commit is contained in:
Martin Ambrus
2017-11-26 17:52:21 +01:00
parent cb148b9aec
commit d247e5fa27
4 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[![Code Triagers Badge](https://www.codetriage.com/shadowss/travianz/badges/users.svg)](https://www.codetriage.com/shadowss/travianz) [![Join the chat at https://gitter.im/TravianZ-V8/Lobby](https://badges.gitter.im/TravianZ-V8/Lobby.svg)](https://gitter.im/TravianZ-V8/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Code Triagers Badge](https://www.codetriage.com/shadowss/travianz/badges/users.svg)](https://www.codetriage.com/shadowss/travianz) [![Join the chat at https://gitter.im/TravianZ-V8/Lobby](https://badges.gitter.im/TravianZ-V8/Lobby.svg)](https://gitter.im/TravianZ-V8/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
TravianZ Version v.8.3.3 BETA b2 TravianZ Version v.8.3.3 BETA b3
Download and updates : https://github.com/Shadowss/TravianZ Download and updates : https://github.com/Shadowss/TravianZ
+5 -5
View File
@@ -8,7 +8,7 @@
<tr> <tr>
<th colspan="2">Subject</th> <th colspan="2">Subject</th>
<th>Sender</th> <th>Sender</th>
<th class="sent"><a href="nachrichten.php?o=1">Sent</a></th> <th class="sent">Sent</th>
</tr></thead><tfoot><tr><th> </tr></thead><tfoot><tr><th>
<?php <?php
$MyGold = mysqli_query($GLOBALS['link'],"SELECT plus FROM ".TB_PREFIX."users WHERE `id`='".(int) $session->uid."'") or die(mysqli_error($database->dblink)); $MyGold = mysqli_query($GLOBALS['link'],"SELECT plus FROM ".TB_PREFIX."users WHERE `id`='".(int) $session->uid."'") or die(mysqli_error($database->dblink));
@@ -28,17 +28,17 @@
echo "&laquo;&raquo;"; echo "&laquo;&raquo;";
} }
else if (!isset($_GET['s']) && count($message->inbox1) > 10) { else if (!isset($_GET['s']) && count($message->inbox1) > 10) {
echo "&laquo;<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&amp;' : '')."s=10&o=".(!empty($_GET['o']) ? $_GET['o'] : 0)."\">&raquo;</a>"; echo "&laquo;<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&amp;' : '')."s=10&o=".(!empty($_GET['o']) )."\">&raquo;</a>";
} }
else if(isset($_GET['s']) && count($message->inbox1) > $_GET['s']) { else if(isset($_GET['s']) && count($message->inbox1) > $_GET['s']) {
if(count($message->inbox1) > ($_GET['s']+10) && $_GET['s']-10 < count($message->inbox1) && $_GET['s'] != 0) { if(count($message->inbox1) > ($_GET['s']+10) && $_GET['s']-10 < count($message->inbox1) && $_GET['s'] != 0) {
echo "<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&amp;' : '')."s=".($_GET['s']-10)."&o=".(!empty($_GET['o']) ? $_GET['o'] : 0)."\">&laquo;</a><a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&amp;' : '')."s=".($_GET['s']+10)."&o=".(!empty($_GET['o']) ? $_GET['o'] : 0)."\">&raquo;</a>"; echo "<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&amp;' : '')."s=".($_GET['s']-10)."&o=0\">&laquo;</a><a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&amp;' : '')."s=".($_GET['s']+10)."&o=0\">&raquo;</a>";
} }
else if(count($message->inbox1) > $_GET['s']+10) { else if(count($message->inbox1) > $_GET['s']+10) {
echo "&laquo;<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&amp;' : '')."s=".($_GET['s']+10)."&o=".(!empty($_GET['o']) ? $_GET['o'] : 0)."\">&raquo;</a>"; echo "&laquo;<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&amp;' : '')."s=".($_GET['s']+10)."&o=0\">&raquo;</a>";
} }
else { else {
echo "<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&amp;' : '')."s=".($_GET['s']-10)."&o=".(!empty($_GET['o']) ? $_GET['o'] : 0)."\">&laquo;</a>&raquo;"; echo "<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&amp;' : '')."s=".($_GET['s']-10)."&o=0\">&laquo;</a>&raquo;";
} }
} }
?></th></tr></tfoot><tbody> ?></th></tr></tfoot><tbody>
+1 -1
View File
@@ -22,7 +22,7 @@
<div class="footer-menu"> <div class="footer-menu">
<center><br /> <center><br />
<div class="copyright">&copy; 2010 - <?php echo date('Y') . ' ' . (defined('SERVER_NAME') ? SERVER_NAME : 'TravianZ');?> All rights reserved</div> <div class="copyright">&copy; 2010 - <?php echo date('Y') . ' ' . (defined('SERVER_NAME') ? SERVER_NAME : 'TravianZ');?> All rights reserved</div>
<div class="copyright">Server running on: <a href="version.php"><b><font color="Red">v.8.3.3 BETA b2</font></b></a> <div class="copyright">Server running on: <a href="version.php"><b><font color="Red">v.8.3.3 BETA b3</font></b></a>
</div> </div>
</div> </div>
</div></center> </div></center>
+4 -4
View File
@@ -15,18 +15,18 @@
namespace App\Utils; namespace App\Utils;
/** /**
* *
* Mathematics-related helpers. * Mathematics-related helpers.
* *
* @author martinambrus * @author martinambrus
* *
*/ */
class Math { class Math {
public static function isInt($val) { public static function isInt($val) {
return (is_numeric($val) && intval($val) === $val); return (is_numeric($val) && intval($val) === $val);
} }
public static function isFloat($val) { public static function isFloat($val) {
return (is_numeric($val) && floatval($val) === $val); return (is_numeric($val) && floatval($val) === $val);
} }