Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/mailout.php
<?
include('dbconn.php');
include('flagchk.php');
$result = mysql_query("SELECT usrname, usrflags FROM ".$OekakiPoteto_MemberPrefix."oekaki WHERE usrname='$OekakiU'");
extract(mysql_fetch_array($result));
if (!check_flag('G')) {
	header('Location: error.php?error='.urlencode("You cannot access the mailbox."));
exit;
}

mysql_close();
?>
<html>
<?


include('header.php');
$result = mysql_query("Select * from ".$OekakiPoteto_MemberPrefix."oekakimailbox where sender='$OekakiU' order by MID desc");

?> 
<p></p>
<br>
<table width="<?=$hWidth?>" align="center" cellpadding="0" cellspacing="0">
<tr>
    <td class="infotable"><strong><font size="-2"><?=$langop_word_mailbox?></font></strong><font size="-2"> 
      [<a href="mailbox.php"><?=$langop_word_inbox?></a>] [<a href="mailsend.php"><?=$langop_word_write?></a>] </font></td>
  </tr>
  <tr> 
    <td><table width="100%" border="0" cellspacing="2" cellpadding="2">
        <tr> 
          <td colspan="4" class="header"><?=$langop_word_outbox?></td>
        </tr>
        <tr class="infotable"> 
          <td><strong><?=$langop_word_to?></strong></td>
          <td><strong><?=$langop_word_subject?></strong></td>
          <td><strong><?=$langop_word_date?></strong></td>
          <td><strong><?=$langop_word_status?></strong></td>
        </tr>
        <?while($row = mysql_fetch_array($result)){?>
        <tr class="infotable"> 
          <td><a onClick="openWindow('profile.php?user=<?=$row[reciever];?>', 300, 400); return false" a href="profile.php?user=<?=$row[reciever];?>"> 
            <?=$row[reciever];?>
            </a> </td>
          <td><a href="mailread.php?MID=<?=$row[MID]?>"> 
            <?=$row[subject];?>
            </a></td>
          <td> 
            <?=$row[senddate];?>
          </td>
          <td> 
            <?switch($row[mstatus]){
		  		case 0:
					echo $langop_word_new;
					break;
				case 1:
					echo $langop_word_unread;
					break;
				case 2:
					echo $langop_word_read;
					break;
				case 3:
					echo $langop_word_replied;
					break;
				default:
					echo $langop_word_new;
					break;
					}?>
          </td>
          <? }
		  
mysql_close(); ?>
        </tr>

      </table></td>
  </tr>
</table>
<br>
</body>
<? include('footer.php'); ?>
Return current item: OekakiPoteto