Вход Регистрация
Файл: vxas.ru/index.php
Строк: 645
<?
include_once 'sys/inc/start.php';
include_once 
'sys/inc/compress.php';
include_once 
'sys/inc/sess.php';
include_once 
'sys/inc/home.php';
include_once 
'sys/inc/settings.php';
include_once 
'sys/inc/db_connect.php';
include_once 
'sys/inc/ipua.php';
include_once 
'sys/inc/fnc.php';
include_once 
'sys/inc/user.php';
include_once 
'sys/inc/thead.php';

err();


$admin_settings=mysql_fetch_array(mysql_query("SELECT * FROM `admin_settings`"));
if (
$admin_settings["udacha"]==1){
$money=mysql_result(mysql_query("SELECT COUNT(*) FROM `udacha_yes` WHERE `user`='".mysql_real_escape_string($user[id])."'"),0);
if(
$money>0){echo '<center><a href="/object/udacha.php">Поймать удачу!</a> <img src="/style/icons/1016.gif" alt="" class="icon"/><br /></center>';
}
}



if (isset(
$user))
{
echo 
"<div class='logo'>";
echo 
"<table style='width: 100%'><tr><td><img src='/style/themes/".htmlspecialchars($set["set_them"])."/logo.png' alt='Delove.ru' /></td><td style='text-align:right'>  <a href='/info.php'><span style='color:'>$user[nick]</span></a> 
| <a href='/exit.php'>Выход</a> 
 </td></tr></table>"
;
echo 
"</div>n";
}
else
{
echo 
"<div class='logo'>";
echo 
"<table style='width: 100%'><tr><td><img src='/style/themes/".htmlspecialchars($set["set_them"])."/logo.png' alt='Delove.ru /></td><td style='text-align:right'> <a href='/aut.php'>Вход</a> | <a href='/reg.php'>Регистрация</a>
 </td></tr></table>"
;
echo 
"</div>n";
}







