View file public_html/mail.php

File size: 835B
<? 
session_start();

if(!(isset($_SESSION["username"]) && isset($_SESSION["password"])))
{
	?>
	<script type="text/javascript">
	location.replace("login.php");
	</script>
	<noscript>
	<meta http-equiv="refresh" content="0; url=login.php">
	</noscript>
	<?
	exit();
}

include('header.php');
?>

<h3>.::Внутренняя почта::.</h3>
<br><br>
<div id="ahref">
<center><span style="font-size: 16px; font-weight: bold;">
.:: <a href="mail.php?p=inbox">Входящие сообщения</a> :: <a href="mail.php?p=outbox">Исходящие сообщения</a> :: <a href="mail.php?p=sendmessage">Написать сообщение</a> ::.<br>
</center></span>
</div
<br><br>
<?
$p=$_GET["p"];

if($p=='inbox') include('inbox.php');
if($p=='outbox') include('outbox.php');
if($p=='sendmessage') include('sendmessage.php');
?>

<? include('footer.php'); ?>