Файл: my/index.php
Строк: 113
<?
define('ROOT','../');
require_once (ROOT.'system/power.php');
$fuser->aut();
$dc1 = $db -> dbcount('COUNT(*)','users',"`month`= '".date('m')."' and `day`= '".date('d')."'");
switch($do) {
default:
$diz -> head('Мой кабинет');
$diz -> title('Мой кабинет');
$ch = gmdate("H",ustime($ya['gmt']));
if($ch >= 06) $hello = language('Доброе утро');
if($ch >= 11) $hello = language('Добрый день');
if($ch >= 16) $hello = language('Добрый вечер');
if($ch >= 22 or $ch < 06) $hello = language('Доброй ночи');
echo '<div class="pnc2"><div class="kab"><a href="date.php" class="t">
'.$func -> times(gmdate('d m Y',ustime($ya['gmt']))).'</br>
'.$func -> times(gmdate('H:i:s',ustime($ya['gmt']))).', '.$hello.'</a></div></div>';
if ($admin->panel($ya['id'])==true)echo '<div class="pnc2"><div class="kab"><a href="/sysadm/" class="t">'.$diz -> img('my/key.png').' '.language('Управление').'</a></div></div>';
echo '<div class="new">'.language('Статистика').':</div>';
echo '<div class="pnc2"><div class="kab">
<table style="width:100%" cellspacing="0" cellpadding="0">
<tr><td><a href="'.ROOT.'id'.$ya['id'].'" class="t">'.$fuser->avatar($ya['id'],32,32,1).'<br/>'.language('Моя анкета').'</a></td>
<td style="border-left: 1px solid #DFDFDF;"><div style="text-decoration: none;color: #4B4B4B;padding: 10px;" class="t">'.$diz -> img('my/balls.png').'<br/>
'.$func->GetName($ya['balls'],'балл','балла','баллов').'</div>
</td></tr></table></div></div>';
$sms = $db -> dbcount('COUNT(*)','mail','`fid` = '.$ya['id']);
$smsnew = $db -> dbcount('COUNT(`id`)','mail',"`fid` = '".$ya['id']."' AND `read` = 'no'");
echo '<div class="new">'.language('Личное').':</div>';
$count = $db -> dbcount('COUNT(`id`)','nuts',"`where`='frends' and `idwh`='".$ya['id']."' and `time`<>'0'");
$jav = $db -> dbcount('COUNT(`id`)','nuts',"`where`='frends' and `idwh`='".$ya['id']."' and `time`='0'");
if($jav>0){$frnew='<span class="chet">+'.$jav.'</span>';}
$ign = $db -> dbcount('COUNT(`id`)','nuts',"`where`='ignor' and `user`='".$ya['id']."'");
$sob = $db -> dbcount('COUNT(`id`)','lenta',"`status`='1' and `where`='".$ya['id']."'");
echo '<div class="pnc2"><div class="kab">
<table style="width:100%" cellspacing="0" cellpadding="0">
<tr><td><a href="mail.php" class="t">'.$diz -> img('my/mail.png').'<br/>'.language('Сообщения').' <span class="count">'.$smsnew.'/'.$sms.'</span></a></td>
<td style="border-left: 1px solid #DFDFDF;"><a href="lenta.php" class="t">'.$diz -> img('my/lenta.png').'<br/>'.language('События').' <span class="count">'.$sob.'</span></a>
</td></tr></table></div></div>';
echo '<div class="pnc2"><div class="kab">
<table style="width:100%" cellspacing="0" cellpadding="0">
<tr><td><a href="friends.php?id='.$ya['id'].'" class="t">'.$diz -> img('my/friends.png').'<br/>'.language('Мои друзья').' <span class="count">'.$count.''.$frnew.'</span></a></td>
<td style="border-left: 1px solid #DFDFDF;"><a href="ignors.php" class="t">'.$diz -> img('my/ignor.png').'<br/>'.language('Чёрный список').' <span class="count">'.$ign.'</span></a>
</td></tr></table></div></div>';
echo '<div class="pnc2"><div class="kab"><a href="search.php" class="t">'.$diz -> img('my/search.png').' '.language('Поиск').'</a></div></div>';
echo '<div class="new">'.language('Настройки').':</div>';
echo '<div class="pnc2"><div class="kab">
<table style="width:100%" cellspacing="0" cellpadding="0">
<tr><td><a href="profile.php" class="t">'.$diz -> img('my/profile.png').'<br/>'.language('Изменить профиль').'</a></td>
<td style="border-left: 1px solid #DFDFDF;"><a href="settings.php" class="t">'.$diz -> img('my/key.png').'<br/>'.language('Настройки').'</a>
</td></tr></table></div></div>';
echo '<div class="pnc2"><div class="kab"><a href="'.ROOT.'aut.php?do=off" class="t">'.$diz -> img('my/logout.png').' '.language('Выход').'</a></div></div>';
}
echo '<div class="levo"><a href="'.ROOT.'" class="levo_tuch">'.$diz -> icon('home.png').' '.language('На главную').'</a></div>';
#####Копирайт#######
$diz -> out($msg);
?>