403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.216.11
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/stagemag/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/banners/domains/stagemag/programedit-guestbook.php
<?php
include 'header.php';
set_time_limit(600);

$programid = resolve_programid();
require_program_access($programid, $getuser);
?>

<div id="content" style="max-width: 800px;">
  <div id="content-header">
    <h2>&nbsp;Manage Guestbook</h2>
  </div>
  <div class="container-fluid">

<?php
if (isset($_GET['delete'])) {
    $stmt = db_write()->prepare("DELETE FROM stagemag.guestbook WHERE id = ?");
    $stmt->execute([intval($_GET['delete'])]);
}

if (isset($_GET['change'])) {
    $stmt = db_write()->prepare("UPDATE stagemag.guestbook SET approved = ? WHERE id = ?");
    $stmt->execute([intval($_GET['change']), intval($_GET['id'])]);
}
?>

<br>

<?php
$stmt = db_write()->prepare("SELECT * FROM stagemag.guestbook WHERE programid = ?");
$stmt->execute([$programid]);
$getcasta = $stmt->fetchAll();

if (count($getcasta) > 0):
?>
<table id="example23" class="display nowrap table table-hover table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<th>Approved</th>
<th>Name</th>
<th>Email</th>
<th>Entry</th>
</thead>

<?php foreach ($getcasta as $row): ?>
    <tr id="section_id_<?= $row['id'] ?>">
    <td><?php if ($row['approved'] == 0): ?><a href="programedit-guestbook.php?programid=<?= $programid ?>&id=<?= $row['id'] ?>&change=1">Waiting for Approval</a><?php else: ?><a href="programedit-guestbook.php?programid=<?= $programid ?>&id=<?= $row['id'] ?>&change=0">Approved</a><?php endif; ?></td>
    <td><?= htmlspecialchars($row['name']) ?></td>
    <td><?= htmlspecialchars($row['email']) ?></td>
    <td><?= htmlspecialchars($row['entry']) ?></td>
    </tr>
<?php endforeach; ?>
</table>
<br>
<?php endif; ?>

   </div>
<!--Footer-part-->
<br><br><br><br>

<?php include 'footer.php'; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit