File: /home/httpd/html/baretube.com/includes/mailbox/inbox.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 -->
<form action="" method="post">
<table>
<tr>
<th><?php echo _t("From") ?></th>
<th><?php echo _t("Subject") ?></th>
<th><?php echo _t("Received") ?></th>
<th width="50"><div align="center"><?php echo _t("Action") ?></div></th>
</tr>
<?php
if (is_array($inbox)) {
$i = 1;
foreach ($inbox as $mail) {
$username = dbQuery("SELECT username FROM users WHERE record_num = '" . $mail['from_user'] . "'", false);
$linkUser = generateUrl('user', $username[0]['username'], $mail['from_user']);
?>
<tr class="<?php if ($mail['recipient_read'] == 0) { ?>new<?php } else { ?>read<?php } ?>">
<td>
<?php if ($mail[from_user] == 0) { ?>Admin<?php } else { ?><a href="<?php echo $linkUser; ?>"><?php echo htmlentities($username[0]['username']); ?></a><?php } ?>
</td>
<td>
<a href="<?php echo $basehttp; ?>/mailbox/read/<?php echo $mail['record_num']; ?>"><?php echo htmlentities($mail['subject']); ?></a>
</td>
<td>
<?php echo date("m/d/Y H:i A", strtotime($mail['date_sent'])); ?>
</td>
<td align="center">
<div align="center"><input type="checkbox" name="list[]" value="<?php echo $mail['record_num']; ?>" /></div>
</td>
</tr>
<?php
}
} else {
?>
<tr><td colspan="4"><?php echo _t("Your inbox is empty") ?>.</td></tr>
<?php } ?>
</table>
<input type="submit" class="btn btn-default" name="delete" value="<?php echo _t("Delete messages") ?>" />
</form>
<!-- CONTENT GOES HERE END -->
</div>
</div>
<!-- mailbox-content END -->
</div>
<div class="row">
<nav class="pagination-col col pagination">
<div class="pagination-inner-col inner-col">
<?php include($basepath . '/includes/inc.pagination.php'); ?>
</div>
</nav>
</div>
</div>
</section>
<!-- mailbox END -->