Внесены изменения в СБ/pages/ файл page.adminlist.php
PHP код:
<div><h3>Список Администраторов</h3></div>
<?php
if(!defined("IN_SB")){echo "You should not be here. Only follow links!";die();}
else
{
function st32to64($steam_id)
{
list( , $m1, $m2) = explode(':', $steam_id, 3);
list($steam_cid, ) = explode('.', bcadd((((int) $m2 * 2) + $m1), '76561197960265728'), 2);
return $steam_cid;
}
$html = "";
$html.= "<table style=\"border-collapse: collapse;\" width=\"100%\" cellspacing=\"3\" cellpadding=\"3\" align=\"center\" border=\"1\" class=\"listtable\">";
$html.= "<tr>";
$html.= "<td padding-left=\"3\" height=\"16\" class=\"listtable_top\" align=\"center\"><b>Ник</b></td>";
$html.= "<td height=\"16\" class=\"listtable_top\" align=\"center\"><b>Steam_ID</b></td>";
$html.= "<td height=\"16\" class=\"listtable_top\" align=\"center\"><b>E-mail</b></td>";
$html.= "<td height=\"16\" class=\"listtable_top\" align=\"center\"><b>Группа</b></td>";
$html.= "<td height=\"16\" class=\"listtable_top\" align=\"center\"><b>Посл. визит</b></td>";
$html.= "</tr>";
$sb = $GLOBALS['db']->GetAll("SELECT `user`, authid, email, srv_group, lastvisit FROM sb_admins WHERE sb_admins.authid LIKE '%STEAM_0%' ORDER BY lastvisit DESC");
foreach ($sb as $res)
{
$html.= "<tr>";
$html.= "<td align=\"center\">".RemoveCode($res['user'])."</td>";
$html.= "<td align=\"center\"><a href=\"http://steamcommunity.com/profiles/".st32to64(RemoveCode($res['authid']))."\" target=\"_blank\">".RemoveCode($res['authid'])."</a></td>";
$html.= "<td align=\"center\"><a href=\"mailto:".RemoveCode($res['email'])."\">".RemoveCode($res['email'])."</a></td>";
$html.= "<td align=\"center\">".RemoveCode($res['srv_group'])."</td>";
$html.= "<td align=\"center\">".date("Y-m-d H:i",$res['lastvisit'])."</td>";
$html.= "</tr>";
}
$html.= "</table>";
echo $html;
}
?>