View file header/end.inc.php

File size: 2.91Kb
<?php
echo "<div class='menuindex'>";
echo'<a href="javascript:history.back(1)"><b>назад</b></a> |
<a href="/enter.php"><b>кабинет</b></a></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);
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"";
 $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="enterrega"><noindex>';}

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 '<img src="/images/right.gif"/><a href="/rek.php?mode=go&amp;id='.$f[id].'">'.$b1.' '.$nfont.' '.$f[nazv].' '.$kfont.' '.$b2.'</a><br>';
}
if($k!==0) {echo'</noindex></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>';
}
echo'</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; '.$copy.' - '.$datean.'</b></font><br />';
echo'</div>';
/////////// ///////////////////////////////////


 echo'</body>
</html>  ';

mysql_close();
exit;



?>