Status
NameValue
Server'.(($config['status']['serverStatus_online'] == 1) ? 'Online' : 'Offline').'
Player Online'.$config['status']['serverStatus_players'].'
UpTime'.$config['status']['serverStatus_uptime'].'
Monster'.$config['status']['serverStatus_monsters'].'
NPC'.$config['status']['serverStatus_npcs'].'

'; if($config['server']['experienceStages'] == false) $rateExperience .= $config['server']['rateExperience'].'x'; else { $rateExperience .= ''; foreach($stages as $exp1) { $i = 0; $ots = (int) $exp1["id"]; if($ots > 0) $rateExperience .= ''; $rateExperience .= ''; foreach($exp1 as $exp) { if(isset($exp["maxlevel"])) $max = $exp["maxlevel"]; else $max = "-"; if(is_int($i/2)) $bgcolor=$config['site']['lightborder']; else $bgcolor=$config['site']['darkborder']; $rateExperience .= ''; $i++; } } $rateExperience .= '
Experience Stages on '.$config['site']['worlds'][$ots].'
From LevelTo LevelRate
'.$exp["minlevel"].''.$max.''.$exp["multiplier"].'x
'; } $main_content .= '
Rates
NameValue
Experience'.$rateExperience.'
Skill'.$config['server']['rateSkill'].'x
Magic'.$config['server']['rateMagic'].'x
Loot'.$config['server']['rateLoot'].'x
Spawn'.$config['server']['rateSpawn'].'x

'; foreach($servers as $server) { $v1 = $server['versionMin']; $v2 = $server['versionMax']; if($v1 == $v2) { $version = str_split($v1); $version = $version[0].'.'.$version[1].$version[2]; } else { $v1 = str_split($v1); $v2 = str_split($v2); $version = $v1[0].'.'.$v1[1].$v1[2].'~'.$v2[0].'.'.$v2[1].$v2[2]; } } ///Queries /// $query = $SQL->query('SELECT `name`, `id`, `level`, `experience` FROM `players` WHERE players.group_id NOT IN ('.implode(',', $config['site']['groups_hidden']).') AND account_id NOT IN ('.implode(',', $config['site']['accounts_hidden']).') ORDER BY `level` DESC, `experience` DESC LIMIT 1;')->fetch(); $query2 = $SQL->query('SELECT `id`, `name` FROM `players` ORDER BY `id` DESC LIMIT 1;')->fetch(); $housesfree = $SQL->query('SELECT COUNT(*) FROM `houses` WHERE `owner`=0;')->fetch(); $housesrented = $SQL->query('SELECT COUNT(*) FROM `houses` WHERE `owner`=1;')->fetch(); $banned = $SQL->query('SELECT COUNT(*) FROM `bans`')->fetch(); $accounts = $SQL->query('SELECT COUNT(*) FROM `accounts`')->fetch(); $players = $SQL->query('SELECT COUNT(*) FROM `players`')->fetch(); $guilds = $SQL->query('SELECT COUNT(*) FROM `guilds`')->fetch(); ///End Queries /// $main_content .= '
Info Server
NameValue
World Type'.$config['server']['worldType'].'
Client Version'.$version.'
Server motd'.$config['server']['motd'].'
Last joined'.$query2['name'].'
Best Level'.$query['name'].' ('.$query['level'].')
Free Houses'.$housesfree[0].'
Rented Houses:'.$housesrented[0].'
Banned accounts:'.$banned[0].'
Accounts in database:'.$accounts[0].'
Players in database:'.$players[0].'
Guilds in databese:'.$guilds[0].'

'; $main_content .= ''; $i = 1; $k = 0; foreach($talkactions as $command) { if(empty($command["access"]) or $command["access"] == 0) { if(is_int($k/2)) $bgcolor=$config['site']['lightborder']; else $bgcolor=$config['site']['darkborder']; if(is_int($i/2)) $main_content .= ''; else { $main_content .= ''; $k++; } $i++; } } $main_content .= '
Commands
'.$command["words"].'
'.$command["words"].'

