File size: 1.76Kb
<?php
////////////////////////////////////////
///// Kyber ApiCMS 2013 apicms.ru //////
///// Запрещается продажа данной CMS ///
///// Автор Евгений Медянкин Kyber /////
///// ICQ 626-000-895 или 37-22-47 /////
////////////////////////////////////////
if ($user['id']) {
$new_mail = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `user_mail` WHERE `id_recipient` = '$user[id]' AND `views` = '0'"),0);
if ($new_mail==0)$new_mail=NULL;
else $new_mail = ' <small> +'.$new_mail.' </small> ';
echo '<div class="headmenu"><table width="100%" border="0" cellpadding="0" cellspacing="0">';
echo '<td><a href="/profile.php?id='.$user['id'].'" >';
echo apicms_ava40($user['id']);
echo '</a> <a class="headmenulink" href="/modules/user_menu.php"><img src="/design/user_menu/ui_menu.png" alt=""> '.$new_mail.'</a></a> <a class="headmenulink" href="/modules/new_mail.php?id='.$user['id'].'"><img src="/design/user_menu/mail_open.png" alt=""> '.$new_mail.'</a> </td>';
echo '<td align="right"><a href="/log_out.php" class="headbut">Выйти</a></td>';
echo '</tr></table></div>';
}else{
echo '<div class="headmenu"><table width="100%" border="0" cellpadding="0" cellspacing="0">';
echo '<td> <a href="/" ><img src="/logo.png" alt=""></a> </td>';
echo '<td align="right"><a href="/login.php" class="headbut">Войти</a><a href="/reg.php" class="headbut">Создать профиль</a></td>';
echo '</tr></table></div>';
echo '<div class="content"><div class="descr">Процесс регистрации не займет у вас много времени, зато позволит по достойнству оценить возможности нашей CMS.</div></div>';
}
////////////////////////////////////////
?>