Ir para conteúdo
  • Cadastre-se

Posts Recomendados

essa pagina esta funcionando normalmente para o gesior anterior ao 2012, pq n funciona pro 2012? alguem pode converter para o 2012 ou então me dizer o tenho que fazer?

dou rep+ para qm me ajudar

 

code:

<?PHP
if($config['site']['serverinfo_page'])
{
        $stages = simplexml_load_file($config['site']['server_path'].'/data/XML/stages.xml');
        $servers = simplexml_load_file($config['site']['server_path'].'/data/XML/servers.xml');
        $talkactions = simplexml_load_file($config['site']['server_path'].'/data/talkactions/talkactions.xml');
        $main_content .= '<br><center>
                <table border="0" cellpadding="4" cellspacing="1" width="95%">
                        <tr bgcolor="'.$config['site']['vdarkborder'].'">
                                <td colspan="2"><font class="white"><b>Status</b></font></td>
                        </tr>
                        <tr bgcolor="'.$config['site']['vdarkborder'].'">
                                <td width="50%"><font class="white">Name</font></td><td><font class="white">Value</font></td>
                        </tr>
                        <tr bgcolor="'.$config['site']['darkborder'].'">
                                <td>Server</td><td>'.(($config['status']['serverStatus_online'] == 1) ? '<font color="grenn"><b>Online</b></font>' : '<font color="red"><b>Offline</b></font>').'</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['lightborder'].'">
                                <td>Player Online</td><td>'.$config['status']['serverStatus_players'].'</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['darkborder'].'">
                                <td>UpTime</td><td>'.$config['status']['serverStatus_uptime'].'</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['lightborder'].'">
                                <td>Monster</td><td>'.$config['status']['serverStatus_monsters'].'</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['darkborder'].'">
                                <td>NPC</td><td>'.$config['status']['serverStatus_npcs'].'</td>
                        </tr>
                </table>
                <br>';
        if($config['server']['experienceStages'] == false)
        $rateExperience .= $config['server']['rateExperience'].'x';
    else
        {
        $rateExperience .= '<table width="100%">';
        foreach($stages as $exp1)
        {
                        $i = 0;
                        $ots = (int) $exp1["id"];
                        if($ots > 0)
                                $rateExperience .= '<tr align="center" bgcolor="'.$config['site']['vdarkborder'].'"><td colspan="3"><strong>Experience Stages on '.$config['site']['worlds'][$ots].'</strong></td></tr>';
                        $rateExperience .= '<tr align="center" bgcolor="'.$config['site']['vdarkborder'].'"><td class="white">From Level</td><td class="white">To Level</td><td class="white">Rate</td></tr>';
                        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 .= '<tr align="center" bgcolor="'.$bgcolor.'"><td>'.$exp["minlevel"].'</td><td>'.$max.'</td><td>'.$exp["multiplier"].'x</td></tr>';
                                $i++;
                        }
        }
        $rateExperience .= '</table>';
        }
        $main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
                        <tr bgcolor="'.$config['site']['vdarkborder'].'">
                                <td colspan="2"><font class="white"><b>Rates</b></font></td>
                        </tr>
                        <tr bgcolor="'.$config['site']['vdarkborder'].'">
                                <td><font class="white">Name</font></td><td><font class="white">Value</font></td>
                        </tr>
                        <tr bgcolor="'.$config['site']['darkborder'].'">
                                <td width="50%">Experience</td><td>'.$rateExperience.'</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['lightborder'].'">
                                <td>Skill</td><td>'.$config['server']['rateSkill'].'x</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['darkborder'].'">
                                <td>Magic</td><td>'.$config['server']['rateMagic'].'x</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['lightborder'].'">
                                <td>Loot</td><td>'.$config['server']['rateLoot'].'x</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['darkborder'].'">
                                <td>Spawn</td><td>'.$config['server']['rateSpawn'].'x</td>
                        </tr>
                </table><br>';
        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 < '.$config['site']['players_group_id_block'].' AND account_id != 1 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` WHERE `id`>0;')->fetch();
                $accounts = $SQL->query('SELECT COUNT(*) FROM `accounts` WHERE `id`>0;')->fetch();
                $players = $SQL->query('SELECT COUNT(*) FROM `players` WHERE `id`>0;')->fetch();
                $guilds = $SQL->query('SELECT COUNT(*) FROM `guilds` WHERE `id`>0;')->fetch();
        ///End Queries ///
        $main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
                <tr bgcolor="'.$config['site']['vdarkborder'].'">
                        <td colspan="2"><font class="white"><b>Info Server</b></font></td>
                </tr>
                <tr bgcolor="'.$config['site']['vdarkborder'].'">
                        <td width="50%"><font class="white">Name</font></td><td><font class="white">Value</font></td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>World Type</td><td>'.$config['server']['worldType'].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Client Version</td><td>'.$version.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Server motd</td><td>'.$config['server']['motd'].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Last joined</td><td><a href="?subtopic=characters&name='.urlencode($query2['name']).'">'.$query2['name'].'</a></td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Best Level</td><td><a href="index.php?subtopic=characters&name='.urlencode($query['name']).'">'.$query['name'].'</a> ('.$query['level'].')</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Free Houses</td><td>'.$housesfree[0].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Rented Houses:</td><td>'.$housesrented[0].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Banned accounts:</td><td>'.$banned[0].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Accounts in database:</td><td>'.$accounts[0].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Players in database:</td><td>'.$players[0].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Guilds in databese:</td><td>'.$guilds[0].'</td>
                </tr>
        </table><br>';
    $main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
                        <tr bgcolor="'.$config['site']['vdarkborder'].'">
                                <td colspan="2"><font class="white"><b>Commands</b></font></td>
                        </tr>';
    $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 .= '<td width="50%">'.$command["words"].'</td></tr>';
                        else
            {
                                $main_content .= '<tr align="center" bgcolor="'.$bgcolor.'"><td width="50%">'.$command["words"].'</td>';
                                $k++;
            }
                        $i++;
                }
        }
        $main_content .= '</table><br>';
        $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']['fragsToRedSkull'].' | Weekly: '.$config['server']['fragsSecondToRedSkull'].' | Monthly: '.$config['server']['fragsThirdToRedSkull'];
        # 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: '.$config['server']['fragsToBlackSkull'].' | Weekly: '.$config['server']['fragsSecondToBlackSkull'].' | Monthly: '.$config['server']['fragsThirdToBlackSkull'];
                $blackSkull = $blackSkullLength;
        }
        else
        {
                $blackSkull = "Disabled";
                $fragsToBlackSkull = "Disabled";
        }
        $main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
                <tr bgcolor="'.$config['site']['vdarkborder'].'">
                        <td colspan="2"><font class="white"><b>Frags</b></font></td>
                </tr>
                <tr bgcolor="'.$config['site']['vdarkborder'].'">
                        <td width="50%"><font class="white">Name</font></td><td><font class="white">Value</font></td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>White Skull Time</td><td>'.$whiteSkullTime.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Red Skull Time</td><td>'.$redSkullLength.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Black Skull Time</td><td>'.$blackSkull.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Black Skull Time</td><td>'.$killsBanLength.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Frags to Red Skull</td><td>'.$fragsToRedSkull.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Frags to Black Skull</td><td>'.$fragsToBlackSkull.'</td>
                </tr>
        </table><br>';
        $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 .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
                <tr bgcolor="'.$config['site']['vdarkborder'].'">
                        <td colspan="2"><font class="white"><b>Onther information</b></font></td>
                </tr>
                <tr bgcolor="'.$config['site']['vdarkborder'].'">
                        <td width="50%"><font class="white">Name</font></td><td><font class="white">Value</font></td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Premium</td><td>'.$freePremium.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Bank System</td><td>'.$bankSystem.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Guild halls</td><td>'.$guildHalls.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Kick Time</td><td>'.$idleKickTime.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>PZ Lock</td><td>'.$pzLocked.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Protection Level</td><td>'.$config['server']['protectionLevel'].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Level to buy house</td><td>'.$config['server']['levelToBuyHouse'].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Level to create guild</td><td>'.$config['site']['guild_need_level'].'</td>
                </tr>
                <!--
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td></td><td></td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td></td><td></td>
                </tr>
                -->
        </table><br>';
        $main_content .= '</center>';
}
else
        $main_content .= "Invalid subtopic. Can't load page.";
?>

 

Link para o post
Compartilhar em outros sites

Olá Amigo tente usar esse na sua serverinfo.php

 

<?PHP
if($config['site']['serverinfo_page'])
{
$stages = simplexml_load_file($config['site']['server_path'].'/data/XML/stages.xml');
$servers = simplexml_load_file($config['site']['server_path'].'/data/XML/servers.xml');
$main_content .= '<br><center>
<table border="0" cellpadding="4" cellspacing="1" width="95%">
<tr bgcolor="'.$config['site']['vdarkborder'].'">
<td colspan="2"><font class="white"><b>Status</b></font></td>
</tr>
<tr bgcolor="'.$config['site']['vdarkborder'].'">
<td width="50%"><font class="white"><b>Name</b></font></td><td><font class="white"><b>Value</b></font></td>
</tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td>Server Status:</td><td>'.(($config['status']['serverStatus_online'] == 1) ? '<b>Online</b>' : '<b>Offline</b>').'</td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td>UpTime:</td><td>'.$config['status']['serverStatus_uptime'].'</td>
</tr>
</td>
</tr>
</table>
<br>';
if($config['server']['experienceStages'] == false)
        $rateExperience .= $config['server']['rateExperience'].'x';
    else
{
        $rateExperience .= '<table width="100%">';
        foreach($stages as $exp1)
        {
$i = 0;
$ots = (int) $exp1["id"];
if($ots > 0)
$rateExperience .= '<tr align="center" bgcolor="'.$config['site']['vdarkborder'].'"><td colspan="3"><strong>Experience Stages on '.$config['site']['worlds'][$ots].'</strong></td></tr>';
$rateExperience .= '<tr align="center" bgcolor="'.$config['site']['vdarkborder'].'"><td class="white">From Level</td><td class="white">To Level</td><td class="white">Rate</td></tr>';
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 .= '<tr align="center" bgcolor="'.$bgcolor.'"><td>'.$exp["minlevel"].'</td><td>'.$max.'</td><td>'.$exp["multiplier"].'x</td></tr>';
$i++;
}
        }
        $rateExperience .= '</table>';
}
$main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
<tr bgcolor="'.$config['site']['vdarkborder'].'">
<td colspan="2"><font class="white"><b>Rates</b></font></td>
</tr>
<tr bgcolor="'.$config['site']['vdarkborder'].'">
<td><font class="white"><b>Name</b></font></td><td><font class="white"><b>Value</b></font></td>
</tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td width="50%">Experience</td><td>'.$rateExperience.'</td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td>Skill</td><td>'.$config['server']['rateSkill'].'x</td>
</tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td>Magic</td><td>'.$config['server']['rateMagic'].'x</td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td>Loot</td><td>'.$config['server']['rateLoot'].'x</td>
</tr>
</table><br>';
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 < '.$config['site']['players_group_id_block'].' AND account_id != 1 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` WHERE `id`>0;')->fetch();
$accounts = $SQL->query('SELECT COUNT(*) FROM `accounts` WHERE `id`>0;')->fetch();
$players = $SQL->query('SELECT COUNT(*) FROM `players` WHERE `id`>0;')->fetch();
$guilds = $SQL->query('SELECT COUNT(*) FROM `guilds` WHERE `id`>0;')->fetch();
///End Queries ///
$main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
<tr bgcolor="'.$config['site']['vdarkborder'].'">
<td colspan="2"><font class="white"><b>Info Server</b></font></td>
</tr>
<tr bgcolor="'.$config['site']['vdarkborder'].'">
<td width="50%"><font class="white"><b>Name</b></font></td><td><font class="white"><b>Value</b></font></td>
</tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td>World Type</td><td>';
$w=strtolower($config['server']['worldType']);
if(in_array($w, array('pvp','2','normal','open','openpvp')))
$main_content .= 'Open PvP';
elseif(in_array($w, array('no-pvp','nopvp','non-pvp','nonpvp','1','safe','optional','optionalpvp')))
$main_content .= 'Optional PvP';
elseif(in_array($w, array('pvp-enforced','pvpenforced','pvp-enfo','pvpenfo','pvpe','enforced','enfo','3','war','hardcore','hardcorepvp')))
$main_content .= 'Hardcore PvP';
$main_content .='</td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td>Server motd</td><td>'.$config['server']['motd'].'</td>
</tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td>Last joined</td><td><a href="?subtopic=characters&name='.urlencode($query2['name']).'">'.$query2['name'].'</a></td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td>Best Level</td><td><a href="index.php?subtopic=characters&name='.urlencode($query['name']).'">'.$query['name'].'</a> (<b>Level&nbsp;'.$query['level'].'</b>)</td>
</tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td>Free Houses</td><td>'.$housesfree[0].'</td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td>Rented Houses:</td><td>'.$housesrented[0].'</td>
</tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td>Banned accounts:</td><td>'.$banned[0].'</td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td>Accounts in database:</td><td>'.$accounts[0].'</td>
</tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td>Players in database:</td><td>'.$players[0].'</td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td>Guilds in databese:</td><td>'.$guilds[0].'</td>
</tr>
</table><br>';
    
