Просмотр файла sdark.mobi/adm_root/ngold.php

Размер файла: 1.61Kb
<?
require_once '../core/system.php';
echo admin();
$header = 'Купили золото';
require_once H.'core/head.php';

/* if($user['id'] == 3){ 
header('Location: /');
}  */

$teme = $time-84000;

$req = mysql_query("SELECT * FROM `logi` WHERE `text`='Куплено золото' and `time`>'$teme' ORDER BY `id` ASC");
echo "<div class='but-list'>";
While($zur = mysql_fetch_array($req)){
$ank = mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id`='$zur[user_id]'"));
if($ank['prava']=="5"){$status="<font color='ffc22b'>[A]</font>";$tcolor='F7990D';}
if($ank['prava']=="4"){$status="<font color='ffc22b'>[a]</font>";$tcolor='EBC621';}
if($ank['prava']=="3"){$status="<font color='ffc22b'>[M]</font>";}
if($ank['prava']=="2"){$status="<font color='ffc22b'>[m]</font>";}
echo"<a href=\"/user/$ank[id]/\">";
echo online($ank['id']) ; echo"<font color='$ank[font]'> $ank[nick]</font>";
if($ank['prava']>=2) echo" $status";
$go=floor($zur['kol']/100);
$kol=$zur['kol'];
$b=mb_strlen($kol);
$s=$kol[$b-2].$kol[$b-1];
echo', <img src="/images/icon/level.png"> '.$ank['level'].' ('.vremja($zur['time']).') <span class="float-right"><img src="/images/icon/gold.png"/>'.$go.' <img src="/images/icon/silver.png"/>'.$s.' ';
if($ank['pumpit']>0){echo'<img src="/images/pay/coin.png"/>';}
if($ank['fs_id']>0){echo'<img src="/images/fs/fs.png"/>';}
if($ank['ok']>0){echo'<img src="/ok/ok.png"/>';}
if($ank['mail']>0){echo'<img src="/images/icon/mailik.png"/>';}
echo'</span></a> ';
}
if ($k_page>1){
echo "<div class='dot-line'></div>";
str('?',$k_page,$page); // Вывод страниц
}

echo "</div>";
require_once H.'core/foot.php';
?>