Файл: social12/foot.php
Строк: 63
<?php
$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);
// Вывод рекламы
$random = @mysql_query("SELECT * FROM `reklama` ORDER BY RAND() DESC LIMIT 3");
echo $div_left . '<div style="background: #d4EEFF;">
<fieldset>
<img src="/ico/rekl.gif" alt="reklama"/>
<br/>';
while($r = @mysql_fetch_assoc($random)) {
echo '<a href="http://' . $r['link'] . '">' . $r['name'] . '</a><br/>';
}
echo '</fieldset></div>';
// Нижняя навигация
if (!empty($_SESSION['us']) && $_SERVER['PHP_SELF'] != '/index.php') {
$WhyDiv = (empty($user['style_panel'])) ? $tworazdel : $div_navi;
$FootNav = mysql_query("SELECT `link`, `name` FROM `foot_links` WHERE `user` = '$user[id]' ORDER BY `sort` ASC");
echo $WhyDiv;
while($FootLink = mysql_fetch_assoc($FootNav)) {
echo '<a href="'.$FootLink['link'].'">'.$FootLink['name'].'</a> | ';
}
echo '<a href="/settings.php?do=foot_link">+</a>' . $div_end;
}
// очистка просмотров за месяц
if (!empty($_SESSION['us'])) {
mysql_query("DELETE FROM `my_view_month` WHERE `user` = '$user[id]' AND `date` != '" . date('m') . "'");
// очистка моих гостей
mysql_query("DELETE FROM `my_guest` WHERE `user` = '$user[id]' AND `date` != '" . date('d') . "'");
// очистка всевидящего ока
mysql_query("DELETE FROM `oko` WHERE `user` = '$user[id]' AND `time` + '180' < '" . time() . "'");
// удаление не активных гостей
mysql_query("DELETE FROM `guests` WHERE `date_last` < '" . time() - 100 . "'");
// удаление не активных лидеров
mysql_query("DELETE FROM `liders` WHERE `time` < '" . time() . "'");
// рейтинг
if (!empty($user['img'])) $rats += 10;
if (!empty($user['name'])) $rats += 5;
if (!empty($user['sex'])) $rats += 5;
if (!empty($user['birth'])) $rats += 5;
if (!empty($user['para'])) $rats += 5;
if (!empty($user['city'])) $rats += 5;
if (!empty($user['sp_st'])) $rats += 5;
if (!empty($user['height'])) $rats += 5;
if (!empty($user['weight'])) $rats += 5;
if (!empty($user['color_eye'])) $rats += 5;
if (!empty($user['hair'])) $rats += 5;
if (!empty($user['constitution'])) $rats += 5;
if (!empty($user['orient'])) $rats += 5;
if (!empty($user['about'])) $rats += 5;
if (!empty($user['partner'])) $rats += 5;
if (!empty($user['children'])) $rats += 5;
if (!empty($user['material'])) $rats += 5;
if (!empty($user['smoke'])) $rats += 5;
if (!empty($user['activity'])) $rats += 5;
if (!empty($user['lived'])) $rats += 5;
mysql_query("UPDATE `users` SET `ank_rating` = '$rats' WHERE `id` = '$user[id]' LIMIT 1");
}
echo $div_footer . '© ' . $copy . $div_end;
if (!empty($_SESSION['us'])) {
$kol = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `onl` + '200' > '" . time() . "'"), 0);
if ($_SERVER['PHP_SELF'] != '/index.php') echo $div_left . 'Сейчас наСИМке: <a href="/online.php?'.$ref.'">' . $kol . '</a>' . $div_end;
}
#echo $block . $div_center . '<a href="http://waplog.net/c.shtml?423591"><img src="http://c.waplog.net/423591.cnt" alt="waplog" /></a>' . $div_end;
echo '</div></body></html>';
if (isset($link)) { mysql_close($link); }
?>