mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 16:44:24 +00:00
Merge branch 'master' of https://github.com/Shadowss/TravianZ.git
This commit is contained in:
+18
-48
@@ -1,59 +1,29 @@
|
||||
<h5><img src="img/en/t2/newsbox2.gif" alt="newsbox 2"></h5>
|
||||
<?php
|
||||
|
||||
$online = mysqli_query($database->dblink,"SELECT Count(*) as Total FROM " . TB_PREFIX . "users WHERE timestamp > ".(time() - (60*10))." AND tribe!=0 AND tribe!=4 AND tribe!=5");
|
||||
|
||||
?>
|
||||
|
||||
<div class="news">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="left"><b>Online Users</b></td>
|
||||
<td>: <font color="Red"><b><?php
|
||||
|
||||
if (!empty($online)) {
|
||||
echo mysqli_fetch_assoc($online)['Total'];
|
||||
} else {
|
||||
echo 0;
|
||||
}
|
||||
|
||||
?> users</b></font></td>
|
||||
<td><b>Natars spawn</b></td>
|
||||
<td><b>: <font color="Red"><?php
|
||||
$time = strtotime(START_DATE); // Date of server installation (the countdown for the appearance of Natars begins)
|
||||
$interval = NATARS_SPAWN_TIME * 24 * 3600; // The number of seconds in the number of days that is set for the appearance of Natars
|
||||
$time += $interval;
|
||||
echo date('m/d/Y', $time); ?></font></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Server Speed</b></td>
|
||||
<td><b>: <font color="Red"><?php echo ''.SPEED.'x';?></font></b></td>
|
||||
<td><b>WW spawn</b></td>
|
||||
<td><b>: <font color="Red"><?php
|
||||
$time = strtotime(START_DATE); // Date of server installation (the countdown for the appearance of Natars begins)
|
||||
$interval = NATARS_WW_SPAWN_TIME * 24 * 3600; // The number of seconds in the number of days that is set for the appearance of WW village
|
||||
$time += $interval;
|
||||
echo date('m/d/Y', $time); ?></font></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Troop Speed</b></td>
|
||||
<td><b>: <font color="Red"><?php echo INCREASE_SPEED;?>x</font></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Evasion Speed</b></td>
|
||||
<td><b>: <font color="Red"><?php echo EVASION_SPEED;?></font></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Map Size</b></td>
|
||||
<td><b>: <font color="Red"><?php echo WORLD_MAX;?>x<?php echo WORLD_MAX;?></font></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Village Exp.</b></td>
|
||||
<td><b>: <font color="Red"><?php if(CP == 0){ echo "Fast"; } else if(CP == 1){ echo "Slow"; } ?></font></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Beginners Prot.</b></td>
|
||||
<td><b>: <font color="Red"><?php echo (PROTECTION/3600);?> hrs</font></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Medal Interval</b></td>
|
||||
<td><b>: <font color="Red"><?php if(MEDALINTERVAL >= 86400){ echo ''.(MEDALINTERVAL/86400).' Days'; } else if(MEDALINTERVAL < 86400){ echo ''.(MEDALINTERVAL/3600).' Hours'; } ?></font></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Server Start</b></td>
|
||||
<td><b>: <font color="Red"><?php echo START_DATE;?></font></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Peace system</b></td>
|
||||
<td><b>: <font color="Red"><?php echo (["None", "Normal", "Christmas", "New Year", "Easter"])[PEACE]; ?></font></b></td>
|
||||
<td><b>WW Plan spawn</b></td>
|
||||
<td><b>: <font color="Red"><?php
|
||||
$time = strtotime(START_DATE); // Date of server installation (the countdown for the appearance of Natars begins)
|
||||
$interval = NATARS_WW_BUILDING_PLAN_SPAWN_TIME * 24 * 3600; // The number of seconds in the number of days that is set for the appearance of Ancient Construction Plan
|
||||
$time += $interval;
|
||||
echo date('m/d/Y', $time); ?></font></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user