Размер файла: 1.29Kb
<?
/*
=============================================
Движок: SHCMS Engine
=============================================
Название файла: Система Уведомлений
=============================================
Official website: http://shcms.ru
=============================================
Данный код защищен авторскими правами
=============================================
*/
define('SHCMS', true);
include_once'../system/inc/basic_settings.php';
$shcmsengine['title'] = Lang::get('Система уведомлений');
include_once'../template/head.php';
$frend = mysql_fetch_array(mysql_query("SELECT * FROM `frend` WHERE `user_id` = '$user_id' and `read` = '0'"));
$frend_count = mysql_result(mysql_query("SELECT COUNT(*) FROM `frend` WHERE `user_id` = '$user_id' and `read` = '0'"),0);
switch($act):
default:
echo '<div class="maintext">';
if($frend['read'] == 1) {
echo '<div class="posts"><a href="frends.php">'.Lang::get('Друзья').'</a></div>';
}else {
echo '<div class="posts"><a href="frends.php?act=new"><b>'.Lang::get('Друзья').' <span class="mainforum"> +'.$frend_count.'</span></b></a></div>';
}
echo '</div>';
break;
endswitch;
include_once'../template/foot.php';
?>