File size: 705B
<?
session_start(); //инициализирум механизм сесссий
include 'include/stat.php';
if (!isset($_SESSION['id']))
{
header ("location: logout.php");
exit('incorrect');
}
include 'include/sys.php';
include 'include/game.php';
$res =@mysql_fetch_array(count_query("SELECT count(*)
FROM mail
WHERE to_id = '".$_SESSION['id']."'"));
if ($res['count(*)']=='')
{
$res['count(*)']=0;
}
?>
<?include 'include/head.php';?>
<?include 'include/menu.php';?>
<div class="in">Сообщения</div><a href="msgnew.php" >Написать сообщение</a></br><a href="msgshow.php?box=out" >Исходящие</a></br><a href="msgshow.php?box=in" >Входящие</a> (<?=$res['count(*)'];?>)
<?include 'include/foot.php';?>