HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/baretube.com.new/includes/mailbox_2019/outbox.php
<div class="mail-box-col col -full">
    <?php include($basepath . '/includes/mailbox_2019/template.nav.php'); ?>

    <div class="row">

        <div class="mailbox-content-col col col-full">
            <form action="" method="post">
                <table>
                    <tr>
                        <th><?php echo _t("To") ?></th>
                        <th><?php echo _t("Subject") ?></th>
                        <th><?php echo _t("Sent") ?></th>
                        <th width="50"><div align="center"><?php echo _t("Action") ?></div></th>
                    </tr>
                    <?php
                    if (is_array($outbox)) {
                        $i = 1;
                        foreach ($outbox as $mail) {
                            $username = dbQuery("SELECT username FROM users WHERE record_num = '" . $mail['to_user'] . "'", false);
                            $linkUser = generateUrl('user', $username[0]['username'], $mail['to_user']);
                            ?>
                            <tr>
                                <td>
                                    <?php if ($mail['to_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 outbox is empty") ?>.</td></tr>
                    <?php } ?>	
                </table>
                <input type="submit" class="btn btn-default" name="delete" value="<?php echo _t("Delete messages") ?>" />
            </form>
        </div>


    </div>

    <div class="row">

        <nav class="pagination-col col pagination">
            <?php include($basepath . '/includes/inc.pagination.php'); ?>
        </nav>


    </div>
</div>