Вход Регистрация
Файл: all.php
Строк: 98
<?
ini_set
('display_errors''off');
header ("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
include 
"ini.php";
print 
"<div style="text-aligncenter">
   <div class="
contur_rek"><div class="header_rek"> Список всех чатов </div></div></div>";

list(
$msec,$sec)=explode(chr(32),microtime());
$HeadTime=$sec+$msec;
$link=mysql_connect ($DB_HOST$DB_USER$DB_PASS);
mysql_select_db($DB_NAME);



$arr=mysql_query("select * from cusers where ci>0 ;");


$i=mysql_num_rows($arr);

while (
$data=@mysql_fetch_array($arr))
{
if(
$ci==$data['ci']) $start=count($chi);
$ci[] = htmlspecialchars($data['ci'], ENT_QUOTES);
$name[] = htmlspecialchars($data['link'], ENT_QUOTES);
}

function 
go()
{
print 
"<?xml version="1.0" encoding="utf-8"?>";
print 
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Чаты</title><link rel="StyleSheet" type="text/css" href="style/0".$s.".css"></head><body>";
}
/////////////////////////////////
function ending()
{
print 
"</body></html>";
}
/////////////////////////////////
go();
$count=$i;
$count1=$count;
if(empty(
$start))
$start=0;
$start=intval($start);
if(
$start<0)
$start=0;
if(
$count>$start+5$count=$start+5;
$name=str_replace("http://","",$name);
for(
$i=$start;$i<$count;$i++)
{
$n=$i+1;





if(
5%$i!=0||$i==1$br="";




print 
"<div class="contur"><div class="header"><u>$br$n.&#1063;&#1072;&#1090;:</u> <a href="index.php?ci=$ci[$i]">$name[$i]</a><br/>
<u>&#1040;&#1076;&#1088;&#1077;&#1089;:</u> http://"
.$vash_site."/?ci=$ci[$i]<br/>";

$on_count = @mysql_query("SELECT count(*) FROM `".$px.$utable."` WHERE ltime>'".intval(time()-$offline)."' and ci='$ci[$i]';");
$online = @mysql_fetch_array($on_count);
$online_count htmlspecialchars($online['count(*)'], ENT_QUOTES);

$allreg_count = @mysql_query("SELECT count(*) FROM `chat_users` where ci='$ci[$i]';");
$all = @mysql_fetch_array($allreg_count);
$allcount htmlspecialchars($all['count(*)'], ENT_QUOTES);

print 
"<u>&#1054;nline:</u> ".$online['count(*)']."<br/>";
print 
"<u>&#1056;&#1077;&#1075;:</u> ".$all['count(*)']."<br/></div></div><br/>";

}
if(
$start!=0)
{
print 
"<a href="all.php?s=".$s."&amp;start=".($start-5).""><<<</a>";
}
if(
$count1>$start+5)
{
print 
" <a href="all.php?s=".$s."&amp;start=".($start+5)."">>>></a>";
}

print 
"<br/><div style="text-aligncenter">
   <div class="
contur_rek"><div class="header_rek"><a href="addchats.php">&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103; &#1095;&#1072;&#1090;&#1072;</a>";
print 
"<br/><a href="http://".$link_reklame.""><font color="#FFFF00">".$reklame."</font></a><br/></div></div>";
ending();
mysql_close($link);
?>
Онлайн: 0
Реклама