From 820f886354fd38c8880f9e586b960f2152280428 Mon Sep 17 00:00:00 2001 From: "rigaer@hotmail.es" Date: Fri, 16 May 2014 01:44:44 +0200 Subject: [PATCH 1/2] New serverinfo page --- config.php | 7 +++--- serverinfo.php | 62 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 65 insertions(+), 4 deletions(-) diff --git a/config.php b/config.php index 18f2352..4148223 100644 --- a/config.php +++ b/config.php @@ -8,19 +8,20 @@ $config['site_title'] = 'Znote AAC'; $config['site_title_context'] = 'Because open communities are good communities. :3'; + $config['server_path'] = 'C:\Users\Alvaro\Documents\GitHub\forgottenserver'; // ------------------------ \\ // MYSQL CONNECTION DETAILS \\ // ------------------------ \\ // phpmyadmin username for OT server: (DONT USE "root" if ur hosting to public.). - $config['sqlUser'] = 'tfs10'; + $config['sqlUser'] = 'root'; // phpmyadmin password for OT server: - $config['sqlPassword'] = 'tfs10'; + $config['sqlPassword'] = 'djramos1'; // The database name to connect to. (This is usually same as username). - $config['sqlDatabase'] = 'tfs10'; + $config['sqlDatabase'] = 'znote'; // Hostname is usually localhost or 127.0.0.1. $config['sqlHost'] = 'localhost'; diff --git a/serverinfo.php b/serverinfo.php index 25a4bd5..24289bf 100644 --- a/serverinfo.php +++ b/serverinfo.php @@ -1,6 +1,66 @@

Server Information

-

Edit this page for server information.

+Here you will find all basic information about '.$config['site_title'].''; ?> +config['enabled'] != 0) { + + // Stages are beeing used + echo "

Server stages

+ + "; + + foreach ($stages_path->children()->stage as $stages) { + + if($stages['maxlevel'] === NULL) { + echo ''; + } else { + echo ''; + } + } + + echo '
Minium levelMaximun levelMultiplier
'.$stages['minlevel'].'
Infinite
x'.$stages['multiplier'].'
'.$stages['minlevel'].'
'.$stages['maxlevel'].'
x'.$stages['multiplier'].'
'; + +} else { + + // Not using stages + echo "

Server rates

+ + + +
Experience rateSkills rateMagic rateLoot rate
x".$lua_path['rateExp']."
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['protectionLevel'], + 'Kills to black skull' => $lua_path['killsToBlackSkull'], + 'Remove ammo' => $lua_path['removeAmmoWhenUsingDistanceWeapon'], + 'Remove runes' => $lua_path['removeChargesFromRunes'], + 'Time to decrease frags' => $lua_path['timeToDecreaseFrags'], + 'House rent period' => $lua_path['houseRentPeriod'], + 'AFK Kickout minutes' => $lua_path['kickIdlePlayerAfterMinutes'], + 'Location' => $lua_path['location'], + 'Owner name' => $lua_path['ownerName'] + +); + +echo "

Server general information

'; + +?> \ No newline at end of file From 52c3c77ab4f35810c337250a3316a790dafcea42 Mon Sep 17 00:00:00 2001 From: Alvaritos Date: Fri, 16 May 2014 01:47:14 +0200 Subject: [PATCH 2/2] Update config.php --- config.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/config.php b/config.php index 4148223..2d9a4e5 100644 --- a/config.php +++ b/config.php @@ -8,20 +8,23 @@ $config['site_title'] = 'Znote AAC'; $config['site_title_context'] = 'Because open communities are good communities. :3'; - $config['server_path'] = 'C:\Users\Alvaro\Documents\GitHub\forgottenserver'; + + // Path to server folder without / Example: C:\Users\Alvaro\Documents\GitHub\forgottenserver + $config['server_path'] = ''; + // ------------------------ \\ // MYSQL CONNECTION DETAILS \\ // ------------------------ \\ // phpmyadmin username for OT server: (DONT USE "root" if ur hosting to public.). - $config['sqlUser'] = 'root'; + $config['sqlUser'] = 'tfs10'; // phpmyadmin password for OT server: - $config['sqlPassword'] = 'djramos1'; + $config['sqlPassword'] = 'tfs10'; // The database name to connect to. (This is usually same as username). - $config['sqlDatabase'] = 'znote'; + $config['sqlDatabase'] = 'tfs10'; // Hostname is usually localhost or 127.0.0.1. $config['sqlHost'] = 'localhost';