View file user/message.php

File size: 841B
<?php
Defined('INDEX_S_S') or die ('Доступ запрещен!!!');
if ($_SESSION['user_login'] != '' and is_file($cms.'user/'.$_SESSION['user_login'].'/profile.php'))
{
if ($_GET['mess_id'] == '') $_GET['mess_id'] = 'in';


echo '

<a href="/?page='.$_GET['page'].'&mess_id=send">&nbsp;Отправить сообщение&nbsp;</a>

<a href="/?page='.$_GET['page'].'&mess_id=in">&nbsp;Входящие&nbsp;</a>

<a href="/?page='.$_GET['page'].'&mess_id=to">&nbsp;Исходящие&nbsp;</a>

<br> <br>
';


if ($_GET['mess_id'] == 'send')
include($cms.'user/to_mess.php');

if ($_GET['mess_id'] == 'in')
include($cms.'user/in_mess.php');

if ($_GET['mess_id'] == 'to')
include($cms.'user/send_mess.php');
}
else
{
 echo '
   <span class="ramka">
   Доступ запрещен.</span>
   ';
}
?>