Added a peace system in the newsbox

+Added displaying a peace system to the newsbox.
Small fix in Admin\Templates\editServerSet.tpl
This commit is contained in:
Vladyslav
2018-04-13 14:48:27 +03:00
parent fc7eb0ab84
commit 1b3f4eadd1
3 changed files with 15 additions and 1 deletions
+7
View File
@@ -53,6 +53,13 @@ $top_rank = mysqli_fetch_assoc(mysqli_query($database->dblink,"SELECT username F
<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
$peace_array=array("None","Normal","Christmas","New Year","Easter");
echo $peace_array[intval(PEACE)];
?></font></b></td>
</tr>
<tr>
<td><b>Best Player</td>
<td><b>: <font color="Red"><?php echo $top_rank['username'] ?></font></b></td>
</tr>
+7
View File
@@ -51,5 +51,12 @@ $online = mysqli_query($database->dblink,"SELECT Count(*) as Total FROM " . TB_P
<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
$peace_array=array("None","Normal","Christmas","New Year","Easter");
echo $peace_array[intval(PEACE)];
?></font></b></td>
</tr>
</table>
</div>