Файл: region_clean/znak/statistic.php
Строк: 48
<?php
#######################################
## Mod By KoT (borispol) [76-75-072] ##
#######################################
require_once "../start.php";
require_once "../sid.php";
header("Cache-Control: no-cache");
if ($ver == "wml") header ("Content-type:text/vnd.wap.wml; charset=utf-8");
else header("Content-Type:text/html; charset=UTF-8");
require_once "../inc.php";
$link = connect_db();
list($row, $id, $ps, $fsize1, $fsize2) = check_login($link);
require_once "../version.php";
if ($ver == "wml") {
echo $xml;
echo $dtd;
echo "<wml>n
<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>n
<card id="send" title="Знакомства">n
<p align="center">";
} else {
echo "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><link rel="stylesheet" type="text/css" href="../css/$css.css"/>
<title>Знакомства</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body>
<div align="center">";
}
echo '<div class="c4">Статистика игры</div><br/>';
$r = mysql_query ("SELECT user,yousimpati,id FROM users ORDER BY yousimpati DESC LIMIT 0,10");
$i = 1;
while ($a = mysql_fetch_assoc($r))
{
echo ($i++).') <a href="info.php?'.$ses.'&nk='.$a['id'].'&ref='.$ref.'">'.col_n($a['user']).'</a> симпатий: <b>('.$a['yousimpati'].')</b><br/>';
}
echo '<br/><div class="d1"><a href="index.php?'.$ses.'&ref='.$ref.'">Знакомства</a><br/>
<a href="../enter.php?'.$ses.'&ref='.$ref.'">Прихожая</a></div>';
include_once '../foot.php';
?>