| Server IP : 172.67.201.108 / Your IP : 216.73.217.139 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/banners/domains/mcifa.com/public_html/ |
Upload File : |
<?php
/**
* readmessage.php - Read thread (replaces readmessage.cfm)
*
* Auth check. Displays all messages in a thread sequentially.
* Uses makeLinks() for URL/emoticon conversion.
* Links to readmessage2.php for responding to individual messages.
*/
require 'header.php';
requireLogin();
$urlMID = isset($_GET['mid']) ? (int)$_GET['mid'] : (isset($_GET['MID']) ? (int)$_GET['MID'] : 0);
if ($urlMID > 0):
$db = getReadDb();
$stmt = $db->prepare("SELECT * FROM wb WHERE (ThreadID = ?) ORDER BY ThreadID DESC, SubParent DESC, ParentID, ReplyID, ID");
$stmt->execute([$urlMID]);
$messages = $stmt->fetchAll();
?>
<section id="content" class="sbr">
<div class="menu-shadow"></div>
<div class="container clearfix">
<div class="page-header clearfix" style="margin-bottom: 20px;">
<h1>Message Board</h1>
<div class="line"></div>
</div>
<!--/ .page-header-->
<section id="main" class="twelve columns">
<article class="entry clearfix">
<!--/ .entry-title-->
<!--/ .preloader-->
<!--/ .entry-meta-->
<div class="entry-body">
<font face="arial" size="+0">
<strong><div align="center"><a href="newboard.php">Back to the Message Board</a></strong>
</div>
</font><p>
<?php foreach ($messages as $row): ?>
<font face="Arial" size="+1">
<b><?php echo h($row['subject']); ?><br></font></b>
<font face="Arial" size="-1">Posted by <b>
<?php if (!empty($row['email'])): ?>
<a href="mailto:<?php echo h($row['email']); ?>">
<?php endif; ?>
<?php echo h($row['fname']) . ' ' . h($row['lname']); ?>
</a>
</b> <i><?php echo h($row['dt']); ?></i><br>
<font face="arial" size="-2">
<div align="right"><?php echo h($row['ipadd']); ?></div>
</font>
<br>
<p>
<?php if (!empty($row['image'])): ?>
<img src="<?php echo h($row['image']); ?>">
<?php endif; ?>
<p>
<font face="arial" size="-1">
<?php echo makeLinks($row['message'], 'http,https'); ?>
<p>
<a href="<?php echo h($row['link']); ?>"><?php echo h($row['linktitle']); ?></a>
</font>
<br>
<div align="right">
<font face="arial" size="-2"><a href="readmessage2.php?M=<?php echo urlencode($row['id']); ?>&MID=<?php echo urlencode($row['threadid']); ?>&SP=<?php echo urlencode($row['subparent']); ?>">Respond to this message</a>
</div></font>
</font>
<hr color="black">
<?php endforeach; ?>
<!--/ .about-author-->
</div>
<!--/ .entry-body-->
</article>
<!--/ .entry-->
</section> <!--/ #main-->
<?php endif; ?>
<?php require 'sidebar.php'; ?>
<?php require 'footer.php'; ?>