Размер файла: 1.2Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
extract($HTTP_COOKIE_VARS);
extract($HTTP_SERVER_VARS);
extract($HTTP_SESSION_VARS);
session_name("SESID");
session_start();
include "cfg.php";
mysql_connect ($DB_HOST, $DB_USER, $DB_PASS);
mysql_select_db($DB_NAME);
$arr=mysql_query("select * from users order by counthost desc;");
$i=mysql_num_rows($arr);
while ($data=@mysql_fetch_array($arr))
{
if($cid==$data['id']) $start=count($ids);
$titles[] = $data['title'];
$links[] = $data['link'];
$ids[] = $data['id'];
$abouts[] = $data['about'];
$today[] = $data['today'];
$host[] = $data['counthost'];
$allday[] = $data['allday'];
$cin[] = $data['cin'];
$out[] = $data['out'];
$arrr=mysql_query("select id from users where 1;");
$ir=mysql_num_rows($arrr);
$asr=mysql_query("select id from users where counthost>=1;"); $asir=mysql_num_rows($asr);}
$count=$i;
$count1=$count;
if(empty($start))
$start=0;
$start=intval($start);
if($start<0)
$start=0;
if($count>$start+$url_page) $count=$start+$url_page;
for($i=$start;$i<$count;$i++)
{
$n=$i+1;
if($url_page%$i!=0||$i==1) $br="<br/>";
}
echo"($asir)<br/>";
mysql_close();
?>