|
<?php
/*
#Бесплатный WAP движок StrongCMS
#Официальный сайт поддержки: http://strongcms.ru
*/
##Онлайн счетчик
$online_guests = $db->super_query("SELECT COUNT(*) as count FROM `online_guests` WHERE `time` > '".(TIME - 300)."'");
$online_user = $db->super_query("SELECT COUNT(*) as count FROM `users` WHERE `viz` > '".(TIME - 360)."'");
echo '<div class="menu"><a href="'.HOME.'/online.php"><span class="counts3">В сети: '.$online_user['count'].'</a></span>';
##кнопка на главную
if ($_SERVER['PHP_SELF'] != '/index.php')
echo '<span class="counts3"><a href="'.HOME.'" ><img src="'.HOME.'/images/home.png" alt="home" title="На главную" /></a></span>';
echo '<a href="'.HOME.'/online_g.php"><span class="counts_right">Гостей: '.$online_guests['count'].'</a></span></a>';
##Кнопка назад
if ($_SERVER['PHP_SELF'] != '/index.php')
echo '<span class="counts_right"><a href="'.htmlspecialchars(getenv("HTTP_REFERER")).'"><img src="'.HOME.'/images/naz.png" alt="nazad" title="Назад" /></a></span>';
echo '</div>';
##Блок рекламы
$rek = $db->super_query("SELECT COUNT(id) as count FROM `ads` WHERE `time_srok` > '".TIME."' and `tip` = '1'");
$sql_rek = $db->query("SELECT * FROM `ads` WHERE `time_srok` > '".TIME."' and `tip` = '1' ORDER BY rand() ");
if ($rek['count'] != 0)
{
echo '<div class="news">';
while ($sql = $db->fetch_assoc($sql_rek))
{
echo '<a href="'.$sql['url'].'"><img src="'.HOME.'/images/rr.png" alt="*" title="Реклама" /> ';
echo '<font color="'.$sql['color'].'">';
if ($sql['b'] == 1)
echo '<b>';
if ($sql['i'] == 1)
echo '<i>';
echo $sql['name'];
if ($sql['i'] == 1)
echo '</i>';
if ($sql['b'] == 1)
echo '</b>';
echo '</font>';
echo '</a>';
if ($rek > 1)
echo '
';
}
echo '</div>';
}
##Генерация страницы
echo '<center><div class="footer">Ген. '.round(microtime(1) - $tgens, 4).' сек.</centr><br></div>';
##Счетчики
echo '<marquee behavior="scroll"
direction="up" height = "15px"
scrollamount="3"><center>';
if ($_SERVER['REQUEST_URI'] == '/')
echo $settings['counter'];
else
echo $settings['counter_all'];
echo '</center></marquee>';
echo '<div class="footer"><center>© <a href="'.HOME.'"> '.$_SERVER['HTTP_HOST'].'</a></div></center>'; // ВНИМАНИЕ!!! Данный копирайт удалять запрещено
echo base64_decode('PGRpdiBjbGFzcz0ibWVudSI+PGNlbnRlcj48YSBocmVmPSJodHRwOi8vc3Ryb25nY21zLnJ1LyI+IFN0cm9uZ0NNUzwvYT4gJiA8YSBocmVmPSJodHRwOi8vY2xhbml4LnJ1Ij5DSElMSTwvYT48L2NlbnRlcj48L2Rpdj4=');
echo '</body></html>';
?>