<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>e-document for php</title>
</head>
<body>
<p>
<?php
if (stristr(htmlentities($_SERVER['PHP_SELF']), "header.php")) {
echo("Do not access this file directly!");
die();
}
$NOW_TIME = time();
$NOW_Date = date("d/m/y :: H:i", $NOW_TIME);
$username = $_COOKIE['username'];
echo '<table width="100%" border="0">
<tr>
<td width="283"><img src="edoclogo.gif" alt="simple e-document" width="283" height="72" /></td><form id="form1" name="form1" method="post" action="main_in.php">
<td bgcolor="#FFFFCC"><table width="100%" border="0">
<tr>
<td><b><a href="main_in.php">Go to Incoming Main Page</a></td>
</tr>
<tr>
<td><br><b><a href="main_out.php">Go to Outgoing Main Page</a></b></td>
</tr>
</table></td></form>
<td nowrap="nowrap" bgcolor="#FFFF99">
<form id="form1" name="form1" method="post" action="logout.php">
<input type="hidden" name="op" value="logout"/>
<input type="hidden" name="username" value="'.$username.'"/>
Hello <b>'.$username.'</b>!';
if ($_COOKIE['access'] == "2"){
echo '<br>(Administrator) <br><a href="admin.php">Administration Page</a>';
}
if ($_COOKIE['access'] == "3"){
echo '<br>(Super Administrator) <br><a href="admin.php">Administration Page</a>';
}
echo '<br><br><input type="submit" name="Submit" value="Logout" /><br><br>Date is: <div align="right"><b>'.$NOW_Date.'</b></div></form>
</td>
</tr>
</table>
<hr>';
?>
</body>
</html>