Файл: public_html/vfa.php
Строк: 25
<?
    require('config.php');
    include('remframeads.php');
    $res=mysql_query("select count(id) from tb_frameads");
    $kolvo=mysql_result($res,0,0);
    $i=(int)rand(1,$kolvo);
    $res=mysql_query("select * from tb_frameads order by id asc");
    
    for($j=1;$j<=$i;$j++) $row=mysql_fetch_array($res);
    $url=$row["link"];
    $adstext=$row["text"];
    
    ?>
    <style>
        a { color: #f00; text-decoration: none; font-weight: bold; }
        a:hover { color: #a00; text-decoration: none; fron-weight: bold; }
    </style>
    <table width="100%">
    <tr><td style="text-align: left;">
    <b>Реклама во фрейме: </b>
    <a href="<?=$url ?>" target="_blank"><?=$adstext?></a>
    </td><td style="text-align: right;">
    <a href="advertise.php?adv=frame" target="_blank">Разместить рекламу во фрейме</a>
    </td></tr>
    </table>
    <script type="text/javascript">
    setTimeout('location.replace("vfa.php")', 10000);
    </script>
    <noscript>
    <meta http-equiv="refresh" content="10; url=vfa.php">
    </noscript>
    <?
    mysql_close($con);
?>