Файл: sys/inc/tfoot.php
Строк: 48
<?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 "<a href = '$link[url]'><img src='/style/img/$link[icon]' /></a> | n";
} else {
echo "<a href = '$link[url]'>$link[sname]</a> | n";
}
}
echo "<a href = '/user/links/' title = 'Добавить ссылку'>" . img('plus-small.png') . "</a>";
echo "</div></div>";
}
}
echo "<div class = 'buttons footer'><div class = 'tiptip'>";
if ($_SERVER['PHP_SELF'] != '/aut.php' && $_SERVER['PHP_SELF'] != '/index.php') {
echo "<a href = '/index.php' class = 'button' title = 'На главную'><span class = 'icon icon108' /></a>";
}
if (isset($user)) {
echo "<a href = '/umenu.php' class = 'button left' title = 'Кабинет'><span class = 'icon icon23' /></a>";
echo "<a href = '/info/' class = 'button middle' title = 'Справка'><span class = 'icon icon112' /></a>";
echo "<a href = '/exit.php' class = 'button right' title = 'Выход'><span class = 'icon icon151' /></a>";
}
echo "<br /><font color = 'grey'>Генерация: " . round(($sec + $msec) - $conf['headtime'], 3) . " сек</font>";
echo "</div></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;