Файл: foot.php
Строк: 104
<?
$Contents = ob_get_contents();
$gzib_file = strlen($Contents);
if ($support_deflate)
{
$gzib_file_out = strlen(gzdeflate($Contents,9));
}
else
{
if ($support_gzip)
{
$gzib_file_out = strlen(gzencode($Contents,9));
}
else
{
if ($support_x_gzip)
{
$gzib_file_out = strlen(gzcompress($Contents,9));
}
else
{
$gzib_file_out = strlen($Contents);
}
}
}
$gzib_pro = round(100 - (100/($gzib_file/$gzib_file_out)), 1);
echo '<a id="page-down"></a>';
if($u){
$cusers_online = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `online` > '".(time()-$system['online_time'])."'"), 0);
echo '<div style="
background: '.$fon.';
color: '.$color.';
padding: 6px;
"><div class = "down_menu">';
if($u['panel1'] == 0) {
echo '<a href = "/index.php"><font color="'.$link.'">Гл</font></a> | ';
}
if($u['panel2'] == 0) {
echo '<a href = "?sid=Back" onclick="history.back()"><font color="'.$link.'">Наз</font></a> | ';
}
if($u['panel3'] == 0) {
echo '<a href = "/'.$u['id'].'"><font color="'.$link.'">Дом</font></a> | ';
}
if($u['panel4'] == 0) {
echo '<a href = "/forum.php"><font color="'.$link.'">Фор</font></a> | ';
}
if($u['panel5'] == 0) {
echo '<a href = "/chat.php"><font color="'.$link.'">Чат</font></a> | ';
}
if($u['panel6'] == 1) {
echo '<a href = "/diary.php"><font color="'.$link.'">Дн-ки</font></a> | ';
}
if($u['panel7'] == 1) {
echo '<a href = "/arbour.php"><font color="'.$link.'">Бес</font></a> | ';
}
if($u['panel8'] == 1) {
echo '<a href = "/lenta.php"><font color="'.$link.'">Лента</font></a> | ';
}
if($u['panel9'] == 1) {
echo '<a href = "/gazeta.php"><font color="'.$link.'">Жур</font></a> | ';
}
if($u['panel10'] == 1) {
echo '<a href = "/microblog.php?act=all"><font color="'.$link.'">Блоги</font></a> | ';
}
if($u['panel11'] == 1) {
echo '<a href = "/search.php?act=go&online=1"><font color="'.$link.'">On</font></a><font color="'.$nlink.'"> '.$cusers_online.'</font> | ';
}
if($u['panel12'] == 0) {
echo '<a href = "/panel.php"><font color="'.$link.'">+</font></a></td>';
}
echo '</div></div>';
echo '<div class="div">';
echo '<a href="?sid=Back" onclick="history.back()">Назад</a> ';
if($u['admin'] >=1){
echo ' | <a href="/adminka.php">Админка</a> ';
} else {
echo ' | <a href = "/'.$u['id'].'">'.$u['login'].'</a> ';
}
echo " | <a href='/url.php?'>Ссылка</a>";
echo " | <a href='/url.php?act=copy'>Коп</a>";
echo '</div>';
} else {
echo '<div class = "div">
<a href = "rules.php">Правила</a> |
<a href="/index.php?info=1">О сайте</a> |
<a href="/index.php?rek=1">Реклама</font></a></div>';
}
if($u['developer'] == 1) {
echo '<div class="cred">';
echo '<small>Тестовый сервер / ';
if ($gzib_pro > 0 && $gzib_pro < 100)
{
echo 'Cжатие: ' . $gzib_pro . '% </small>';
}
echo '</div>';
}
echo '<div class = "menu">';
echo '<b>© <a href = "http://lovs.ws">Lovs.ws</a> 2012</b>';
echo'</div>';
echo '</body></html>';
?>