Location: PHPKode > projects > Absolut Engine > absolut-engine-33870/admin/modules/messaging/readmessage.php
<?
define(TEMPDIR,"../../");
@include(TEMPDIR."coreclass.php");
$ae=new CEngine();
$ae->EngineInitialize();
$ae->RequestVariables();
$ae->UserVerifySession();
$ae->DBQuery("SELECT * FROM ".$ae->tablemessaging[0]." WHERE recipientID='".$ae->currentuserID."'");
if (!$ae->DBGetRow())
   {
   header("location: http://".$ae->server."/".$ae->path."admin/admin.php?username=".$ae->username."&session=".$ae->session);
   exit;
   }
@include(TEMPDIR."header.php");
?>
<div id="content">
<?
$ae->DBQuery("SELECT * FROM ".$ae->tablemessaging[0]." WHERE recipientID='".$ae->currentuserID."' ORDER BY adate DESC, atime DESC");
while ($ae->DBGetRow()):
$outcome2=$ae->outcome;
$messageID=$ae->access["ID"];
$adate=$ae->access["adate"];
$adate=$ae->DateConversion($adate,2);
$atime=$ae->access["atime"];
$senderID=$ae->access["senderID"];
$subject=$ae->access["subject"];
$message=$ae->access["message"];
$ae->DBQuery("SELECT fullname FROM ".$ae->table[5]." WHERE ID='$senderID'");
$ae->DBGetRow();
$sender=$ae->access["fullname"];
?>
<table cellspacing="0" class="form">
<tr>
<td width="20%"><strong><? echo $ae->textmessaging[0] ?></strong></td>
<td><? echo $sender,'&nbsp;&nbsp;&nbsp;&nbsp;<strong><a href="sendmessage.php?username=',$ae->username,'&session=',$ae->session,'&recipientID=',$senderID,'">&lt;&lt;&lt; ',$ae->textmessaging[9],'</a></strong>'; ?></td>
</tr>
<tr>
<td><strong><? echo $ae->textmessaging[1] ?></strong></td>
<td><? echo $subject; ?></td>
</tr>
<tr>
<td><strong><? echo $ae->textmessaging[2] ?></strong></td>
<td><? echo $adate,' ',$atime; ?></td>
</tr>
<tr>
<td colspan="2">
<? echo nl2br($message); ?>
<form method="post" action="modify.php?command=2">
<p>
<input type="hidden" name="username" value="<? echo $ae->username ?>" />
<input type="hidden" name="session" value="<? echo $ae->session ?>" />
<input type="hidden" name="messageID" value="<? echo $messageID ?>">
<input type="submit" name="Submit" value="<? echo $ae->textbasic[110] ?>" class="button" />
</p>
</form>
</td>
</tr>
</table>
<br />
<?
$ae->outcome=$outcome2;
endwhile;
?>
</div>
<? @include(TEMPDIR.'footer.php'); ?>
Return current item: Absolut Engine