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