define('GAME',true);
include('_incl_data/__config.php');
include('_incl_data/class/__db_connect.php');
include('_incl_data/class/__user.php');
/*
1 |
SeDuCeR [12] |
243 |
47748 |
»» |
*/
$r1 = '';
$r2 = '';
$lvl = 8;
$lvl_name = 'Любители';
if( $_GET['level'] == 9 ) {
$lvl = 9;
$lvl_name = 'Бывалые';
}elseif( $_GET['level'] == 10 ) {
$lvl = 10;
$lvl_name = 'Профессионалы';
}elseif( $_GET['level'] == 11 ) {
$lvl = 11;
$lvl_name = 'Жители';
}
$i = 1;
$j = 1;
$sp = mysql_query('SELECT `id`,`uid`,`level`,`time` FROM `izlom_rating` WHERE `level` = "' . $lvl . '" GROUP BY `uid` ORDER BY SUM(`obr`) DESC');
while( $pl = mysql_fetch_array($sp) ) {
//
$ret = mysql_fetch_array(mysql_query('SELECT SUM(`obr`) FROM `izlom_rating` WHERE `uid` = "'.$pl['uid'].'" AND `level` = "'.$pl['level'].'" LIMIT 1'));
$ret = round($ret[0]*(154.97));
//
$pl2 = mysql_fetch_array(mysql_query('SELECT * FROM `izlom_rating` WHERE `uid` = "'.$pl['uid'].'" AND `level` = "'.$pl['level'].'" ORDER BY `time` DESC LIMIT 1'));
//
$r1 .= '
' . $i . ' |
' . $u->microLogin($pl['uid'],1) . ' |
' . $pl2['voln'] . ' |
'.$ret.' |
»» |
';
//
if( date('d.m.Y') == date('d.m.Y',$pl2['time']) ) {
$r2 .= '
' . $j . ' |
' . $u->microLogin($pl['uid'],1) . ' |
' . $pl2['voln'] . ' |
'.$ret.' |
»» |
';
$j++;
}
$i++;
}
/*$sp = mysql_query('SELECT * FROM `izlom_rating` WHERE `level` = "' . $lvl . '" GROUP BY `uid` ORDER BY MAX(`time`) DESC');
while( $pl = mysql_fetch_array($sp) ) {
//
$ret = mysql_fetch_array(mysql_query('SELECT SUM(`obr`) FROM `izlom_rating` WHERE `uid` = "'.$pl['uid'].'" AND `level` = "'.$pl['level'].'" LIMIT 1'));
$ret = round($ret[0]*(154.97));
//
$r1 .= '
' . $i . ' |
' . $u->microLogin($pl['uid'],1) . ' |
' . $pl['voln'] . ' |
'.$ret.' |
»» |
';
if( $pl['uid'] == 1000000 ) {
echo date('d.m.Y',$pl['time']).'
';
}
if( date('d.m.Y') == date('d.m.Y',$pl['time']) ) {
$r2 .= '
' . $j . ' |
' . $u->microLogin($pl['uid'],1) . ' |
' . $pl['voln'] . ' |
' . $ret . ' |
»» |
';
$j++;
}
$i++;
}*/
?>
Архив: Поединки
Излом Хаоса
|
|