Вход Регистрация
Файл: region_clean/fo/top.php
Строк: 73
<?
#######################################
## Mod By KoT (borispol) [76-75-072] ##
#######################################

require_once "../start.php";
require_once 
"../sid.php";

header('Cache-Control: no-store, no-cache, must-revalidate');
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="Wap обменник">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>Wap обменник</title>
      <
meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body>
      <
div align="left">n";
}

function get_size(
$size)
{
if (
$size < 1024) $size = $size.' б.';
if (
$size > 1024 AND $size < 1048576) $size = round($size / 1024, 1).' кб.';
if (
$size >= 1048576) $size = round(($size / 1024) / 1024, 1).' мб.';

return 
$size;
}

$tm = time() - 100;
$f_count = mysql_query("SELECT id,user FROM users WHERE onl'".$tm ."' AND room='forum' group by user order by onl desc;");
$asnumspr = mysql_affected_rows();
@
$kolf = $kolf + $asnumspr;

echo 
$fsize1;
echo '<div class="
c4">Wap обменник</div><br/>';

if (
$top == "files") {
$query = mysql_query("SELECT FROM `fo_filesORDER BY `clicksDESC limit 10;");
$i = 1;
while(
$array = mysql_fetch_assoc($query))
{
$title = check($array['title']);
$info2 = check($array['info']);
$type = check($array['type']);

echo "
$i. <a href='down.php?$ses&amp;module=view&amp;page=info&amp;type=$type&amp;fid=".$array['id']."'>".$title."</a><br/>".$info2."<br/>n";


$i++;
}
if (
$i == 1) echo 'Файлов не найдено!<br/>';
}
else if (
$top == "users") {

$query = mysql_query("SELECT FROM `usersORDER BY `allfilesDESC limit 10;");
$i = 1;
while(
$array = mysql_fetch_assoc($query))
{
$all = mysql_query ("select count(*) as num from fo_files where author '".(int)$array['id']."'");
$allfiles = mysql_fetch_array($all);
$kolfiles = $allfiles['num'];

echo "
$i";
echo "
<a href="../info.php?$ses&amp;&amp;nk=".$array['id']."">".col_n($array['user'])."</a>n";

echo "
(<b><a href="user.php?$ses&amp;nk=".$array['id']."">".$kolfiles."</a></b>)<br/>n";

$i++;
}

if (
$i == 1) echo 'Юзеров не найдено!<br/>';

}
echo 
$fsize2;
echo 
$fsize1;
echo "
<br/><div class = 'd1'><a href="index.php?$ses">Обменник</a><br/>n
            
<a href="../enter.php?$ses">Прихожая</a></div>n";
include_once "
../foot.php";
exit;
?>
Онлайн: 3
Реклама