<?
include ("includes/global.inc"); // Global Variables
include ("includes/functions.inc"); // Global Functions
include ("includes/head.inc"); // Standart Headers
include ("stylesheets/sidestyle.inc"); // Stylesheets
include ("includes/javascripts.inc"); // Javascripts
echo "</head>\n";
echo "<body bgcolor='#2B3D61' text='#FFFFFF' link='#FFFFFF' vlink='#FFFFFF' alink='#FF0000'>\n";
echo "<table width='90' border='0' cellspacing='0' cellpadding='0' align='center'>\n";
echo " <tr>\n";
echo " <td height='135'><img src='images/logo.gif' width='90' height='90'></td>\n";
echo " </tr>\n";
echo " <tr valign='top'>\n";
echo " <td height='200'>\n";
echo " <a href='new_message.php?ID=$ID&to=&cc=&bcc=&subject=&msgbody=&db=0' target='main'>New Message</a><br>\n";
echo " <a href='mailbox.php?ID=$ID&mbox_id=inbox&giris=0' target='main'>Check Mail</a><br>\n";
echo " <hr size='1'>\n";
echo " <table width='100%' border='0' cellspacing='0' cellpadding='0'>\n";
echo " <tr>\n";
echo " <td colspan='2'><a href='folders.php?ID=$ID' target='main'>Folders</a></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td width='12%'> </td>\n";
echo " <td width='88%'><a href='mailbox.php?ID=$ID&mbox_id=inbox&giris=0' target='main'>- Inbox</a></td>\n";
echo " </tr>\n";
$user_id = findUserByHash($ID);
$query = "select mbox_id,mboxname from tblMailBoxes where user_id = $user_id";
$result = mysql_db_query("$dbname",$query);
if($result) {
while ($r = mysql_fetch_array($result)) {
$mbox_id = $r["mbox_id"];
$mboxname = $r["mboxname"];
echo " <tr>\n";
echo " <td width='12%'> </td>\n";
echo " <td width='88%'><a href='mailbox.php?ID=$ID&mbox_id=$mbox_id&giris=0' target='main'>- $mboxname</a></td>\n";
echo " </tr>\n";
}
}
echo " </table> \n";
echo " <hr size='1'>\n";
echo " <a href='main.php?error_code=0' target='main'>Log Out</a>\n";
echo " </td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "</body>\n";
echo "</html>\n";
?>