[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: contact.php
<?php include('header.php'); function generateCSRFToken() { if (empty($_SESSION['csrf_token'])) { $_SESSION['csrf_token'] = bin2hex(random_bytes(32)); } return $_SESSION['csrf_token']; } $csrfToken = generateCSRFToken();?> <!-- USER --> <div class="inner-banner"> <img src="images/inner-banner.jpg" alt="banner"> </div> <!-- about --> <div class="contact-inner"> <div class="container"> <h1>Contact us</h1> <h6>Welcome to Get in touch</h6> <br> <div class="row"> <div class="col-md-7 col-sm-7 col-sx-12"> <div class="con-box-form"> <form method="post" id="form"> <div class="form-left-to-w3l " id="b_name"> <input type="text" placeholder="Full Name" name="name" required=""> </div> <div class="form-left-to-w3l"> <input type="email" placeholder="Email id" name="email" id="em" required=""> </div> <div class="form-left-to-w3l"> <input type="text" value="" name="phone" placeholder="Phone No" required=""> </div> <div class="form-left-to-w3l"> <textarea name="message" id="message" placeholder="Message"></textarea> </div> <input type="hidden" name="csrf_token" value="<?php echo $csrfToken; ?>"> <script src='https://www.google.com/recaptcha/api.js'></script> <script> function get_action(form) { var v = grecaptcha.getResponse(); if(v.length == 0) { document.getElementById('captcha').innerHTML="You can't leave Captcha Code empty"; return false; } else { document.getElementById('captcha').innerHTML="Captcha completed"; return true; } } </script> <div class="fill-box subject"> <div class="g-recaptcha" id="rcaptcha" data-sitekey="6LeAw4QqAAAAAPTLGtc7qfN4_6WBhGEnrOnJ3J_1" style="margin: 0 auto; display: inline-block;"></div> <span id="captcha" style="color:red" /></span> <!-- this will show captcha errors --> </div> <div class="form-sub-acc"> <div class="form-sub"> <input type="submit" class="" name="sub" id="btn" value="Submit"> </div> </div> </form> <?php function verifyCSRFToken($token) { return isset($_SESSION['csrf_token']) && hash_equals($_SESSION['csrf_token'], $token); } if(isset($_POST['sub'])){ if (!verifyCSRFToken($_POST['csrf_token'])) { die('CSRF token validation failed'); }else{ $em=htmlentities(strip_tags($_POST['email'])); /* $email_subject = "Contact Query"; $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> You got a contact query : <br> Name :".$_POST['name']." <br> Phone :".$_POST['phone']." <br> Email :".$_POST['email']." <br> Message :".$_POST['message']." <br> <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>Franchise Registration</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 ".$_POST['name'].",<br><br> Thank you for your query we will contact you soon.<br><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>"; $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['email'],$email_subject,$email_content,$headers)) { echo "ok"; } else { //echo "<script>alert('Registration is Complete. Login to continue shopping.')</script>"; echo "not ok"; } */ } } ?> </div> </div> <div class="col-md-5 col-sm-5 col-sx-12"> <div class="con-box"> <h3><i class="fa fa-map-marker"></i> Address</h3> <ul> <li><a href="https://www.google.com/maps?ll=22.633251,88.435035&z=14&t=m&hl=en-US&gl=IN&mapclient=embed&cid=3634310325378340122" target="_blank">Kaikhali , Vip Road Indraprasth appartment , Block-A2, Flat-no 402, Kolkata - 700052</a></li> </ul> </div> <div class="con-box"> <h3><i class="fa fa-phone"></i>Phone Numbers</h3> <ul> <li><a target="_blank" href="tel:<?=$phone?>"><?=$phone?></a></li> </ul> </div> <div class="con-box"> <h3><i class="fa fa-envelope"></i>Email ID</h3> <ul> <li><a target="_blank" href="mailto: enquiry@itsweb.in"> enquiry@itsweb.in</a></li> <li><a target="_blank" href="mailto:Incrementers@gmail.com">Incrementers@gmail.com</a></li> </ul> </div> </div> </div> </div> <div class="map-block"> <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d29460.404810860677!2d88.43503500000001!3d22.633251000000005!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x326fa9fc4bb5d51a!2sIncrementer%20Technology%20Solutions%20Pvt.%20Ltd..%20website%20development%20company%20in%20Kolkata%20%7C%20incrementertech.com!5e0!3m2!1sen!2sin!4v1623515370439!5m2!1sen!2sin" width="100%" height="300" style="border:0;" allowfullscreen="" loading="lazy"></iframe> </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.62 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