Размер файла: 1.06Kb
<?php
/*
=============================================
Движок: SHCMS Engine
=============================================
Название файла: Почта
=============================================
Official website: http://shcms.ru
=============================================
*/
define('SHCMS', true);
include_once'../system/inc/basic_settings.php';
$shcmsengine['title'] = 'Почта для '.$login.'';
include_once'../template/head.php';
registrat();
$inbox_m = mysql_result(mysql_query("SELECT COUNT(*) FROM `mail` WHERE `user` = '$login' AND `type` = 'in'"), 0);
echo '<div class="posts"><a href="/shcms/mails.php?act=inbox">Входящие</a> ('.$inbox_m.')</div>';
$out_m= mysql_result(mysql_query("SELECT COUNT(*) FROM `mail` WHERE `author` = '$login' AND `type` = 'out'"), 0);
echo '<div class="posts"><a href="/shcms/mails.php?act=out">Отправленные</a> ('.$out_m.')</div>';
echo '<hr/><div class="posts"><a href="'.DIR_SHCMS.'private_menu.php">Назад</a></div>';
include_once'../template/foot.php';
?>