Файл: header/end.inc.php
Строк: 69
<?php
echo "<div class='zag'>";
If (!$_enter) {
// SAPE
if (!defined('_SAPE_USER')){
define('_SAPE_USER', '14d9f24c296a886635c3d363a707badb');
}
require_once(realpath($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php'));
$sape = new SAPE_client();
echo '<div class="downsw">';
echo $sape->return_links();
//echo $linkfeed->return_links();
echo '</div>';
}
////
echo '<!-- ImKlub.ru -->';
echo '<div class="menuindex"><a href="javascript:history.back(1)"><b>Назад</b></a> | <a href="/enter.php"><b>Кабинет</b></a></div>';
////
$result = mysql_query("SELECT * FROM `rek` where `srok`>".time()." && `mesto`='2' order by `id`");
$k=mysql_num_rows($result);
if($k!==0) {echo'<div class="ads"><font color ="#996633"><small><u>›Партнёры:</u></small></font><br/>';}
for ($c=0; $c<mysql_num_rows($result); $c++){
$f = mysql_fetch_array($result);
if($f[cvet]!==NULL){
$nfont='<font color ="'.$f[cvet].'">';
$kfont='</font>';
}
if($f[b]=="1"){
$b1='<b>';
$b2='</b>';
}
else{$b1='';
$b2='';}
echo '¤<a href="/reklam/rek.php?mode=go&id='.$f[id].'">'.$b1.' '.$nfont.' '.$f[nazv].' '.$kfont.' '.$b2.'</a>';
}
if($k!==0) {echo'</div>';}
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);
$s = mysql_query("select * from `".prefix."users` where `online` > ($time - 86400);");
$seg=mysql_num_rows($s);
If ($_enter) {
echo '
<font color="white"><b>В клубе: </b></font>
<a href="/system/who.php'.$_zapros.'mode=u"><font color="#ffff00">Своих:<b>'.$reg.'</b></font></a> |
<a href="/system/who.php'.$_zapros.'mode=g"><font color="#ffff00">Гостей:<b>'.mysql_num_rows(mysql_query('SELECT id FROM `online`')).'</b></font></a> |
<a href="/system/who.php'.$_zapros.'mode=s"><font color="#ffff00">Сутки:<b>'.$seg.'</b></font></a>
';
}
else
{
echo '<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> |
<font color="#ffff00">Сутки:<b>'.$seg.'</b></font>
';
}
echo"</div>";
echo'<div class="foot"><font color=#2E8B57><b>ImKlub.ru</b><br/><small>2012-13</small></font></div>';
echo'</div></body></html>';
mysql_close();
exit;
?>