File: /home/httpd/html/porn.tw/public_html/includes/mailbox/read.php
<!-- mailbox -->
<section id="mailbox" class="mailbox-col col col-full">
<div class="mailbox-inner-col inner-col">
<?php include($basepath . '/includes/mailbox/template.nav.php'); ?>
<div class="row">
<!-- mailbox-content -->
<div class="mailbox-content-col col col-full">
<div class="mailbox-content-inner-col inner-col">
<!-- CONTENT GOES HERE START -->
<?php
if ($error_) {
echo $error_;
} else {
if ($message_type == 'inbox') {
$who = $message[0]['from_user'];
} else {
$who = $message[0]['to_user'];
}
$from = dbQuery("SELECT username FROM users WHERE record_num = '" . $who . "'",false);
$linkUser = generateUrl('user', $from[0]['username'], $who);
?>
<table>
<tr>
<td><strong><?php if ($message_type == 'inbox') { ?><?php echo _t("From") ?>:<?php } else { ?><?php echo _t("To") ?>:<?php } ?></strong></td>
<td>
<?php if ($who != 0) { ?>
<a href="<?php echo $linkUser; ?>"><?php echo $from[0]['username']; ?></a>
<?php } else { ?>
<span style="color: #ffffff;">Admin</span>
<?php } ?>
</td>
</tr>
<tr>
<td><strong><?php echo _t("Subject") ?></strong></td>
<td><?php echo htmlentities($message[0]['subject']); ?></td>
</tr>
<tr>
<td><strong><?php echo _t("Received") ?></strong></td>
<td><?php echo date("m/d/Y H:i A", strtotime($message[0]['date_sent'])); ?></td>
</tr>
<tr>
<td><strong><?php echo _t("Message") ?></strong></td>
<td><?php echo htmlentities($message[0]['body']); ?></td>
</tr>
</table>
<?php } ?>
<div class="actions">
<?php if (!$error_) { ?>
<?php if ($message_type == 'inbox') { ?>
<a href="<?php echo $basehttp; ?>/mailbox/compose/<?php echo $mid; ?>/reply/" charset="reply" class="btn btn-default"><?php echo _t("Reply") ?></a>
<?php } ?>
<a href="<?php echo $basehttp; ?>/mailbox/read/<?php echo $mid; ?>/delete/" class="delete btn btn-default"><?php echo _t("Delete") ?></a>
<?php } ?>
</div>
<!-- CONTENT GOES HERE END -->
</div>
</div>
<!-- mailbox-content END -->
</div>
</div>
</section>
<!-- mailbox END -->