if (isset(
$user))
{


$k_new=mysql_result(mysql_query("SELECT COUNT(`mail`.`id`) FROM `mail`
 LEFT JOIN `users_konts` ON `mail`.`id_user` = `users_konts`.`id_kont` AND `users_konts`.`id_user` = '"
.mysql_real_escape_string($user[id])."'
 WHERE `mail`.`id_kont` = '"
.mysql_real_escape_string($user[id])."' AND (`users_konts`.`type` IS NULL OR `users_konts`.`type` = 'common' OR `users_konts`.`type` = 'favorite') AND `mail`.`read` = '0'"),0);
$k_new_fav=mysql_result(mysql_query("SELECT COUNT(`mail`.`id`) FROM `mail`
 LEFT JOIN `users_konts` ON `mail`.`id_user` = `users_konts`.`id_kont` AND `users_konts`.`id_user` = '"
.mysql_real_escape_string($user[id])."'
 WHERE `mail`.`id_kont` = '"
.mysql_real_escape_string($user[id])."' AND (`users_konts`.`type` = 'favorite') AND `mail`.`read` = '0'"),0);

$jn=mysql_result(mysql_query("SELECT COUNT(*) FROM `jurnal` WHERE `id_kont` = '".mysql_real_escape_string($user[id])."' AND `read` = '0'"), 0);

$lenta mysql_result(mysql_query("SELECT COUNT(*) FROM `lenta` WHERE `id_kont` = '".mysql_real_escape_string($user[id])."' AND `read` = '0' "),0);

$zoz mysql_result(mysql_query("SELECT COUNT(*) FROM `frends_new` WHERE `to` = '".mysql_real_escape_string($user[id])."'"), 0);



if (
$user['up_panel'] == 0)
{
echo 
'<div id="panel_n" class=" "><div class="panelD"><table style="width:100%" cellspacing="0" cellpadding="0"><tbody><tr>';


echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/umenu.php' title='Старт'/><img src='/images/mobdrug.png' alt='Старт'/></a>";
echo 
"</td>";


if (
$user['pol'] == 1) {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/info.php' title='Я'/><img src='/images/man.png' alt='Я' /></a>";
} else {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/info.php' title='Я'/><img src='/images/woman.png' alt='Я' /></a>";
}
echo 
"</td>";


if (
$k_new!=&& $k_new_fav==0) {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/new_mess.php'  title='Почта'/><img src='/images/mess.png'> <span class='event'>$k_new</span></a>n";
} else {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/konts.php'  title='Почта'/><img src='/images/mess.png'></a>n";
}
echo 
"</td>";


if (
$jn>0) {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/jurnal.php'  title='Журнал'/><img src='/images/journal.png'> <span class='event'>$jn</span></a>n";
} else {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/jurnal.php'  title='Журнал'/><img src='/images/journal.png'></a>n";
}
echo 
"</td>";


if (
$lenta>0) {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/lenta.php'  title='Лента'/><img src='/images/lenta.png'> <span class='event'>$lenta</span></a>n";
} else {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/lenta.php'  title='Лента'/><img src='/images/lenta.png'></a>n";
}
echo 
"</td>";


if (
mysql_result(mysql_query("SELECT COUNT(*) FROM `frends_new` WHERE `to` = '".mysql_real_escape_string($user[id])."' LIMIT 1"), 0) > 0)
{
echo 
"<td style='vertical-align:top;width:10% ;'><a style='border-left:none !important;' class='panel_link user_color_link' href='/frend_new.php' title='Дружба'/><img src='style/images/friendship.gif'> <span class='event'>$zoz</span></a>n";
}
echo 
"</td>";

echo 
"</tr></tbody></table>";



}
elseif (
$user['up_panel'] == 1)
{
echo 
"<div id='panel_n' class=' '><div class='panelD'><table style='width:100%' cellspacing='0' cellpadding='0'><tbody><tr>";

echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/umenu.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Старт </font></a>";
echo 
"</td>";

echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/info.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Я </font></a>";
echo 
"</td>";


if (
$k_new!=&& $k_new_fav==0) {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/new_mess.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Почта </font><span class='event'>$k_new</span></a>n";
} else {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/konts.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Почта </font></a>n";
}
echo 
"</td>";


if (
$jn>0) {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/jurnal.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Журнал </font><span class='event'>$jn</span></a>n";
} else {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/jurnal.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Журнал </font></a>n";
}
echo 
"</td>";


if (
$lenta>0) {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/lenta.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Лента </font><span class='event'>$lenta</span></a>n";
} else {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/lenta.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Лента </font></a>n";
}
echo 
"</td>";

echo 
"</tr></tbody></table>";

}
else
{

echo 
"<div id='panel_n' class=' '><div class='panelD'><table style='width:100%' cellspacing='0' cellpadding='0'><tbody><tr>";

echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/umenu.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>С </font></a>";
echo 
"</td>";

echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/info.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Я </font></a>";
echo 
"</td>";

if (
$k_new!=&& $k_new_fav==0) {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/new_mess.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>П </font><span class='event'>$k_new</span></a>n";
} else {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/konts.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>П </font></a>n";
}
echo 
"</td>";


if (
$jn>0) {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/jurnal.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Ж </font><span class='event'>$jn</span></a>n";
} else {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/jurnal.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Ж </font></a>n";
}
echo 
"</td>";


if (
$lenta>0) {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/lenta.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Л </font><span class='event'>$lenta</span></a>n";
} else {
echo 
"<td style='vertical-align:top;width:20% ;'><a style class='panel_link user_color_link' href='/lenta.php' style='text-align:center;display:block;padding:1px;font-size:small;'><font color='white'>Л </font></a>n";
}
echo 
"</td>";

echo 
"</tr></tbody></table>";

}


echo 
"</div>";

}

echo 
"</div>";





