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
+
+ Minium level | Maximun level | Multiplier |
";
+
+ foreach ($stages_path->children()->stage as $stages) {
+
+ if($stages['maxlevel'] === NULL) {
+ echo ''.$stages['minlevel'].' | Infinite | x'.$stages['multiplier'].' |
';
+ } else {
+ 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']." |
+
";
+}
+
+// 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
";
+
+foreach ($information as $key => $value) {
+ echo "- ".$key." - ".$value."
";
+}
+
+echo '
';
+
+?>
\ No newline at end of file