[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: reset_passR.php
<?php include("header.php"); ?> <script> function check(){ var radioValue = $("input[name='type']:checked").val(); //alert(radioValue); if(radioValue=='Email'){ $('#em').show(); $('#phn').hide(); // $("#email").prop('required',true); }else if(radioValue=='Phone'){ $('#em').hide(); $('#phn').show(); // $("#phone").prop('required',true); } } </script> <!-- Banner Start --> <div class="signupform"> <div class="spec_1" data-aos="fade-down" style="transition:all 1500ms ease-in-out"> <h3>Reset Password</h3> <div class="ser-t"> <b></b> <span><i></i></span> <b class="line"></b> </div> </div> <!-- //tittle heading --> <div class="container"> <div class="sub-main-w3"> <form method="post"> <div class="res"> <div class="nd-sst"> <label for="password">Reset With :</label> </div> <div class="nd-st"> <input type="radio" value="Email" onclick="check()" name="type"> Email </div> </div> <div class="ema" id="em" style=""> <div class="nd-sst"> <label for="password">Email :</label> </div> <div class="nd-st"> <input type="text" name="email" id="email" placeholder="Email"> </div> </div> <div class="ph" id="phn" style="display:none"> <div class="nd-sst"> <label for="phnumber">Phone :</label> </div> <div class="nd-st"> <input type="text" id="phone" name="phone" placeholder="Phone No" pattern="[0-9]{10}" title="Give correct phone number"> </div> </div> <input type="hidden" name="table" value="customer_regs"> <div class="row"> <input type="submit" name="sub" value="Send "> </div> </form> </div> </div> <?php if(isset($_POST['sub'])){ var_dump(isset($_POST['email'])); if(!empty($_POST['email'])|| trim($_POST['email'])!= ''){ $stmt=$show->readwithdata('client','email',$_POST['email']); $num=$stmt->rowCount(); if($num>0){ $s=substr(str_shuffle(str_repeat("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#@", 5)), 0, 5); $no=rand(1,10000); $capcha=$no; $my_mail=$_POST['email']; $user=$_POST['email']; $email_subject = "Reset Password-OTP"; $emcc='<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">'; $email_content="<html><head> <style> h2{ color:#000; font-size:26px; } #b{ width:500px; font-size:15px; } th{ background-color:#fff; } </style> </head> <body> <table style='border: 40px solid #000;width=800px;'> <hr> <h3>Welcome to $company_name </h3></td></tr> <tr><td style='text-align:justify;padding:12px;font-size:18px;'><br>Hi ,<br><br> your reset password OTP is : ".$capcha."<br><br> Please visit this link and verify your OTP and reset the password. <br> <a href='http://".$_SERVER['HTTP_HOST']."$dir1/reset_password2.php?id=".base64_encode($capcha)."&m=".base64_encode($_POST['email'])."&tab=".base64_encode('client')."'>Change Password</a> <br><br><br><br> Thanks & Regards,<br> $company_name,<br> Web : $website/<br> Email : $email<br> <br> <br> </td></tr> </tr> </table> </body></html>"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; if(@mail($my_mail,$email_subject,$email_content,$headers)) { echo '<script> swal({ title: "Thank You!", text: "OTP has been sent to your registered mail", type: "success" }) .then((willDelete) => { if (willDelete) { swal("You will be redirected to Reset password page"); window.location.href="reset_password2.php?id='.base64_encode($capcha).'&m='.base64_encode($_POST['email']).'&tab='.base64_encode('client').'"; } }); </script>'; //echo "<script>window.location.href='bill.php'</script>"; //echo "<script>window.location.href='reset_password2.php?id=".base64_encode($capcha)."&m=".base64_encode($_POST['email'])."&tab=".base64_encode('client')."';</script>"; } else { //echo "<script>alert('Message not sent!')</script>"; } }else{ echo "<script>swal('Please put a registered email.This email is not registered with us.');window.location.href='".$_SERVER['request_uri']."'</script>"; } } } ?> </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.72 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