Файл: user/index.php
Строк: 401
<?
require ('../connect.php');
$location = '(На главной)';
$title = $title.' | Твой дом!';
$cusers_online = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `online` > '".(time()-$system['online_time'])."'"), 0);
$col_g = mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > '" . (time() - 100) . "' AND `pereh` > '0'"), 0);
if($u['setting_theme']){
$theme = '/themes/'.$u['setting_theme'].'/';
if(!is_dir($theme)){
$theme = '/themes/default/';
}
} else {
$theme = '/themes/default/';
}
echo '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<!--1345106472-->
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=utf-8"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="cache-control" content="must-revalidate"/>
<meta http-equiv="cache-control" content="no-store"/>
<meta name="keywords" content="Знакомства, общение, форум, чат, развлечения, , приложения, конкурсы, загрузки, библиотека, фан клубы, фото-бои, Wap Базар">
<meta name="description" content="Мир Друзей, Приятных Знакомств и Яркого Общения! Знакомства, общение, форум, чат, развлечения, , приложения, конкурсы, загрузки, библиотека! Заходи и найди у нас, отдых по душе!">
<meta name="author" content="vKollektive.net">
<meta name="copyright" content="vkollektive.net">
<meta name="generator" content="vKollektive_net_core_beta_test">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="'.$theme.'style.css" type="text/css"/>
<title>'.$title.'</title>
</head>
<body>';
/*
echo'<div id="georglenta">
<a rel="nofollow" href="http://vkollektive.net">
<img src="/ico/9may3.png" />
</a>
</div>';
*/
echo '<div class="logo"><img src="/image/logo.png" width="210" height="75"></div>';
echo '<div class="logo2"></div>';
# background-color: #b4c8e9; /ico/top.png
if($u['id']){
echo '<div style="
background: url(/image/2.png);
color: #434e60;
padding:0px 0px 0px 0px;
margin: 0px;
line-height: 25px;
">';
echo ' <div class="menu_icon">
<table style="width:100%" cellspacing="0" cellpadding="0"><tr>
<td style="vertical-align:top;width:24%;border-right: 1px solid #D4EEFF;white-space: nowrap;">
<a href = "/page.php?id='.$u['id'].'"style="text-align:center;display:block;padding:5px;font-size: small;"><font color="black">'.$u['login'].'</font></a></td>
<td style="vertical-align:top;width:24%;white-space: nowrap;"><a href = "login.php?out=1"style="text-align:center;display:block;padding:5px;font-size: small;"><font color="black">Выход</font></a></td>
</tr></table></div></div>';
if($u['admin'] ==1 || $u['admin'] ==2){
$count_spam = mysql_result(mysql_query("SELECT COUNT(*) FROM `spam`"), 0);
if($count_spam){
if($count_spam) echo '<div class="cred"><a href = "adminka.php?act=spam">Спам почта</a> (<font color="red">+'.$count_spam.'</font>)</div>';
}
}
echo '</div>';
mysql_query("UPDATE `users` SET `online` = '".time()."', `location` = '$location', `chat_location` = '$chat_location' WHERE `id` = '".$u['id']."'");
if($u['online']){
$timeplus = time()-$u['online'];
if($timeplus < $system['online_time']){
mysql_query("UPDATE `users` SET `anketa_alltime` = '".($u['anketa_alltime'] + $timeplus)."' WHERE `id` = '".$u['id']."'");
} else {
mysql_query("UPDATE `users` SET `anketa_alltime` = '".($u['anketa_alltime'] + $system['online_time'])."' WHERE `id` = '".$u['id']."'");
}
}
} else
{
echo '<div style="
background: url(../image/1.png);
color: #434e60;
padding:0px 0px 0px 0px;
margin: 0px;
line-height: 25px;
">';
echo ' <div class="menu_icon">
<table style="width:100%" cellspacing="0" cellpadding="0"><tr>
<td style="vertical-align:top;width:24%;border-right: 1px solid #D4EEFF;white-space: nowrap;"><a href = "/login.php"style="text-align:center;display:block;padding:5px;font-size: small;"><font color="black">Вход</font></a></td>
<td style="vertical-align:top;width:24%;white-space: nowrap;"><a href = "/registration.php"style="text-align:center;display:block;padding:5px;font-size: small;"><font color="black">Регистрация</font></a></td>
</tr></table></div></div>';
}
require('../core/ava_min.php');
# новости
$cusers = mysql_result(mysql_query("SELECT COUNT(*) FROM `users`"), 0);
$cnews = mysql_fetch_array(mysql_query("SELECT * FROM `news` ORDER BY `time` DESC"));
if ($cnews) $cnews = '['.vremya($cnews['time']).']';
# газета
$cjurnal = mysql_fetch_array(mysql_query("SELECT * FROM `gazeta` ORDER BY `time` DESC"));
if ($cjurnal) $cjurnal = '['.vremya($cjurnal['time']).']';
# Лента
$lenta = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `lenta`"), 0);
$lenta2 = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `lenta` WHERE `time` > '".(time()-(30*30*12))."'"), 0);
if($lenta2 > 0) $lenta_new = '<font color = "red">+'.$lenta2.'</font>';
# Админка
$admin_jurnal = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `admin_jurnal`"), 0);
$admin_jurnal2 = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `admin_jurnal` WHERE `time` > '".(time()-(30*30*12))."'"), 0);
if($admin_jurnal2 > 0) $admin_jurnal_new = '<font color = "red">+'.$admin_jurnal2.'</font>';
# беседка
$carbour = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `arbour`"), 0);
$carbour2 = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `users` WHERE `online` > '".(time()-$system['online_time'])."' AND `location` = 'arbour'"), 0);
# чат
$cchat = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `users` WHERE `online` > '".(time()-$system['online_time'])."' AND `location` = 'chat'"), 0);
# форум
$cforum = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `forum_themes`"), 0);
$cforum2 = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `forum_messages`"), 0);
$cforum3 = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `forum_messages` WHERE `time` > '".(time()-(60*60*24))."'"), 0);
if($cforum3 > 0) $forum_new = '<font color = "red">+'.$cforum3.'</font>';
# знакомства
$cusers_zh = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `sex` = 'zh'"), 0);
$cusers_m = $cusers-$cusers_zh;
# дневники
$cdiary = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `diary_messages`"), 0);
$cdiary2 = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `diary_messages` WHERE `time` > '".(time()-(60*60*24))."'"), 0);
if($cdiary2 > 0) $diary_new = '<font color = "red">+'.$cdiary2.'</font>';
# микроблоги
$cblog = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `microblog_messages`"), 0);
$cblog2 = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `microblog_messages` WHERE `time` > '".(time()-(60*60*24))."'"), 0);
if($cblog2 > 0) $blog_new = '<font color = "red">+'.$cblog2.'</font>';
# пользователи
$cusers = mysql_result(mysql_query("SELECT COUNT(*) FROM `users`"), 0);
$cusers_online = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `online` > '".(time()-$system['online_time'])."'"), 0);
$cusers2 = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `anketa_datareg` > '" . (time() - 60*60*24) . "'"), 0); if ($cusers2 > 0) $cusers_new = '<font color = "red">+' . $cusers2 . '</font>';
# администрация
$admins = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `admin`"), 0);
require('../style/praz.php');
echo '<div class="zona"><img src = "ico/icons/top.png"><font color="#ff3399"> <b>VIP пользователи:</b></font></br>';
if($u['id']){
$req = mysql_query("SELECT * FROM `popular` WHERE `user` = '".$u['id']."' LIMIT 1");
if(mysql_num_rows($req)==0){
echo '<a href = "popular.php"><img src="ico/J.gif"><font color="red"><b> Попасть сюда?</b></font></a>';
}
}
$cusers_5 = mysql_result(mysql_query("SELECT COUNT(*) FROM `popular`"), 0);
if($cusers_5 > 0){
$result = mysql_query("SELECT * FROM `popular` ORDER BY `time` DESC LIMIT 0, 5");
echo '<table><tr align="center">';
while($user = mysql_fetch_assoc($result)){
echo '
<td>';
ava_k($user['user'],35);
echo '</td>';
}
echo '</tr></table>';
}else{
echo '<br>VIP Пользователей не найдено!';
}
echo '</div>';
if($u['admin'] == 1 || $u['admin'] == 2 || $u['admin'] == 3 || $u['admin'] == 4 || $u['admin'] == 5){
echo '</div>';
}
require('../core/bb_code.php');
echo ' <a href = "about.php"><div class="div"><img src="ico/icons/about.png" alt=""/> Первый раз на vKollektive.net?</div></a>';
echo ' <a href = "news.php?"><div class="div"><img src="ico/icons/news.png" alt=""/> Новости <font color = "#777777">'.$cnews.'</font></div></a> </font>';
if (@$u['id'] != $user['id']) {
echo"<small>";
require('../user/news.php');
echo"</small>";
}
echo ' </div><a href = "lenta.php?"><div class="div"><img src="ico/icons/sv.png" alt=""/> События <font color = "#777777">['.$lenta.'] '.@$lenta_new.'</font></div></a> ';
echo ' <a href = "gazeta.php?"><div class="div"><img src="ico/icons/shop.png" alt=""/> Газета<font color = "#777777">'.$cjurnal.'</font></div></a> ';
echo"<div class='menu2'><font color='white'>Общение:</font></div>";
echo ' <a href = "forum.php"><div class="div"><img src="ico/icons/forum.png" alt=""/> Форум <font color = "#777777">['.$cforum.' | '.$cforum2.'] '.@$forum_new.' </font> </div></a>';
/*
echo' <div class="div"> '; $result = mysql_query("SELECT * FROM `forum_themes` ORDER BY `time` DESC LIMIT 3"); while ($theme = mysql_fetch_assoc($result)) { echo $i % 2 ? '<div id="in11">' : '<div id="in11">'; $count = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `forum_messages` WHERE `theme` = '".$theme['id']."'"), 0); $name = checkout($theme['name']); $end = mysql_query("SELECT `user`,`time` FROM `forum_themes` WHERE `id` = '".$theme['id']."' ORDER BY `time` DESC"); $end_msg = mysql_fetch_array($end); if($theme['fix'] == 1) { echo '<img src="ico/stick.gif" alt=""/> ';}else{ echo '<img src="ico/tik.png" alt="image" /> ';} echo '<a href = "forum.php?act=theme&id='.$theme['id'].'&cat=1"><font color="#777777">'.$name.' ('.$count.')</font> <small><font color="green">'.vremya($end_msg['time']).'</font></small> </a>'; if($theme['18'] == 1) { echo '/ <font color="red">18+</font>'; } if($theme['close'] == 1) {echo '<img src="ico/lock.gif" alt="image" />'; } echo '</div>';} echo '</div></div>';
*/
echo ' <a href = "chat.php"><div class="div"><img src="ico/icons/chat.png" alt=""/> Чат <font color = "#777777">[<font color = "green">'.$cchat.' </font> чел.]</font></div></a>';
echo ' <a href = "diary.php"><div class="div"><img src="ico/icons/blog.png" alt=""/> Дневники <font color = "#777777">['.$cdiary.'] '.@$diary_new.'</font></div></a> ';
echo ' <a href = "arbour.php"><div class="div"><img src="ico/icons/guest.png" alt=""/> Беседка <font color = "#777777">['.$carbour.' | </font><font color = "green">'.@$carbour2.' чел.]</font></div></a> ';
$soo = mysql_result(mysql_query("SELECT COUNT(*) FROM `soo`"), 0);
echo ' <a href = "/soo/"><div class="div"><img src="ico/icons/soo.png" alt=""/> Сообщества <font color = "#777777">['.$soo.']</font></div></a> ';
echo '<a href = "search.php"><div class="div"><img src="ico/icons/love.png" alt="lovs"/> Знакомства</a> <font color = "#777777">[<font color = "#FF3399">Ж:'.$cusers_zh.'</font> | <font color = "#0099FF">М:'.$cusers_m.'</font>]</font> | <a href = "search.php?search=1">Поиск</a></div>';
echo"<div class='menu3'><font color='white'>Загрузки:</font></div>";
echo ' <a href = "/user/down.php"><div class="div"><img src="ico/icons/obmen.png" alt=""/> Загрузки <font color = "#777777">[<font color = "green">120 млн</font>]</font></div></a>';
$down = mysql_result(mysql_query("SELECT COUNT(*) FROM `down`"), 0); echo '<a href = "user/shared_zona/"> <font color="#777777"><div class="div"><img src="ico/icons/obmen.png" alt=""/> Зона обмена ['.$down.']</font> </a><br/>';
echo"Mузыка, видео ,картинки, игры...</div>";
echo"<div class='menu2'><font color='white'>Прочее:</font></div>";
# echo ' <a href = "/play/libary/"><div class="div"><img src="ico/icons/game.png" alt=""/> Библиотека <font color = "#777777">[319|<font color = "red">+319</font>] </font> <font color = "red">NEW</font></div></a>';
echo ' <a href = "/user/braks/"> <div class="div"><img src="ico/icons/love.png"> Бракосочетание </a> ';
$count=mysql_result(mysql_query("SELECT COUNT(*) FROM `braks`"),0);
echo "<font color='#777777'> [$count]</font>";
echo"</div>";
echo ' <a href = "/play/"><div class="div"><img src="ico/icons/game.png" alt=""/> Развлечения <font color = "#777777">[3] </font> </div></a>';
echo ' <a href = "/play_gamescool/"><div class="div"><img src="ico/icons/game.png" alt=""/> Онлайн игры <font color = "#777777">[7]</font> </div></a>';
echo ' <a href = "/play/top_users.php"> <div class="div"><img src="ico/icons/top.png"> Топ рейтинги <font color = "#777777">[5]</font> </div></div></a>';
echo ' <a href = "/play/service/"> <div class="div"><img src="ico/icons/sv.png"> Сервисы <font color = "#777777">[5]</font></font> </div></div></a>';
$users = mysql_result(mysql_query("SELECT COUNT(*) FROM `users`"), 0); echo ' <a href = "users.php"><div class="div"><img src="ico/icons/users.png"> Пользователи <font color = "#777777">[<font color = "#FF3399">'.$users.'</font>] </font></font> ' . $cusers_new . '</div></a> ';
echo ' <a href = "/about/"> <div class="div"><img src="ico/icons/about.png"> Информация <font color = "#777777">[15] </div></a></a>';
echo"</a>";
echo '<a href = "users.php?act=go&online=1"><div class="div"><img src="http://vkollektive.net/ico/icons/users.png"> <font color="#777777"> Онлайн:</font><span class="count">[ '.$cusers_online.' чел.]</span></a> ';
#[+'.$col_g.' гостей]
echo "</div>";
echo "</div>";
##########ADMIN PANEL SITE
if($u['admin'] == 1 || $u['admin'] == 2){
echo '<div class="div">';
echo '<img src="ico/admin_men.gif" alt="!"/> <a href="/adminka.php">Админка</a> ['.$admin_jurnal.'] '.$admin_jurnal_new.'';
echo '</div>';
}
#########
require ('../tfoot.php');
?>