diff --git a/serverinfo.php b/serverinfo.php
index 8674e25..9044a8a 100644
--- a/serverinfo.php
+++ b/serverinfo.php
@@ -5,18 +5,27 @@ Here you will find all basic information about '.$config['site_ti
Server rates';
if ($stages_path->config['enabled'] != 0) {
-
// Stages are beeing used
- echo "
Server stages
-
+ echo "
Minium level | Maximun level | Multiplier |
";
foreach ($stages_path->children()->stage as $stages) {
@@ -27,23 +36,22 @@ if (file_exists($config['server_path'].'/data/xml/stages.xml') && file_exists($c
echo ''.$stages['minlevel'].' | '.$stages['maxlevel'].' | x'.$stages['multiplier'].' |
';
}
}
-
echo '
';
-
+
} else {
-
// Not using stages
- echo "Server rates
-
- Experience rate | Skills rate | Magic rate | Loot rate |
- x".$lua_path['rateExp']." | x".$lua_path['rateSkill']." | x".$lua_path['rateMagic']." | x".$lua_path['rateLoot']." |
+ echo "
+ Experience rate |
+ x".$lua_path['rateExp']." |
";
}
+ echo "
+ Skills rate | Magic rate | Loot rate |
+ x".$lua_path['rateSkill']." | x".$lua_path['rateMagic']." | x".$lua_path['rateLoot']." |
+
";
// General info
-
$information = array(
-
'World type' => $lua_path['worldType'],
'Protection level' => $lua_path['protectionLevel'],
'Kills to red skull' => $lua_path['killsToRedSkull'],
@@ -55,11 +63,9 @@ if (file_exists($config['server_path'].'/data/xml/stages.xml') && file_exists($c
'AFK Kickout minutes' => $lua_path['kickIdlePlayerAfterMinutes'],
'Location' => $lua_path['location'],
'Owner name' => $lua_path['ownerName']
-
);
echo "Server general information
";
-
foreach ($information as $key => $value) {
echo "- ".$key." - ".$value."
";
}
@@ -67,9 +73,7 @@ if (file_exists($config['server_path'].'/data/xml/stages.xml') && file_exists($c
echo '
';
} else {
-
echo 'Invliad PATH, please check your config file
';
}
-?>
-
\ No newline at end of file
+include 'layout/overall/footer.php'; ?>