$prev = $prev_item['message_id']; } $prev_item = $item; } $meta['title'] = 'Message Viewer'; $meta['head_data'] = ' <script type="text/javascript" src="scripts/messages.js"></script> '; echo get_header($meta); ?> <div id="content" class="msg"> <div class="link_date"> <a href="messages.php">Return to Inbox</a> Sent: <?php echo @ifdateor(Settings::read('long_date'), strtotime($message['send_date']), strtotime($message['create_date'])); ?> </div> <h2 class="subject"><?php echo $message['subject']; ?> <span class="sender">From: <?php echo $message['recipients'][0]['sender']; ?> </span></h2> <div class="sidebar"> <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?> "><div class="buttons"> <div class="prevnext">
EOT; $html = get_item($contents, ''); break; // ==================================================== // ==================================================== case 'read': $contents = ' <script type="text/javascript" src="scripts/messages.js"></script>'; ob_start(); ?> <div id="content" class="msg"> <div class="link_date"> <a href="index.php?page=messages">Return to Inbox</a> Sent: <?php echo @ifdateor($CFG_LONGDATE, strtotime($message['send_date']), strtotime($message['create_date'])); ?> </div> <h2 class="subject"><?php echo $message['subject']; ?> <span class="sender">From: <?php echo $message['recipients'][0]['sender']; ?> </span></h2> <div class="sidebar"> <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?> "><div class="buttons"> <div class="prevnext">