mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-19 08:37:18 +00:00
Merge branch 'master' of https://github.com/Shadowss/TravianZ.git
This commit is contained in:
+23
-22
@@ -1,29 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
$textArray = ["Natars Spawn", "WW Spawn", "WW Plan Spawn"];
|
||||||
|
$newTextArray = ["Natars Tribe", "WW Village", "Construction Plan"];
|
||||||
|
$spawnTimeArray = [NATARS_SPAWN_TIME, NATARS_WW_SPAWN_TIME, NATARS_WW_BUILDING_PLAN_SPAWN_TIME];
|
||||||
|
$areSpawned = [$database->areArtifactsSpawned(), $database->areWWVillagesSpawned(), $database->areArtifactsSpawned(true)];
|
||||||
|
|
||||||
|
?>
|
||||||
<h5><img src="img/en/t2/newsbox2.gif" alt="newsbox 2"></h5>
|
<h5><img src="img/en/t2/newsbox2.gif" alt="newsbox 2"></h5>
|
||||||
<div class="news">
|
<div class="news">
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
|
<?php for($i = 0; $i < count($spawnTimeArray); $i++){ ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>Natars spawn</b></td>
|
<td><b>
|
||||||
|
<?php
|
||||||
|
if($areSpawned[$i]) echo $newTextArray[$i];
|
||||||
|
else echo $textArray[$i];
|
||||||
|
?></b></td>
|
||||||
<td><b>: <font color="Red"><?php
|
<td><b>: <font color="Red"><?php
|
||||||
$time = strtotime(START_DATE); // Date of server installation (the countdown for the appearance of Natars begins)
|
if($areSpawned[$i]) echo "Released";
|
||||||
$interval = NATARS_SPAWN_TIME * 24 * 3600; // The number of seconds in the number of days that is set for the appearance of Natars
|
else
|
||||||
$time += $interval;
|
{
|
||||||
echo date('m/d/Y', $time); ?></font></b></td>
|
$time = strtotime(START_DATE); // Date of server started (the countdown for the appearance of Natars begins)
|
||||||
</tr>
|
$interval = $spawnTimeArray[$i] * 86400; // The number of seconds in the number of days that is set for the appearance of Natars
|
||||||
<tr>
|
echo date('d.m.Y', $time + $interval);
|
||||||
<td><b>WW spawn</b></td>
|
}
|
||||||
<td><b>: <font color="Red"><?php
|
?></font></b></td>
|
||||||
$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>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>
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user