File size: 2.32Kb
<?php
/**********************************
* @year: 2015 *
* @author: Klubv *
* @icq: 611940693 *
* @link: http://klubv.ru *
**********************************/
echo "<div class='downsw'>";
$ip = mysql_escape_string($_SERVER['REMOTE_ADDR']);
$ua = mysql_escape_string($_SERVER['HTTP_USER_AGENT']);
mysql_query("DELETE FROM online WHERE `time`+300 < ".time()." OR `ip` = '$ip'") ;
if (!isset($_USER)){
mysql_query("INSERT `online` SET `ip`='$ip',`time`='".time()."',`ua`='".shor_agent."';");
}
$time = time();
$q = mysql_query("select * from `".prefix."users` where `online` > ($time - 300);");
$reg=mysql_num_rows($q);
If ($_enter) {
echo '<img src="/images/on.png"/> <font color="white"><b>В клубе: </b></font><a href="/who.php'.$_zapros.'mode=u"><font color="#ffff00">своих:<b>'.$reg.'</b></font></a> | <a href="/who.php'.$_zapros.'mode=g"><font color="#ffff00">гостей:<b>'.mysql_num_rows(mysql_query('SELECT id FROM `online`')).'</b></font></a></br>';
}
else
{
echo '<img src="/images/on.png"/> <font color="white"><b>В клубе: </b></font><font color="#ffff00">своих:<b>'.$reg.'</b></font> | <font color="#ffff00">гостей:<b>'.mysql_num_rows(mysql_query('SELECT id FROM `online`')).'</b></font></a></br>';
}
echo"</div>";
///Баненнеры///
echo'<div class="menuindexom">';
$result=@mysql_query("SELECT * FROM `baner`");
$count = mysql_num_rows($result);
if ($count>0)
for ($i=0;$i<$count;$i++){
echo '<a href="'.mysql_result($result,$i,'url').'"><img src="'.mysql_result($result,$i,'urlimg').'" alt="'.mysql_result($result,$i,'naz').'" width="72" height="25"/></a> ';
}
///Счёчики///
$counters=@mysql_query("SELECT * FROM `counters`");
$coun = mysql_num_rows($counters);
for ($i=0;$i<$coun;$i++){
echo ' <a href="'.mysql_result($counters,$i,'url').'"><img src="'.mysql_result($counters,$i,'urlimg').'" alt="'.mysql_result($counters,$i,'naz').'"/></a>';
}
#####Tak.ru#####
echo'</div>';echo'<div class="menuindexom">'.$takru.'</div>';
################
$datconf = mysql_fetch_array(mysql_query("SELECT * FROM `nastroyki` where `id`='1';"));
$copy=$datconf['copi'];
$datean=date("Y");
echo "<div class='foot'>";
echo'<a href="http://'.$copy.'"><font color="white"><b>© '.$copy.' - '.$datean.'</b></font><br />';
echo'</div>';
/////////// ///////////////////////////////////
?>