Файл: rating.php
Строк: 14
<?php
require 'sys/sid.php';
require 'sys/config.php';
include 'sys/user.php';
include 'sys/head.php';
visit(0, 'rating');
$s = mysql_query("SELECT user, (SUM(lot) * SUM(power)) AS num FROM duty WHERE timeleft < '$rtime' AND done = '0' GROUP BY user ORDER BY num DESC LIMIT 5");
while($a = mysql_fetch_assoc($s))
{
echo '<a href="location'.user($a['user'], 'coor_x').'_'.user($a['user'], 'coor_y').'_2"><u>' . user($a['user'], 'nick') . '</u></a> Мощь армии: ' . number_format($a['num']) . '<br/>';
}
echo '<br/><a href="index.php">На главную</a>';
include 'sys/foot.php';
?>