Файл: system/foot.php
Строк: 27
<?php
$count = mysql_result(mysql_query("SELECT COUNT(*) FROM `rekl` WHERE `pos` = 'foot' AND `time` > '". time() ."'"), 0);
if ($count != 0) {
echo '<div class="rekl">';
$q = mysql_query("SELECT * FROM `rekl` WHERE `pos` = 'foot' AND `time` > '". time() ."' ORDER BY `id` ASC");
while ($rekl = mysql_fetch_assoc($q)) {
echo '<a href="http://'. $rekl['url'] .'">'. $rekl['name'] .'</a><br>';
}
echo '</div>';
}
if (!isset($_COOKIE['version'])) {
echo '</div>
<div class="foot">
<a href="/pages/help.php" title="Помощь">Помощь</a> |
<a href="/pages/diaries/" title="Дневники">Дн-ки</a> |
<a href="/pages/mchat/" title="Мини-чат">Мини-чат</a> |
<a href="/pages/forum/" title="Форум">Форум</a> |
<a href="/pages/personal/" title="Личный кабинет">Кабинет</a>
</div>
</div>
<div class="copy"><a href="http://peascms.ru/">PeasCMS (PCMS) © 2012-2014</a></div>';
} else {
echo '</div>
<table style="width:100%" cellspacing="0" cellpadding="0"><tbody><tr>
<td style="vertical-align:top;width:20%;border-right:none !important;">
<a class="foot" href="/pages/help.php" title="Помощь"><span style="color:#FFF">Помощь</span></a>
</td>
<td style="vertical-align:top;width:20%;">
<a class="foot" href="/pages/diaries/" title="Дневники"><span style="color:#FFF">Дн-ки</span></a>
</td>
<td style="vertical-align:top;width:20%;">
<a class="foot" href="/pages/mchat/" title="Мини-чат"><span style="color:#FFF">Мини-чат</span></a>
</td>
<td style="vertical-align:top;width:20%;">
<a class="foot" href="/pages/forum/" title="Форум"><span style="color:#FFF">Форум</span></a>
</td>
<td style="vertical-align:top;width:20%;">
<a class="foot" href="/pages/personal/" title="Личный кабинет"><span style="color:#FFF">Кабинет</span></a>
</td>
</tr></tbody></table>
</div>
<div class="copy"><a href="http://peascms.ru/">PeasCMS (PCMS) © 2012-2014</a></div>';
}
echo '</body>';
exit;
?>