Просмотр файла chat/online.php

Размер файла: 2.54Kb
<?php
///////////////////////////////////////////////////////////////////////////////////////////
/////
/////                                ********* Best — в *********
/////
/////                            Made by   :  Best
/////                              E-mail  :  [email protected]
/////                                Site  :  http://best.ruwap.org 
/////                                 ICQ  :  415-213-787
/////
//////////////////////////////////////////////////////////////////////////////////////////////
//      ‚› Ќ… €Њ……’… ЏђЂ‚Ћ ‚ЌЋ‘€’ €‡Њ…Ќ…Ќ€џ ‚ ЉЋ„ ‘Љђ€Џ’Ђ „‹џ „Ђ‹њЌ…‰?…ѓЋ ђЂ‘ЏђЋ‘’ђЂЌ…Ќ€џ   //
//////////////////////////////////////////////////////////////////////////////////////////////
//Ї®бл« Ґ¬ § Ј®«®ўЄЁ
include "./header.php";
//ўЄ«оз Ґ¬ д ©« б Є®­дЁЈга жЁҐ©
include "./ini.php";
// ўв®аЁ§ жЁп
$login = autorize();
//§ Їа®б ­  зЁб«® ®­« ©­
$q_count = @mysql_query("SELECT count(*) FROM `".$px.$utable."` WHERE ltime>'".intval(time()-$offline)."'");
//ў ¬ ббЁў
$count = @mysql_fetch_array($q_count);
//Їа®¤®«¦ Ґ¬ ўлў®¤ ў Ўа г§Ґа
print '<card title="'.$lang['who_online'].' ('.$count['count(*)'].')">'.
'<p>';
	//гбв ­ ў«Ёў Ґ¬ а §¬Ґа иаЁдв 
	if($login['fsize'] == "small") { $fsize1 = "<small>"; $fsize2 = "</small>"; }
	elseif($login['fsize'] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
	elseif($login['fsize'] == "verysmall") { $fsize1 = "<small><small>"; $fsize2 = "</small></small>"; }
	else { $fsize1 = ""; $fsize2 = ""; }
	print $fsize1;
	//Є®¤ ўлў®¤  ббл«®Є ­  Є®¬­ вл
	$q = @mysql_query("select `var`,`val1` from `".$px.$stable."` where `mod`='room' order by val3;");
	//ў жЁЄ«Ґ ЇҐз в Ґ¬ ббл«ЄЁ
	while($droom = @mysql_fetch_array($q)) {
		$q_online = @mysql_query("SELECT `login` FROM `".$px.$utable."` WHERE ltime>'".intval(time()-$offline)."' AND room='".$droom['var']."' order by ltime desc;");
		print '<small>&#187; <a href="./room.php?id='.$id.'&amp;pass='.$pass.'&amp;room='.$droom['var'].'">'.$droom['val1'].'</a>:<br/>';
		while($donline = @mysql_fetch_array($q_online)) { print $donline['login'].", "; }
		print '</small><br/>';
	}
//§ Їа®б ­  Є®«ЁзҐбвў® ®­« ©­ ў ЇаЁе®¦Ґ©
$pr_count = @mysql_query("SELECT count(*) FROM `".$px.$utable."` WHERE ltime>'".intval(time()-$offline)."' AND room='';");
//ЇЁе Ґ¬ ў ¬ ббЁў
$pdc = @mysql_fetch_array($pr_count);
print "<small>&#187; <a href=\"enter.php?id=$id&amp;pass=$pass\">".$lang['holl']."</a>[".$pdc['count(*)']."]</small><br/>";
print $fsize2;
print '</p>'.
'</card>'.
'</wml>';
//а §алў Ґ¬ ᮥ¤Ё­Ґ­ЁҐ б Ў¤
@mysql_close();
ob_end_flush();
?>