[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index.php
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); include("functions.php"); if (isset($_SESSION['index_no78897498'])) { header("Location: dashboard.php"); exit(); } $message = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (!csrf_token_is_valid() || !csrf_token_is_recent()) { $message = "<p class='alert alert-danger text-center' role='alert'>Token Authentication Failed</p>"; } else { $indexNo = test_input($_POST['indexNo']); // $s_code = $_SESSION['s_code_Xw2119904']; // Use prepared statement to check enrol_details $stmt = mysqli_prepare($new, "SELECT * FROM enrol_generic WHERE indexNo = ?"); mysqli_stmt_bind_param($stmt, "s", $indexNo); mysqli_stmt_execute($stmt); $result = mysqli_stmt_get_result($stmt); $row = mysqli_num_rows($result); if ($row > 0) { $fetch = mysqli_fetch_array($result); $db_username = $fetch['indexNo']; $myschoolcode = $fetch['s_code']; // Check admission status $stmt2 = mysqli_prepare($new, "SELECT admission_status FROM admission_info WHERE s_code = ?"); mysqli_stmt_bind_param($stmt2, "s", $myschoolcode); mysqli_stmt_execute($stmt2); $result2 = mysqli_stmt_get_result($stmt2); if (mysqli_num_rows($result2) > 0) { $fetchh = mysqli_fetch_array($result2); $admin_status = $fetchh['admission_status']; if ($admin_status == 'CLOSED') { header("Location: admission_closed.php"); exit(); } else { $_SESSION['myschoolcode'] = $myschoolcode; $_SESSION['index_no78897498'] = $db_username; header("Location: check_status"); exit(); } } else { $message = "<p class='alert alert-danger text-center'>Error: School admission information not found</p>"; } mysqli_stmt_close($stmt2); } else { $message = "<p class='alert alert-danger text-center'>Error: Index number does not exist</p>"; } mysqli_stmt_close($stmt); } } ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Student login page</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta content="eliosof" name="author" /> <!-- App favicon --> <!-- <link rel="shortcut icon" href="assets/images/favicon.ico"> --> <!-- preloader css --> <link rel="stylesheet" href="assets/css/preloader.min.css" type="text/css" /> <!-- Bootstrap Css --> <link href="assets/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css" /> <!-- Icons Css --> <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" /> <!-- App Css--> <link href="assets/css/app.min.css" id="app-style" rel="stylesheet" type="text/css" /> <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.1.0-beta.1/css/select2.min.css" rel="stylesheet" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.1.0-beta.1/js/select2.min.js"></script> <style> /* Blinking Effect */ @keyframes blink { 0%, 50% { opacity: 1; } 50%, 100% { opacity: 0; } } .blink { animation: blink 5s infinite; /* 1-second blinking cycle */ } </style> </head> <body> <style> /* Add this CSS to your stylesheet or within a <style> tag */ body { background-image: url('440.jpg'); /* Replace with your actual image URL */ background-size: cover; /* Cover the entire page */ background-position: center; /* Center the image */ background-repeat: no-repeat; /* Prevent the image from repeating */ height: 100vh; /* Ensure the body takes the full height */ } </style> <div class="row g-0"> <div class="col-xxl-4 col-lg-4 col-md-5 mx-auto"> <div class="auth-full-page-content d-flex p-sm-5 p-4 align-items-center justify-content-center shadow-lg" style="min-height: 100vh; background-color: rgba(255, 255, 255, 0.8); border-radius: 10px;"> <div class="w-100"> <div class="d-flex flex-column h-100 align-items-center text-center"> <p style="font-size: 15px; font-weight: bold;">ADMISSION INSTRUCTIONS</p> <div class="auth-content my-auto"> <div class="text-center mb-4"> <?php if($message != "") { echo ($message); }?> </div> <p class="mb-4" style="font-size: 14px; line-height: 1.5; justify-content: justify;"> Please ensure that you have printed your CSSPS PLACEMENT FORM. Your ENROLMENT CODE, which can be found on your Placement Form, would be REQUIRED by this system. Your admission is NOT complete without your Enrolment Code. </p> <form method="POST" class="needs-validation mt-6 pt-4 w-100" novalidate> <?php echo csrf_token_tag(); ?> <div class="mb-3"> <label class="form-label">Enter your B.E.C.E Index Number followed by the year. Eg (500000000023)</label> <input type="number" class="form-control" name="indexNo" placeholder="Enter your JHS index number" required> <div class="invalid-feedback"> Index number is required </div> </div> <div class="mb-3"> <button class="btn btn-primary w-100 waves-effect waves-light" type="submit" name="submit">VERIFY</button> </div> <a href="login">Click here if you have registered already</a> <h5 class="mt-3">HELPLINE +233 208 825 287</h5> </form> </div> <div class="mt-4 mt-md-5 text-center"> <p class="mb-0">© <script>document.write(new Date().getFullYear())</script> Powered by BBECAS</p> </div> </div> </div> </div> </div> </div> <!-- JAVASCRIPT --> <script src="assets/libs/jquery/jquery.min.js"></script> <script src="assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="assets/libs/metismenu/metisMenu.min.js"></script> <script src="assets/libs/simplebar/simplebar.min.js"></script> <script src="assets/libs/node-waves/waves.min.js"></script> <script src="assets/libs/feather-icons/feather.min.js"></script> <!-- pace js --> <script src="assets/libs/pace-js/pace.min.js"></script> <!-- password addon init --> <script src="assets/js/pages/pass-addon.init.js"></script> <script src="assets/js/pages/validation.init.js"></script> </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.74 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