if (
$k_new_fav!=0)
echo 
"<b><a href='/new_mess.php'><img src='/style/icons/mess_fav.png' alt='$k_new_fav' /> Сообщени".htmlspecialchars($k_new_fav==1?'е':'я')."</a></b><br />n";



$knj=mysql_result(mysql_query("SELECT COUNT(*) FROM `present_jurnal` WHERE `id_user` = '".mysql_real_escape_string($user[id])."' AND `read` = '0'"), 0);
if (
$knj>0)
echo 
"<img src='/style/images/present--plus.png'> <a href='/present/jurnal.php' title='Вам подарков'>+ $knj </a> n";

$new_g=mysql_result(mysql_query("SELECT COUNT(*) FROM `myguests` WHERE `id_ank` = '$user[id]' AND `read`='1'"),0);
if(
$new_g!=0)echo "<img src='/img/eye.png' alt='' /> <a href='/myguests.php'>+ $new_g </a> n";

$k_n_s_zak=mysql_result(mysql_query("SELECT COUNT(`forum_zakl`.`id_them`) FROM `forum_zakl` LEFT JOIN `forum_p` ON `forum_zakl`.`id_them` = `forum_p`.`id_them` AND `forum_p`.`time` > `forum_zakl`.`time` WHERE `forum_zakl`.`id_user` = '".mysql_real_escape_string($user[id])."' AND `forum_p`.`id` IS NOT NULL"),0);
if (
$k_n_s_zak>0)
echo 
"<a href='/zakl.php' title='Новые сообщения в закладках'>Сообщения в закладках ($k_n_s_zak)</a><br />n";

echo 
"</div>";

if (
$user['time']==1)echo '<div class="date">';
if (
$user['time']==1)echo date("H:i");
if (
$user['time']==1)echo '</div>';


################################################################################



