Вход Регистрация
Файл: system/foot.php
Строк: 47
<?php

$Contents 
ob_get_contents();
$gzib_file strlen($Contents);

if (
$support_deflate)
{
    
$gzib_file_out strlen(gzdeflate($Contents,9));
}
else
{
    if (
$support_gzip)
    {
        
$gzib_file_out strlen(gzencode($Contents,9));
    }
    else
    {
    if (
$support_x_gzip)
    {
        
$gzib_file_out strlen(gzcompress($Contents9));
    }
    else
    {
        
$gzib_file_out strlen($Contents);
    }
}
}

$gzib_pro round(100 - (100 / ($gzib_file $gzib_file_out)), 1);

        if (!empty(
$_SESSION['us'])) {
            
// Вывод рекламы
            
$random mysql_query("SELECT * FROM `reklama` ORDER BY RAND() DESC LIMIT 3");
            if (
mysql_num_rows($random) != false)
            {
                while(
$r mysql_fetch_assoc($random))
                {
                     echo 
'<div class="mrekl"><a href="http://' $r['link'] . '">' $r['name'] . '</a></div>';
                }
            }
            
// удаление не активных гостей
             
mysql_query("DELETE FROM `guests` WHERE `date_last` < '" time() - 200 "'");
        }

if (
$_SERVER['PHP_SELF'] !== '/index.php') echo $block '<div><img src="/ico/reload.gif" alt="home"/> <a href="/index.php">На главную</a></div>';
if (!empty(
$_SESSION['us'])) {
    
$num_g mysql_result(mysql_query("SELECT COUNT(ip) FROM `guests` WHERE `date_last` > '" . (time() - 200) . "' AND `pereh` > '0'"), 0);
    
$num_u mysql_result(mysql_query("SELECT COUNT(id) FROM `users` WHERE `onl` + '300' > '" time() . "'"), 0);
    echo 
$div_footer 'На сайте: <a href="/online.php">' $num_u '</a>/<a href="/online_g.php">' $num_g '</a>' $div_end;
} else {
    
$num_g mysql_result(mysql_query("SELECT COUNT(ip) FROM `guests` WHERE `date_last` > '" . (time() - 200) . "' AND `pereh` > '0'"), 0);
    
$num_u mysql_result(mysql_query("SELECT COUNT(id) FROM `users` WHERE `onl` + '300' > '" time() . "'"), 0);
    echo 
$div_footer 'На сайте: ' $num_u '/' $num_g '<br/>' $copy $div_end;
}

mysql_close();
echo 
'</div></body></html>';

#list($msec, $sec) = explode(chr(32), microtime());
#echo round(($sec + $msec) - $time, 4).' сек'; 

?>
Онлайн: 1
Реклама