Файл: includes/footer.php
Строк: 44
<?php
if (!defined('IN_SCRIPT'))
{
die("Unknown Error!");
}
$result=@mysql_query("SELECT * FROM `rekl` WHERE `r`='2' and `activ`='1' ORDER BY rand() LIMIT 1");
$count = mysql_num_rows($result);
for ($i=0;$i<$count;$i++){
if (mysql_result($result,$i,'color')==1) {
$color='ff0000';
}
if (mysql_result($result,$i,'color')==2) {
$color='45719B';
}
if (mysql_result($result,$i,'color')==3) {
$color='000000';
}
if (mysql_result($result,$i,'color')==4) {
$color='008000';
}
if (mysql_result($result,$i,'color')==5) {
$color='996633';
}
echo '<div class="box_2">
<a style="color:#'.$color.'" href="geturl.php?url='.mysql_result($result,$i,'id').'">«'.mysql_result($result,$i,'name').'»</a></div>
';
@mysql_query("UPDATE `rekl` SET `p`=`p`+'1' WHERE `id`='".mysql_result($result,$i,'id')."'");
@mysql_query("UPDATE `rekl` SET `srok`<`".time()."`");
}
echo '<center>';
$result=@mysql_query("SELECT * FROM `baner`");
$count = mysql_num_rows($result);
if ($count>0){
echo '<div class="box_2"><center>';
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>';
}
echo '</center></div>';
}
$datesi=date("Y");
echo '</div>
<div class="foot"><center>
© '.$settings['copi'].' '.$datesi.' </center></div>';
echo '<center>';
$end_time = microtime();
$end_array = explode(" ",$end_time);
$end_time = $end_array[1] + $end_array[0];
// вычитаем из конечного времени начальное
$time = $end_time - $start_time;
$f=substr($f,0,strlen($f)-2);
printf(" %f ms",$time);
echo '<br/>';
$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 '</center></body>';
?>