Вход Регистрация
Файл: region_clean/pop_top.php
Строк: 50
<?php
##########################################
# ~ Разработка отдельных модулей ~~~~~~~ #
# ~ и написание скриптов на php (c)KoT ~ #
# ~ ICQ: 7675072 ~~~~~~~~~~~~~~~~~~~~~~~ #
# ~ Site: 4atlove.ru ~~~~~~~~~~~~~~~~~~~ #
# ~ E-mail: notefree@bk.ru ~~~~~~~~~~~~~ #
##########################################

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="
change" title="ТОП-10">n
      <p>n"
;
} 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>ТОП-10</title>
      <
meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body>
      <
div align="left">";
}

$select = mysql_query("SELECT FROM `usersWHERE `pop`>'9' ORDER BY `popDESC LIMIT 10"); 
if (mysql_num_rows(
$select) == 0)
{
echo 'Никого нету...<br/>';
echo '<a href="
enter.php?'.$ses.'">Прихожая</a><br/>';
include_once 'foot.php';
exit;
}

$i = 1;
while(
$view = mysql_fetch_assoc($select)) {
echo 
$i++.') <a href="info.php?'.$ses.'&amp;nk='.$view['id'].'">'.col_n($view['user']).'</a> ('.$view['pop'].'%)<br/>';
}

echo '<a href="
enter.php?'.$ses.'">Прихожая</a><br/>';
include_once 'foot.php';
?>
Онлайн: 1
Реклама