Файл: mob-lave.ru/core/foot.php
Строк: 51
<?php
if ($_SERVER['PHP_SELF'] == '/index.php'){
    echo '<div class="foot"><center>
    <a href="/moduls/info/?id=1">Контакты</a> - 
    <a href="/moduls/info/admin.php">Тех. поддержка</a> - 
    <a href="/moduls/info/">Информация</a>
    </center></div>';
    
$cache = H.'/core/cache/ads.php';
$bot = (preg_match('#Google-Bot/([0-9]+.[0-9]+)#i', $_SERVER['HTTP_USER_AGENT']) or preg_match('#Yandex-Bot/([0-9]+.[0-9]+)#i', $_SERVER['HTTP_USER_AGENT']) ? true : false);
if (file_exists($cache) and (time() - filemtime($cache) < 43200))
    $ads = json_decode(file_get_contents($cache));
else {
    $ads = file_get_contents('http://dcms-fiera.ru/ads/ads.php?key=ad8fd2b3c11bb4f7571caf3c2025e937&version=2');
    $fp = fopen($cache, 'w');
    fwrite($fp, $ads);
    fclose($fp);
    $ads = json_decode($ads);
}
if (is_array($ads[0]))
    $ads = $ads[ rand( 0, count ($ads) - 1 ) ];
$name = explode ('|', $ads[1]);
$name = $name[ rand(0, count($name) - 1) ];
        
    }else{
        echo '<table width="100%" cellspacing="0" cellpadding="0" class="auts">
                <tr>
                    <td class="aut"><a href="/moduls/forum/"><center><div id="darks" class="icon-bubble2"></div></center></a></td>
                    <td class="aut"><a href="/moduls/foto/all_foto.php"><center><div id="darks" class="icon-camera3"></div></center></a></td>
                </tr>
            </table>';
            
    }
    echo '<div class="footer">';
        $timer[] = microtime(true);
        echo '<table style="width:100%" cellspacing="0" cellpadding="0">
            <tr>
                <td class="banners">
                    <marquee onmouseover="this.stop()" onmouseout="this.start()" behavior="scroll" direction="up" height = "40spx" scrollamount="2"><noindex>';
                    echo '</noindex></marquee></td><td align="right">';
                    
                    echo round($timer[1] - $timer[0],3).' сек<br/>';
                    echo 'SQL: '. intval(mysql_list_processes());
                    echo '<a href="/sitemap.xml"><img src="/design/images/site/robot.png" alt="sitemap.xml" /></a>
                </td>
            </tr>
        </table>';
    $timer[] = microtime(true);
    
    echo '</div></body></html>';
?>