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
+1 -1
View File
@@ -173,7 +173,7 @@ function refresh(tz) {
<option value="5" <?php if(DEMOLISH_LEVEL_REQ == "5") echo "selected";?>>5</option>
<option value="10" <?php if(DEMOLISH_LEVEL_REQ == "10") echo "selected";?>>10 - Default</option>
<option value="15" <?php if(DEMOLISH_LEVEL_REQ == "15") echo "selected";?>>15</option>
<option value="20"> <?php if(DEMOLISH_LEVEL_REQ == "20") echo "selected";?>20</option>
<option value="20" <?php if(DEMOLISH_LEVEL_REQ == "20") echo "selected";?>>20</option>
</select>
</td>
</tr>
+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>