echo "<div class='title'><center><a href='/online.php' ><font color='white'>Онлайн: ".mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` >".mysql_real_escape_string(time()-8000).""),0)."</font></a> ";
echo 
"<a href='/online_g.php'><font color='white'>(+ ".mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > ".mysql_real_escape_string(time()-1500)." AND `pereh` > '0'"), 0)." гостей)</font></a>";
echo 
"</center></div>";


################################################################################
if (isset($user))
{
include_once 
'sys/inc/bonus.php';
}
else
{
echo 
'<div class="blueline">';
echo 
'<center>Только сегодня при регистрации Вы получаете 500 монет! Не упусти свой шанс!</center>';
echo 
"</div>n";
}

################################################################################


echo "<div class='gmenu'><img src='/xhata/glav/info.png' alt='' /> <a href='/info/index.php'>Первый раз на Delove.ru ?</a><br/>n";
echo 
"</div>n";


echo 
"<div class='gmenu'><img src='/xhata/glav/news.png' alt='' /> <a href='/news/'>Новости</a> <span class='cnt'>(";
@include 
H.'news/count.php';
echo 
")</span><br/> </div>n";


echo 
"<div class='gmenu'>";
echo 
"<img src='/nagrady/gold.png' alt=''/> <a href='/nagrady'>Доска почета</a> (".mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `nagrad` = '1'"),0).")n";
echo 
"</span><br/></div>n";


################################################################################

include 'services/photo_lineup/photo_lineup.statusinc.php';

################################################################################


echo "<div class='gmenu'><img src='/xhata/glav/obmen.png' alt='' /> <a href='/obmen/'>Зона обмена</a> <span class='cnt'>(";
@include 
H.'obmen/count.php';
echo 
")</span><br/></div>n";


echo 
"<div class='gmenu'><img src='/xhata/glav/love.png' alt='' /> <a href='/moduls.zags/'>Загс</a> | <a href='/love/'>Знакомства</a> <span class='cnt'>(";
@include 
H.'love/count.php';
echo 
")</span><br/> </div>n";


echo 
"<div class='gmenu'><img src='/xhata/glav/users.png' alt='' /> <a href='/users/'>Обитатели</a> <span class='cnt'>(";
@include 
H.'users_count.php';
echo 
")</span><br/> </div>n";


echo 
"<div class='gmenu'><img src='/xhata/glav/chat.png' alt='' /> <a href='/chat/'>Чат</a> <span class='cnt'>(";
@include 
H.'chat/count.php';
echo 
")</span><br/> </div>n";


echo 
"<div class='gmenu'><img src='/xhata/glav/forum.png' alt='' /> <a href='/forum/'>Форум</a> <span class='cnt'>(";
@include 
H.'forum/count.php';
echo 
")</span><br/> </div>n";


echo 
"<div class='gmenu'><img src='/xhata/glav/blog.png' alt='' /> <a href='/diary/'>Дневники</a> <span class='cnt'>(";
@include 
H.'diary/count.php';
echo 
")</span><br/> </div>n";


echo 
"<div class='gmenu'><img src='/xhata/glav/guest.png' alt='' /> <a href='/guest/'>Стена сообщений</a> <span class='cnt'>(";
@include 
H.'guest/count.php';
echo 
")</span><br/> </div>n";


echo 
"<div class='gmenu'><img src='/xhata/glav/duel.png' alt='' /> <a href='/duel/'>Дуэли</a> <span class='cnt'>(";
@include 
H.'duel/count.php';
echo 
")</span><br/> </div>n";


echo 
"<div class='gmenu'><img src='/xhata/glav/fotok.png' alt='' /> <a href='/FotoKonkurs/'>Фото батлы</a> <span class='cnt'>(";
@include 
H.'FotoKonkurs/count.php';
echo 
")</span><br/> </div>n";


echo 
"<div class='gmenu'><img src='/xhata/glav/foto.png' alt='' /> <a href='/foto/'>Альбомы</a> <span class='cnt'>(";
@include 
H.'foto/count.php';
echo 
")</span><br/> </div>n";


echo 
"<div class='gmenu'><img src='/xhata/glav/comm.png' alt='' /> <a href='/soo/'>Сообщества</a> <span class='cnt'>(";
@include 
H.'soo/count.php';
echo 
")</span><br/> </div>n";


echo 
"<div class='gmenu'>n";
echo 
"<img src='/style/icons/klan.gif' alt='' class='icon'/> <a href='/klan/'>Кланы</a> <span class='cnt'>";
@include 
H.'klan/count.php';
echo 
"</span></div>n";


echo 
"<div class='gmenu'><img src='/xhata/glav/game.png' alt='' /> <a href='/razvl.php'>Развлечения</a> </div>";


include 
'forum/incnew.php';


echo 
"<div class='reklama2 '>";
echo 
" <a href='http://forum.vxas.ru'>Поддержи хату</a><br />n";
echo 
" <a href='http://vxas.ru'>Создай свой сайт</a>n";
echo 
"</div>n";


echo 
"<div class='tdiv'>";
echo 
"<center><a href='/info/xhata.php'><font color='white'>О нас</font></a> · <a href='/pages/reklama.php'><font color='white'>Реклама</font></a> · <a href='/rules.php'><font color='white'>Правила</font></a> · <a href='/admins.php'><font color='white'>Тех.поддержка</font></a> </center>n";
echo 
"</div>n";


echo 
"<div class='stnd_padd'>n";
echo 
'<script type="text/javascript" src="//yandex.st/share/share.js"
charset="utf-8"></script>'
;
echo 
'<div class="yashare-auto-init" data-yashareL10n="ru"
 data-yashareType="none" data-yashareQuickServices="vkontakte,facebook,twitter,odnoklassniki,moimir,lj,gplus"

></center></div>'
;
echo 
"</div>n";





################################################################################

echo "</div></body></html>";
################################################################################
?>
Онлайн: 1
Реклама