{% else-1 %}
TuMan * [мошенник] 0.57
(5 май 2013, 18:00) (0/0) [0]
вот
TuMan * [мошенник] 0.57
(5 май 2013, 17:55) (0/0) [0]
TheJOVE,я же написал
TuMan * [мошенник] 0.57
(5 май 2013, 17:52) (0/0) [0]
**-=narkosha=-*, Notice: Use of undefined constant cmpl - assumed \'cmpl\' in /home/vakul132/public_html/sys/fnc/aut.php on line 248

Notice: Undefined variable: diary in /home/vakul132/public_html/sys/fnc/aut.php on line 248
| Дневники
Notice: Undefined variable: forum_cmpl in /home/vakul132/public_html/sys/fnc/aut.php on line 255
| Форум
TuMan * [мошенник] 0.57
(5 май 2013, 17:49) (0/0) [0]
<?



function aut()
{




echo \"<div id=\'logo_panel\' style=\'line-height:normal;\'><span class=\'left\'><a href=\'/?\'><img src=\'http://i.spaces.ru/logo_big.png\' class=\'middle\' style=\'margin-top:-2px;\'></a></span>\";



echo \"</span>


</div>\\n\";


global $set;
global $user;
if(mysql_result(mysql_query(\"SELECT COUNT(*) FROM `mail` WHERE `type` = \'to\' AND `read` = \'0\' AND `id_user` = \'$user[id]\'\"*,0)!=0)
{
$q=mysql_query(\"SELECT * FROM `mail` WHERE `type` = \'to\' AND `read` = \'0\' AND `id_user` = \'$user[id]\'\"*;
while($post=mysql_fetch_array($q))
{
$ank=get_user($post[\'id_kont\']);
if ($ank && mysql_result(mysql_query(\"SELECT COUNT(*) FROM `users_konts` WHERE `id_user` = \'$user[id]\' AND `id_kont` = \'$ank[id]\'\"*,0)==0)mysql_query(\"INSERT INTO `users_konts` (`id_user`, `id_kont`, `time`) VALUES (\'$user[id]\', \'$ank[id]\', \'$time\')\"*;
}
}


if(isset($_GET[\'inter\']))
{
if($set[\'show_err_php\']==1)$set[\'show_err_php\']=0;else $set[\'show_err_php\']=1;
save_settings($set);
header(\"Location: $_GET[back]\"*;
}

$q=mysql_query(\"SELECT * FROM `users_konts` WHERE `id_user` = \'$user[id]\' AND `type` != \'ignor\' AND `type` != \'deleted\'\"*;
$k_new_mess=0;
while ($post = mysql_fetch_array($q))
{
$knm=mysql_result(mysql_query(\"SELECT COUNT(*) FROM `mail` WHERE `type` = \'to\' AND `read` = \'0\' AND `id_kont` = \'$post[id_kont]\' AND `id_user` = \'$user[id]\'\"*,0);
if($knm!=0)$k_new_mess++;
}



if (isset($user))
{
if($_SERVER[\'PHP_SELF\']!=\'/index.php\')
{






echo \"<style type=\'text/css\'>

#navi{color:#$user[panel_color_line];font-size:small;padding:4px 0px 5px 0px;background-color:#$user[panel_color_fon];}
#navi a:link,#navi a:visited{color:#$user[panel_color_link];text-decoration:none;font-size:small}
#navi a:focus,#navi a:hover,#navi a:active{color:#$user[panel_color_focus_link];background-color:#$user[panel_color_focus_fon];}


#navi{margin-top: 1px;width: 100%;position: relative;}

#navi ul { margin: 0; padding: 0; list-style-type: none; }
#navi ul li {
background: #477dac url(images/main.png) repeat-x left ;
width: 19%;
height: 40px;
float: right;
text-align: center;
margin-right: 3px;
margin-top: 2px;
}
#navi ul li a {
color: #fff;
text-decoration: none;
text-align: center;
display: block;
padding: 12px;
position: relative;
border-right: 1px solid #477dac;
}
#navi ul li a:hover{
background: #579ad2 url(images/main_h.png) repeat-x;
color: #fff;
}



#on ul li a { color: #5b97c1; text-decoration: none; text-align: center; display: block;padding: 4px; position: relative;border-right: 1px solid #e3e4e5;}
#on ul li:hover{
background: #e6e7e8 url(images/onlineh.png) repeat-x left;
}
#nav1{margin-bottom:3px ;;width: 100%;position: relative;}

#nav1 ul { margin: 0; padding: 0; list-style-type: none; }
#nav1 ul li {
background: #e3e4e5 url(images/online.png) repeat-x left ;
width: 33%;
height: 40px;
margin-bottom:3px ;
margin-top:3px ;
float: left;
text-align: center;
margin-right: 3px;
}
#nav1 ul li a { color: #5b97c1; text-decoration: none; text-align: center; display: block;padding: 12px; position: relative;border-right: 1px solid #e3e4e5;}
#nav1 ul li:hover{
background: #e6e7e8 url(images/onlineh.png) repeat-x left;
}
#menu ul{
list-style-type:none;
margin: 3px;
padding:0;
}
#menu ul li{
border: 1px solid #c6e8ff;
border-radius: 4px;
margin-bottom: 2px;
background: #FEFFCC;
color: #579ad2;
padding-right: 5px;

}

#menu ul li a{
display:block;
padding:5px;
color: #579ad2;
background: url(images/linka.png) no-repeat right center;
}
#menu ul li a:hover{
background-image:url(images/linkh.png);
color: #8cbde5;
text-decoration: none;
}


#navi a {

color: white;

}

#navi a:hover {

color: gainsboro;

}


#nave{color:#9999ff;font-size:small;padding:4px 2px;background-color:#677fb3;border:1px solid #abbefb;border-left:1px solid #999999;border-right:1px solid #999999}#navi a:link,#navi a:visited{color:#ffffff;text-decoration:none;font-size:small}#nave a:focus,#nave a:hover,#nave a:active{color:#3b5998;background-color:#fff}.newevent{color:#ffff00;font-size:small;vertical-align:bottom}#nave_footer{color:#9999ff;font-size:small;padding:4px 2px 5px 4px;background-color:#677fb3;border:1px solid #abbefb;border-left:1px solid #999999;border-right:1px solid #999999}#nave_footer a:link,#nave_footer a:visited{color:#ffffff;text-decoration:none;font-size:small}#nave_footer a:focus,#nave_footer a:hover,#nave_footer a:active{color:#3b5998;background-color:#fff}a.user_color_link{color:#ffffff;}
a.service_link{color:#066}
#logo_panel{line-height:150%}
#logo_panel{overflow:hidden}
#logo_panel{padding:7px 10px;border-top:1px solid #999;background:#f5f5f5;}



</style>\";




$jn=mysql_result(mysql_query(\"SELECT COUNT(*) FROM `jurnal` WHERE `id_kont` = \'$user[id]\' AND `read` = \'0\' AND (`cat` = \'files\' OR `cat` = \'gallery\' OR `cat` = \'guestbook\' OR `cat` = \'forum\' OR `cat` = \'diary\')\"*, 0);
$lenta = mysql_result(mysql_query(\"SELECT COUNT(*) FROM `lenta` WHERE `id_kont` = \'$user[id]\' AND `read` = \'0\' \"*,0);
if($user[\'pol\']==0)$pol=\'http://i.spaces.ru/qlt_homen_b.png\';
if($user[\'pol\']==1)$pol=\'http://i.spaces.ru/qlt_homen_b.png\';
echo \"<div id=\'navi\'>\";
echo \"<table style=\'width:100%\' cellspacing=\'0\' cellpadding=\'0\'><tr>\";













echo \"<td style=\'vertical-align:top;width:19%;border-right:solid; border-width:1px\'><a class=\'top_menu_link user_color_link\' href=\'/umenu.php\'>\".($user[\'panel\']==0?\"<img src=\'http://wapvi.ru/style/themes/web/img/start.png\' title=\'$user[nick]\' />\":null).\"\".($user[\'panel\']==1?\"С\":null).\"\".($user[\'panel\']==2?\"Старт\":null).\"</a></td>\";

echo \"<td style=\'vertical-align:top;width:20%;border-right:solid;border-width:1px\'><a style=\'text-align:center;display:block;padding:3px\' href=\'/info.php\'>\".($user[\'panel\']==0?\"<img src=\'$pol\' alt=\'Я\' title=\'Я\' />\":null).\"\".($user[\'panel\']==1?\"Я\":null).\"\".($user[\'panel\']==2?\"Я\":null).\"</a></td>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right:solid;border-width:1px\'>\".($k_new_mess!=0?\"<a style=\'text-align:center;display:block;padding:3px\' href=\'/mail\'>\".($user[\'panel\']==0?\"<img src=\'http://i.spaces.ru/qlt_mailn_b.png\' alt=\'Почта\' title=\'Почта\' />\":null).\"\".($user[\'panel\']==1?\"П\":null).\"\".($user[\'panel\']==2?\"Почта\":null).\" <span style=\'color:#$user[panel_color_new]\'><b>$k_new_mess</b></span></a>\":\"<a style=\'text-align:center;display:block;padding:3px\' href=\'/mail\'>\".($user[\'panel\']==0?\"<img src=\'http://i.spaces.ru/qlt_mailn_b.png\' alt=\'Почта\' title=\'Почта\' />\":null).\"\".($user[\'panel\']==1?\"П\":null).\"\".($user[\'panel\']==2?\"Почта\":null).\"</a>\"*.\"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right:solid;border-width:1px\'><a style=\'text-align:center;display:block;padding:3px\' href=\'/jurnal\'>\".($user[\'panel\']==0?\"<img src=\'http://i.spaces.ru/qlt_journaln_b.png\' alt=\'Журнал\' title=\'Журнал\' />\":null).\"\".($user[\'panel\']==1?\"Ж\":null).\"\".($user[\'panel\']==2?\"Журнал\":null).\"\".($jn>0?\" <span style=\'color:#$user[panel_color_new]\'><b>$jn</b></span>\":null).\"</a></td>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right:solid;border-width:0px\'><a style=\'text-align:center;display:block;padding:3px\' href=\'/lenta\'>\".($user[\'panel\']==0?\"<img src=\'http://i.spaces.ru/qlt_lenta2n_b.png\' alt=\'Лента\' title=\'Лента\' />\":null).\"\".($user[\'panel\']==1?\"Л\":null).\"\".($user[\'panel\']==2?\"Лента\":null).\"\".($lenta>0?\" <span style=\'color:#$user[panel_color_new]\'><b>$lenta</b></font>\":null).\"</a></span></td>\";

echo \"</tr></tbody></table>\";
if(isset($user))
{
$kjd=0;
$qq=mysql_query(\"SELECT * FROM `diary` WHERE `id_user` = \'$user[id]\'\"*;
while($pp=mysql_fetch_array($qq))
{
if(mysql_result(mysql_query(\"SELECT COUNT(*) FROM `diary_komm` WHERE `id_diary` = \'$pp[id]\' AND `id_user` != \'$user[id]\' AND `time` > \'$pp[a_time]\'\"*,0)!=0)$kjd++;
}

$kjf=0;
$qq=mysql_query(\"SELECT * FROM `files` WHERE `id_user` = \'$user[id]\' AND `cat` = \'files\' AND `type2` = \'file\'\"*;
while($pp=mysql_fetch_array($qq))
{
if(mysql_result(mysql_query(\"SELECT COUNT(*) FROM `files_komm` WHERE `id_file` = \'$pp[id]\' AND `id_user` != \'$user[id]\' AND `time` > \'$pp[a_time]\'\"*,0)!=0)$kjf++;
}

$kjfo=0;
$qq=mysql_query(\"SELECT * FROM `gallery_foto` WHERE `id_user` = \'$user[id]\'\"*;
while($pp=mysql_fetch_array($qq))
{
if(mysql_result(mysql_query(\"SELECT COUNT(*) FROM `gallery_komm` WHERE `id_foto` = \'$pp[id]\' AND `id_user` != \'$user[id]\' AND `time` > \'$pp[a_time]\'\"*,0)!=0)$kjfo++;
}

$kjg=mysql_result(mysql_query(\"SELECT COUNT(*) FROM `guestbook` WHERE `id_user_adm` = \'$user[id]\' AND `id_user` != \'$user[id]\' AND `time` > \'$user[guest_time]\'\"*,0);

if($kjd>0 || $kjf>0 || $kjfo>0 || $kjg>0)echo \"<div style=\'padding-top:2px;padding-left:2px;padding-bottom:0px;border-top:solid;border-width:1px;\'>\";
if($kjg>0)echo \"<a href=\'/guestbook/?id=$user[id]&new=1\'>Гостевая ($kjg)</a>\";
if($kjd>0)echo \"\".($kjg>0?\" |\":null).\" <a href=\'/jurnal/?sort=diary&new=1\'>Дневник ($kjd)</a>\";
if($kjfo>0)echo \"\".($kjg>0 || $kjd>0?\" |\":null).\" <a href=\'/jurnal/?sort=foto&new=1\'>Фото ($kjfo)</a>\";
if($kjf>0)echo \"\".($kjg>0 || $kjd>0 || $kjf>0?\" |\":null).\" <a href=\'/jurnal/?sort=files&new=1\'>Файлы ($kjf)</a>\";
if($kjd>0 || $kjf>0 || $kjfo>0 || $kjg>0)echo \"</div>\";
}
if($user[\'level\']>=4)
{
$count_unresh=mysql_result(mysql_query(\"SELECT COUNT(*) FROM `mail_cmpl` WHERE `ok` = \'0\'\"*,0);
if($user[\'id\']<=3){
echo \"Жалобы: \";
if ($count_unresh!=0){
echo \"<a href=\'/cmpl_mail\'>Почта ($count_unresh)</a>\";
}
else
{
echo \"<a href=\'/cmpl_mail\'>Почта</a>\";
}
$forumm_k=mysql_result(mysql_query(\"SELECT COUNT(*) FROM `forum_komm_cmpl` WHERE `ok` = \'0\'\"*,0);
$forumm_t=mysql_result(mysql_query(\"SELECT COUNT(*) FROM `forum_them_cmpl` WHERE `ok` = \'0\'\"*,0);
$forumm_cmpl=($forumm_k+$forumm_t);
$diary_k=mysql_result(mysql_query(\"SELECT COUNT(*) FROM `diary_cmpl` WHERE `ok` = \'0\' AND `subject` = \'komm\'\"*,0);
$diary_d=mysql_result(mysql_query(\"SELECT COUNT(*) FROM `diary_cmpl` WHERE `ok` = \'0\' AND `subject` = \'diary\'\"*,0);
$diary_cmpl=($diary_k + $diary_d);
if ($diary+cmpl!=0){
echo \" | <a href=\'/diary/?cmpl\'>Дневники ($diary_cmpl)</a>\";
}
else
{
echo \" | <a href=\'/diary/?cmpl\'>Дневники</a>\";
}
if ($forum_cmpl!=0){
echo \" | <a href=\'/forumm/?cmpl&diary\'>Форум ($forumm_cmpl)</a>\";
}
else
{
echo \" | <a href=\'/forumm/?cmpl&diary\'>Форум</a>\";
}
}
else
{
echo \"<b><font color=\'red\'>Жалобы:</font> </b>\";
if ($count_unresh!=0){
echo \"<a href=\'/cmpl_mail\'>Почта ($count_unresh)</a>\";
}
else
{
echo \"<a href=\'/cmpl_mail\'>Почта</a>\";
}
$forumm_k=mysql_result(mysql_query(\"SELECT COUNT(*) FROM `forum_komm_cmpl` WHERE `ok` = \'0\'\"*,0);
$forumm_t=mysql_result(mysql_query(\"SELECT COUNT(*) FROM `forum_them_cmpl` WHERE `ok` = \'0\'\"*,0);
$forumm_cmpl=($forumm_k+$forumm_t);
$diary_k=mysql_result(mysql_query(\"SELECT COUNT(*) FROM `diary_cmpl` WHERE `ok` = \'0\' AND `subject` = \'komm\'\"*,0);
$diary_d=mysql_result(mysql_query(\"SELECT COUNT(*) FROM `diary_cmpl` WHERE `ok` = \'0\' AND `subject` = \'diary\'\"*,0);
$diary_cmpl=($diary_k + $diary_d);
if ($diary+cmpl!=0){
echo \" | <a href=\'/diary/?cmpl\'>Дневники ($diary_cmpl)</a>\";
}
else
{
echo \" | <a href=\'/diary/?cmpl\'>Дневники</a>\";
}
if ($forum_cmpl!=0){
echo \" | <a href=\'/forumm/?cmpl&diary\'>Форум ($forumm_cmpl)</a>\";
}
else
{
echo \" | <a href=\'/forumm/?cmpl&diary\'>Форум</a>\";
}
}
}
echo \"</div>\";
if (isset($user) && $user[\'set_times\']==1)
{
echo \"<div class=\'time\'>\\n\";
echo \"<span style=\'color:#$user[panel_color_time]\'>\".vremja(time()).\" </span>\";
echo \"</div>\";
}
/*
if($user[\'ank_d_r\'].$user[\'ank_m_r\']==date(\"j\"*.date(\"n\"*)
{
if(isset($user))
{
if(mysql_result(mysql_query(\"SELECT COUNT(*) FROM `user_birthday` WHERE `id_user` = \'$user[id]\'\"*,0)!=0)$lp=mysql_fetch_array(mysql_query(\"SELECT * FROM `user_birthday` WHERE `id_user` = \'$user[id]\' ORDER BY `time` DESC LIMIT 1\"*);
if(!isset($lp) || $lp[\'time\']<($time-(3600*24)))
{
mysql_query(\"INSERT INTO `mail` SET `id_user` = \'0\', `id_kont` = \'$user[id]\', `msg` = \'\".my_esc($set[\'bdy_msg\']).\"\', `time` = \'$time\'\"*;
mysql_query(\"INSERT INTO `user_birthday` SET `id_user` = \'$user[id]\', `time` = \'$time\'\"*;
}
}
if($user[\'pol\']==1)$a=\'ый\';else $a=\'ая\';
echo \"<div class=\'p_m\'>\\n\";
echo \"Уважаем$a $user[nick]!От всей души админ-состав сайта $_SERVER[HTTP_HOST] поздравляет вас с этим замечательным днём, который бывает только один раз в году - С ДНЁМ РОЖДЕНИЯ!
Желаем чтобы Вы всегда были счастливым, здоровым и любимым человеком. Чтобы вас всегда окружали те люди, которые вас уважают и приносят хорошее настроение *\";
echo \"</div>\";
}
*/
}
else
{

}

































}
else
{
echo \"<div style=\'background-image:url(/style/themes/default/images/bg_best_foto.png)\'>\";
//echo \"<marquee>Для того, чтобы пользоваться всеми возможностями сайта необходимо пройти <a href=\'/aut.php\'>Авторизацию</a>. Если Вы еще не зарегистрированы, то Вам необходимо пройти процесс <a href=\'/reg.php\'>Регистрации</a>.</marquee></div>\\n\";


}
}
?>