From 9510ca348aaf732a8b6014c3598095b81af22e2c Mon Sep 17 00:00:00 2001 From: Emil Date: Sat, 23 May 2015 23:40:57 +0200 Subject: [PATCH] Update serverinfo.php Temporarly fix to solve problems with serverinfo on linux. Made it possible to see loot/magic/skills even if you use stages. --- serverinfo.php | 50 +++++++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 23 deletions(-) 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 "
"; 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 ''; } } - echo '
Minium levelMaximun levelMultiplier
'.$stages['minlevel'].'
'.$stages['maxlevel'].'
x'.$stages['multiplier'].'
'; - + } else { - // Not using stages - echo "

Server rates

- - - + echo "
Experience rateSkills rateMagic rateLoot rate
x".$lua_path['rateExp']."
x".$lua_path['rateSkill']."
x".$lua_path['rateMagic']."
x".$lua_path['rateLoot']."
+ +
Experience rate
x".$lua_path['rateExp']."
"; } + echo " + + +
Skills rateMagic rateLoot 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

'; } else { - echo '

Invliad PATH, please check your config file

'; } -?> - \ No newline at end of file +include 'layout/overall/footer.php'; ?>