• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Gesior 0.3.7 support.php bug script

Sotomayor

New Member
Joined
Jan 28, 2012
Messages
77
Reaction score
4
Hello greetings for all, i have a problem with this scripth i try to fix my problem are the last access and status online or offline dont work, but down they work all, but i want the first table not the second tables because i dont like it jeje, could someone can help to fix this please? good day for everybody have a nice day here is a image of the script i try to fix up table and down table works fine..

Code:
<style type="text/css">
    tr.over:hover
    {
        background-color: lightgrey;
    }
</style>

<?PHP
    if($groups = simplexml_load_file($config['site']['server_path'].'/data/XML/groups.xml') or die('<b>Could not load groups!</b>'))
        foreach($groups->group as $g)
            $groupList[(int)$g['id']] = $g['name'];

        $list = $SQL->query("SELECT `name`, `online`, `group_id`, `world_id`, `lastlogin` FROM `players` WHERE `group_id` > 1 ORDER BY `group_id` DESC");
        $showed_players = 0;

        $main_content .= '<center><h2>SUPPORT LIST</h2><table border="0" cellspacing="1" cellpadding="4" width="100%" style="border: 1px solid #505050;box-shadow: 0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19) !important;">
            <tbody><tr bgcolor="#505050">
                <td width="15%"><font class="white"><b>Group</b></font></td>
                <td width="20%"><font class="white"><b>Name</b></font></td>
                <td width="15%"><font class="white"><b>Language</b></font></td>
                <td width="5%"><font class="white"><b>Status</b></font></td>
            <td width="15%"><font class="white"><b>Last Access</b></font></td>
            </tr>
            <tr bgcolor="#F1E0C6">
                <td><div class="gmicons" style=""><b><center></div><span class="god"><font color="green"><img src="/images/god.png"> Administrator <a href="/?subtopic=phone"><img style="position: absolute; left: 150px; padding: 0px 0px 0px 0px;"src="https://www.megatibia.com.br/layouts/tibiarl/images/network/whatsapp.png" width="18""></font></b></span></center></td>
                <td><a href="?subtopic=characters&amp;name=GOD+Demitry"> <img src="/images/flags/mx.png"> GOD Demitry</a></td>
                <td><small>English, Portuguese</small></td>
<td><font size="2" color="'.($gm['online'] == 0 ? 'red"><b><center>Offline</center></b>' : 'green"><b><center><blink>Online</blink></center></b>').'</font></td>
<td><font size="1"><b><center><small>'.date("d F Y, G:i", $gm['lastlogin']).'</small></center></b></font></td></tr>





               
                </tr></tbody></table></center><br>';

        $headline = '<table border="0" cellspacing="1" cellpadding="1" width="100%">
            <tr bgcolor="'.$config['site']['vdarkborder'].'">
            <td width="20%"><font size="2" class=white><b><center>Group<a href="/?subtopic=phone"><img style="position: absolute; left: 145px; padding: 0px 0px 0px 0px;"src="https://www.megatibia.com.br/layouts/tibiarl/images/network/whatsapp.png" width="16""></center></b></font></td>
            <td width="45%"><font size="2" class=white><b>Name</b></font></td>
            <td width="15%"><font size="2" class=white><b><center>Status</center></b></font></td>
            <td width="20%"><font size="2" class=white><b><center>Last Login</center></b></font></td>';

        $group_id = 0;
        foreach($list as $gm)
        {
            if($group_id != (int)$gm['group_id'])
            {
                if($group_id != 0)
                    $main_content .= '</table><br />';

                $main_content .= $headline;
                $group_id = (int)$gm['group_id'];
            }
            $main_content .= '<tr bgcolor="'.(is_int($showed_players++ / 2) ? $config['site']['darkborder'] : $config['site']['lightborder']).'" class="over"><td><img src="images/god.PNG" align="left"><font size="2" color="green"><center><b>'.$groupList[(int)$gm['group_id']].'</b></center></font></td><td><font size="2"><a href="?subtopic=characters&name='.urlencode($gm['name']).'">'.$gm['name'].'</a></font><img src="images/flags/mx.PNG" align="left"></td><td><font size="2" color="'.($gm['online'] == 0 ? 'red"><b><center>Offline</center></b>' : 'green"><b><center><blink>Online</blink></center></b>').'</font></td><td><font size="2"><b><center><small>'.date("d F Y, G:i", $gm['lastlogin']).'</small></center></b></font></td></tr>';
        }
    $main_content .= '</table>';
?>
 

Attachments

Last edited:
Back
Top