$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 .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
<tr bgcolor="'.$config['site']['vdarkborder'].'">
<td colspan="2"><font class="white"><b>Onther information</b></font></td>
</tr>
<tr bgcolor="'.$config['site']['vdarkborder'].'">
<td width="50%"><font class="white"><b>Name</b></font></td><td><font class="white"><b>Value</b></font></td>
</tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td>Premium</td><td>'.$freePremium.'</td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td>Bank System</td><td>'.$bankSystem.'</td>
</tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td>Guild halls</td><td>'.$guildHalls.'</td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td>Kick Time</td><td>'.$idleKickTime.'</td>
</tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td>PZ Lock</td><td>'.$pzLocked.'</td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td>Protection Level</td><td>'.$config['server']['protectionLevel'].'</td>
</tr>
<tr bgcolor="'.$config['site']['darkborder'].'">
<td>Level to buy house</td><td>'.$config['server']['levelToBuyHouse'].'</td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td>Level to create guild</td><td>'.$config['site']['guild_need_level'].'</td>
</tr>
<!--
<tr bgcolor="'.$config['site']['darkborder'].'">
<td></td><td></td>
</tr>
<tr bgcolor="'.$config['site']['lightborder'].'">
<td></td><td></td>
</tr>
-->
</table><br>';
$main_content .= '</center>';
}
else
$main_content .= "Invalid subtopic. Can't load page.";
?>

 

