Файл: inc/advert.php
Строк: 20
<?php
if ($active_rek > 0 && $sys['modules']['ads'] == 1) {
echo '<div class="title">Реклама</div>';
$data = $connect->prepare("select * from `rek` where `status` = '1' and `expire` > :time order by `expire` desc");
$data->bindValue(':time', time(), PDO::PARAM_INT);
$data->execute();
$sql = $data->fetchAll();
foreach ($sql as $row) {
$name = $row['color'] ? '<font color="'.$row['color'].'">'.$row['name'].'</font>' : $row['name'];
if ($row['comment'])
$name .= '<div class="chi">'.$row['comment'].'</div>';
echo '<div class="forlink"><a data-noajax href="/go/'.base64_encode($row['url']).'" target="_blank" class="links"><img src="/img/forward.png" alt="forward">'.$name.'</a></div>';
}
}