Файл: sys/inc/tfoot.php
Строк: 36
<?php
list($msec, $sec) = explode(chr(32), microtime());
if (isset($user)) {
$ank['id'] = $user['id'];
}
if (isset($user) && $user['id'] == $ank['id']) {
if ($user['show_foot'] == 'on') {
echo "<div class = 'razd'>";
echo "<div style = 'text-align: $user[foot_sit]'>";
$links = mysql_query("SELECT * FROM `links_foot_user` WHERE `id_user` = '$user[id]' ORDER BY `pos` ASC");
while ($post = mysql_fetch_array($links)) {
$link = mysql_fetch_array(mysql_query("SELECT * FROM `links_foot` WHERE `id` = '$post[id_link]' LIMIT 1"));
if ($user['show_foot_type'] == 'icons') {
echo "<span class = 'add'><a href = '$link[url]'>" . img16("$link[icon]") . "</a></span> ";
} else {
echo "<span class = 'add'><a href = '$link[url]'>$link[sname]</a></span> ";
}
}
echo "<a href = '/user/links/' title = 'Добавить ссылку'>" . img16('plus.png') . "</a>";
echo "</div></div>";
}
}
echo "<div class = 'footer'>";
if ($_SERVER['PHP_SELF'] != '/aut.php' && $_SERVER['PHP_SELF'] != '/index.php') {
echo "<a href = '/index.php' class = 'add' title = 'На главную'>" . img16('home.png') . "</a>";
}
if (isset($user)) {
echo "<a href = '/umenu.php' class = 'add' title = 'Кабинет'>" . img16('001.png') . "</a>";
echo "<a href = '/modules/info/' class = 'add' title = 'Справка'>" . img16('info.png') . "</a>";
echo "<a href = '/exit.php' class = 'add' title = 'Выход'>" . img16('off.png') . "</a>";
}
//echo "<br />Генерация: " . round(($sec + $msec) - $conf['headtime'], 3) . " сек";
echo "</div>";
$rekl = mysql_result(mysql_query("SELECT COUNT(*) FROM `rekl` WHERE `sel` = '3'"), 0);
if ($rekl > 0) {
echo "<div class='rekl'>";
rekl(3);
echo "</div>";
}
echo "</body>n</html>";
exit;