| Server IP : 104.21.21.239 / Your IP : 216.73.216.68 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/lake/public_html/ |
Upload File : |
<?php
require_once __DIR__ . '/config.php';
$pagename = 'News';
include __DIR__ . '/header.php';
$loggedIn = !empty($_SESSION['email']) && $_SESSION['email'] !== -1 && $_SESSION['email'] !== '';
$id = isset($_GET['id']) && is_numeric($_GET['id']) ? (int)$_GET['id'] : 0;
if ($loggedIn && $id):
$db = getDB();
$stmt = $db->prepare('SELECT * FROM lake.communitynews WHERE id = ?');
$stmt->execute([$id]);
$news = $stmt->fetch();
if ($news):
?>
<div class="section mt-3" style="padding: 80px 0;">
<div class="container">
<div class="row justify-content-center mb-5">
<div class="col-md-7 text-center">
<div class="heading-block border-bottom-0 mb-4">
<h2 class="mb-4 text-transform-none"><?= htmlspecialchars($news->subject) ?></h2>
<?= date('n/j/y', strtotime($news->dateposted)) ?>
</div>
<div class="svg-line mb-4">
<img src="/demos/nonprofit/images/divider-1.svg" alt="svg divider" height="20">
</div>
<div style="text-align:left;background-color:white;padding:20px;">
<p><?= $news->message ?></p>
</div>
<a href="/members.php"><u>Back...</u></a>
</div>
</div>
</div>
</div>
</div>
</section><!-- #content end -->
<?php endif; endif; ?>
<?php include __DIR__ . '/footer.php'; ?>