| Server IP : 172.67.201.108 / Your IP : 216.73.217.73 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 require 'header.php'; ?>
<section id="content" class="sbr">
<div class="menu-shadow"></div>
<div class="container clearfix">
<div class="page-header clearfix" style="margin-bottom: 20px;">
<h1>Guestbook</h1>
<div class="line"></div>
</div>
<!--/ .page-header-->
<section id="main" class="twelve columns">
<article class="entry clearfix">
<div class="entry-body">
<?php
$captchaValid = false;
if (isset($_POST['Name']) && isset($_POST['ReferredBy']) && isset($_POST['captchaText'])) {
if ($_POST['captchaText'] === $_POST['chide']) {
$captchaValid = true;
$pdo = getWriteDb();
$stmt = $pdo->prepare("INSERT INTO guestbook (Name, Email, HomepageTitle, HomepageURL, Location, Comments, ReferredBy, Member, CurrentDateTime, DisplayItem, IPAddress) VALUES (?, ?, ?, ?, ?, ?, ?, ?, NOW(), '0', ?)");
$stmt->execute([
$_POST['Name'] ?? '',
$_POST['EMail'] ?? '',
$_POST['HomepageTitle'] ?? '',
$_POST['HomepageURL'] ?? '',
$_POST['Location'] ?? '',
$_POST['comments'] ?? '',
$_POST['ReferredBy'] ?? '',
$_POST['Member'] ?? '',
$_SERVER['REMOTE_ADDR']
]);
}
}
?>
<center><p class="PurpleHeadline">Sign the Guestbook<br></p>
<p><font face="arial" size="-1">
<?php if ($captchaValid): ?>
<h3>Thanks for writing, your message will be posted shortly.</h3>
<?php else: ?>
<h3>Sorry, you have entered an invalid code.</h3>
<?php endif; ?>
<p>
<a href="guestbook.php">Back...</a>
</center>
</div>
<!--/ .entry-body-->
</article>
<!--/ .entry-->
</section> <!--/ #main-->
<?php require 'sidebar.php'; ?>
<?php require 'footer.php'; ?>