'; $whiteSkullTime = explode("*", $config['server']['whiteSkullTime']); $whiteSkullTime = $whiteSkullTime[0].(count($whiteSkullTime) == 3 ? ' minutes' : ' seconds'); # Info for Red Skull $redSkullLength = explode("*", $config['server']['redSkullLength']); $redSkullLength = $redSkullLength[0].(count($redSkullLength) == 4 ? ' days' : ' hours'); $fragsToRedSkull = 'Daily: '.$config['server']['dailyFragsToRedSkull'].' | Weekly: '.$config['server']['weeklyFragsToRedSkull'].' | Monthly: '.$config['server']['monthlyFragsToRedSkull']; # Info for Ban $killsBanLength = explode("*", $config['server']['killsBanLength']); $killsBanLength = $killsBanLength[0].(count($killsBanLength) == 4 ? ' days' : ' hours'); $kill_daily = is_numeric($config['server']['dailyFragsToBanishment']) ? $config['server']['dailyFragsToBanishment'] : $config['server']['dailyFragsToRedSkull']; $kill_weekly = is_numeric($config['server']['weeklyFragsToBanishment']) ? $config['server']['weeklyFragsToBanishment'] : $config['server']['weeklyFragsToRedSkull']; $kill_monthly = is_numeric($config['server']['monthlyFragsToBanishment']) ? $config['server']['monthlyFragsToBanishment'] : $config['server']['monthlyFragsToRedSkull']; $fragsToBanishment = 'Daily: '.$kill_daily.' | Weekly: '.$kill_weekly.' | Monthly: '.$kill_monthly; # Info for Black Skull if($config['server']['useBlackSkull'] == true) { $blackSkullLength = explode("*", $config['server']['blackSkullLength']); $blackSkullLength = $blackSkullLength[0].(count($blackSkullLength) == 4 ? ' days' : ' hours'); $black_daily = is_numeric($config['server']['dailyFragsToBlackSkull']) ? $config['server']['dailyFragsToBlackSkull'] : $config['server']['dailyFragsToRedSkull']; $black_weekly = is_numeric($config['server']['weeklyFragsToBlackSkull']) ? $config['server']['weeklyFragsToBlackSkull'] : $config['server']['weeklyFragsToRedSkull']; $black_monthly = is_numeric($config['server']['monthlyFragsToBlackSkull']) ? $config['server']['monthlyFragsToBlackSkull'] : $config['server']['monthlyFragsToRedSkull']; $fragsToBlackSkull = 'Daily: '.$black_daily.' | Weekly: '.$black_weekly.' | Monthly: '.$black_monthly; $blackSkull = $blackSkullLength; } else { $blackSkull = "Disabled"; $fragsToBlackSkull = "Disabled"; } $main_content .= '
Frags
NameValue
White Skull Time'.$whiteSkullTime.'
Red Skull Time'.$redSkullLength.'
Black Skull Time'.$blackSkull.'
Black Skull Time'.$killsBanLength.'
Frags to Red Skull'.$fragsToRedSkull.'
Frags to Black Skull'.$fragsToBlackSkull.'
Frags to Ban'.$fragsToBanishment.'

'; $idleKickTime = explode("*", $config['server']['idleKickTime']); $idleKickTime = $idleKickTime[0].(count($idleKickTime) == 4 ? ' hours' : ' minuts'); $pzLocked = explode("*", $config['server']['pzLocked']); $pzLocked = $pzLocked[0].(count($pzLocked) == 3 ? ' minuts' : ' seconds'); if($config['server']['freePremium'] == true) $freePremium = "Free"; else $freePremium = 'Not Free'; if($config['server']['bankSystem'] == true) $bankSystem = "Enabled"; else $bankSystem = "Disabled"; if($config['server']['guildHalls'] == true) $guildHalls = "Enabled"; else $guildHalls = "Disabled"; $main_content .= '
Onther information
NameValue
Premium'.$freePremium.'
Bank System'.$bankSystem.'
Guild halls'.$guildHalls.'
Kick Time'.$idleKickTime.'
PZ Lock'.$pzLocked.'
Protection Level'.$config['server']['protectionLevel'].'
Level to buy house'.$config['server']['levelToBuyHouse'].'
Level to create guild'.$config['site']['guild_need_level'].'

'; $main_content .= '
'; } else $main_content .= "Server info page is disabled in config.php"; ?>