Atenciosamente - @Alexsoft

Link para o post
Compartilhar em outros sites

continua dando aquela tela branca :/ 

 

1º Bom a tela fica só branca ou tem algum erro.

Se tiver me manda o erro.

 

2º Se abre normalmente mais na aba do server info aparece esse erro.

 

>> Invalid subtopic. Can't load page.

Atenciosamente - @Alexsoft

Link para o post
Compartilhar em outros sites

1º Bom a tela fica só branca ou tem algum erro.

Se tiver me manda o erro.

 

2º Se abre normalmente mais na aba do server info aparece esse erro.

 

>> Invalid subtopic. Can't load page.

 

Provavelmente você utiliza Linux... Seguinte você vai utilizar o code que vou adicionar abaixo, e vai adicionar a pasta data, na pasta do site, adicionar onde ficar o desktop do linux, onde se localizar as pastas, home, var, etc, lib... porque infelizmente ele tem essa dificuldade de leitura no gesior 2012...

 

<?PHP
if($config['site']['serverinfo_page'])
{
        $stages = simplexml_load_file($config['site']['server_path'].'/data/XML/stages.xml');
        $servers = simplexml_load_file($config['site']['server_path'].'/data/XML/servers.xml');
        $talkactions = simplexml_load_file($config['site']['server_path'].'/data/talkactions/talkactions.xml');
        $main_content .= '<br><center>
                <table border="0" cellpadding="4" cellspacing="1" width="95%">
                        <tr bgcolor="'.$config['site']['vdarkborder'].'">
                                <td colspan="2"><font class="white"><b>Status</b></font></td>
                        </tr>
                        <tr bgcolor="'.$config['site']['vdarkborder'].'">
                                <td width="50%"><font class="white">Name</font></td><td><font class="white">Value</font></td>
                        </tr>
                        <tr bgcolor="'.$config['site']['darkborder'].'">
                                <td>Server</td><td>'.(($config['status']['serverStatus_online'] == 1) ? '<font color="grenn"><b>Online</b></font>' : '<font color="red"><b>Offline</b></font>').'</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['lightborder'].'">
                                <td>Player Online</td><td>'.$config['status']['serverStatus_players'].'</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['darkborder'].'">
                                <td>UpTime</td><td>'.$config['status']['serverStatus_uptime'].'</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['lightborder'].'">
                                <td>Monster</td><td>'.$config['status']['serverStatus_monsters'].'</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['darkborder'].'">
                                <td>NPC</td><td>596</td>
                        </tr>
                </table>
                <br>';
        if($config['server']['experienceStages'] == false)
        $rateExperience .= $config['server']['rateExperience'].'x';
    else
        {
        $rateExperience .= '<table width="100%">';
        foreach($stages as $exp1)
        {
                        $i = 0;
                        $ots = (int) $exp1["id"];
                        if($ots > 0)
                                $rateExperience .= '<tr align="center" bgcolor="'.$config['site']['vdarkborder'].'"><td colspan="3"><strong>Experience Stages on '.$config['site']['worlds'][$ots].'</strong></td></tr>';
                        $rateExperience .= '<tr align="center" bgcolor="'.$config['site']['vdarkborder'].'"><td class="white">From Level</td><td class="white">To Level</td><td class="white">Rate</td></tr>';
                        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 .= '<tr align="center" bgcolor="'.$bgcolor.'"><td>'.$exp["minlevel"].'</td><td>'.$max.'</td><td>'.$exp["multiplier"].'x</td></tr>';
                                $i++;
                        }
        }
        $rateExperience .= '</table>';
        }
        $main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
                        <tr bgcolor="'.$config['site']['vdarkborder'].'">
                                <td colspan="2"><font class="white"><b>Rates</b></font></td>
                        </tr>
                        <tr bgcolor="'.$config['site']['vdarkborder'].'">
                                <td><font class="white">Name</font></td><td><font class="white">Value</font></td>
                        </tr>
                        <tr bgcolor="'.$config['site']['darkborder'].'">
                                <td width="50%">Experience</td><td>'.$rateExperience.'</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['lightborder'].'">
                                <td>Skill</td><td>'.$config['server']['rateSkill'].'x</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['darkborder'].'">
                                <td>Magic</td><td>'.$config['server']['rateMagic'].'x</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['lightborder'].'">
                                <td>Loot</td><td>'.$config['server']['rateLoot'].'x</td>
                        </tr>
                        <tr bgcolor="'.$config['site']['darkborder'].'">
                                <td>Spawn</td><td>'.$config['server']['rateSpawn'].'x</td>
                        </tr>
                </table><br>';
        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 < '.$config['site']['players_group_id_block'].' AND account_id != 1 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` WHERE `id`>0;')->fetch();
                $accounts = $SQL->query('SELECT COUNT(*) FROM `accounts` WHERE `id`>0;')->fetch();
                $players = $SQL->query('SELECT COUNT(*) FROM `players` WHERE `id`>0;')->fetch();
                $guilds = $SQL->query('SELECT COUNT(*) FROM `guilds` WHERE `id`>0;')->fetch();
        ///End Queries ///
        $main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
                <tr bgcolor="'.$config['site']['vdarkborder'].'">
                        <td colspan="2"><font class="white"><b>Info Server</b></font></td>
                </tr>
                <tr bgcolor="'.$config['site']['vdarkborder'].'">
                        <td width="50%"><font class="white">Name</font></td><td><font class="white">Value</font></td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>World Type</td><td>'.$config['server']['worldType'].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Client Version</td><td>'.$version.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Server motd</td><td>'.$config['server']['motd'].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Last joined</td><td><a href="?subtopic=characters&name='.urlencode($query2['name']).'">'.$query2['name'].'</a></td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Best Level</td><td><a href="index.php?subtopic=characters&name='.urlencode($query['name']).'">'.$query['name'].'</a> ('.$query['level'].')</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Free Houses</td><td>'.$housesfree[0].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Rented Houses:</td><td>'.$housesrented[0].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Banned accounts:</td><td>'.$banned[0].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Accounts in database:</td><td>'.$accounts[0].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Players in database:</td><td>'.$players[0].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Guilds in databese:</td><td>'.$guilds[0].'</td>
                </tr>
        </table><br>';
    $main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
                        <tr bgcolor="'.$config['site']['vdarkborder'].'">
                                <td colspan="2"><font class="white"><b>Commands</b></font></td>
                        </tr>';
    $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 .= '<td width="50%">'.$command["words"].'</td></tr>';
                        else
            {
                                $main_content .= '<tr align="center" bgcolor="'.$bgcolor.'"><td width="50%">'.$command["words"].'</td>';
                                $k++;
            }
                        $i++;
                }
        }
        $main_content .= '</table><br>';
        $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 .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
                <tr bgcolor="'.$config['site']['vdarkborder'].'">
                        <td colspan="2"><font class="white"><b>Frags</b></font></td>
                </tr>
                <tr bgcolor="'.$config['site']['vdarkborder'].'">
                        <td width="50%"><font class="white">Name</font></td><td><font class="white">Value</font></td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>White Skull Time</td><td>'.$whiteSkullTime.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Red Skull Time</td><td>'.$redSkullLength.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Black Skull Time</td><td>'.$blackSkull.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Black Skull Time</td><td>'.$killsBanLength.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Frags to Red Skull</td><td>'.$fragsToRedSkull.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Frags to Black Skull</td><td>'.$fragsToBlackSkull.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Frags to Ban</td><td>'.$fragsToBanishment.'</td>
                </tr>
        </table><br>';
        $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 .= '<table border="0" cellpadding="4" cellspacing="1" width="95%">
                <tr bgcolor="'.$config['site']['vdarkborder'].'">
                        <td colspan="2"><font class="white"><b>Onther information</b></font></td>
                </tr>
                <tr bgcolor="'.$config['site']['vdarkborder'].'">
                        <td width="50%"><font class="white">Name</font></td><td><font class="white">Value</font></td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Premium</td><td>'.$freePremium.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Bank System</td><td>'.$bankSystem.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Guild halls</td><td>'.$guildHalls.'</td>
                </tr>


                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>PZ Lock</td><td>'.$pzLocked.'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Protection Level</td><td>'.$config['server']['protectionLevel'].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td>Level to buy house</td><td>'.$config['server']['levelToBuyHouse'].'</td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td>Level to create guild</td><td>'.$config['site']['guild_need_level'].'</td>
                </tr>
                <!--
                <tr bgcolor="'.$config['site']['lightborder'].'">
                        <td></td><td></td>
                </tr>
                <tr bgcolor="'.$config['site']['darkborder'].'">
                        <td></td><td></td>
                </tr>
                -->
        </table><br>';
        $main_content .= '</center>';
}
else
        $main_content .= "Invalid subtopic. Can't load page.";
?>

Caso resolva o seu problema, marque como a melhor resposta!

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por lucascsa123
      Como Tira Vocação Do 'account manager' 
       
      Em vocations.xml Botei :
       
      </vocation>
      <vocation id="5" name="Zimax" description="Zimax" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="200" gainmanaticks="2" gainmanaamount="450" manamultiplier="1.1" attackspeed="100" soulmax="200" gainsoulticks="15" fromvoc="5" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.3" sword="1.1" axe="1.1" distance="1.1" shielding="1.2" fishing="1.1" experience="1.0"/>     Quando um player entra no account manager fica assim :     14:48 Account Manager: What do you want to be... a master sorcerer, a elder druid, a  royal paladin, a elite knight, Zimax
       
      AJUDA !!
       
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo