[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index.php
<?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']; $urll = $records['locurl']; $shop_title = $records['shop_title']; $seo_keywords = $records['seo_keywords']; $shop_description = $records['shop_description']; } } if(!empty($getshopname)){ ?> <?php echo '<!DOCTYPE html> <html lang="en"> <!-- HEAD --> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0"/> <meta name="author" content="The salon friend"> <title>'.$getshopname.' | '.$shop_title.'</title> <meta name="description" content="'.$shop_description.'"> <meta name="keywords" content="'.$seo_keywords.'"> <!-- EXTERNAL CSS LINKS --> <link rel="stylesheet" type="text/css" href="Design/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="Design/fonts/css/all.min.css"> <link rel="stylesheet" type="text/css" href="Design/css/main.css"> <link rel="stylesheet" type="text/css" href="Design/css/responsive.css"> <link rel="stylesheet" type="text/css" href="Design/css/barber-icons.css"> <!-- GOOGLE FONTS --> <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;1,100;1,200;1,300;1,400;1,500&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Prata&display=swap" rel="stylesheet"> </head> <!-- BODY --> <body>'; include "Includes/templates/navbar.php"; ?> <section class="home-section" id="home-section"> <div class="home-section-content"> <div id="home-section-carousel" class="carousel slide" data-ride="carousel"> <ol class="carousel-indicators"> <li data-target="#home-section-carousel" data-slide-to="0" class="active"></li> <!-- <li data-target="#home-section-carousel" data-slide-to="1"></li> <li data-target="#home-section-carousel" data-slide-to="2"></li> --> </ol> </div> </div> </section> <!-- <section id="about" class="about_section"> <div class="container"> <div class="row"> <div class="col-md-6"> <div class="about_content"> <h2><?php //echo $getshopname;?></h2> <p style="color: #777"><?php echo $description;?></p> <a href="appointment" class="default_btn" style="opacity: 1;">Book now</a> </div> </div> <div class="col-md-6 d-none d-md-block"> <div class="about_img" style = "overflow:hidden"> <img class="about_img_1" src="Design/images/about-2.jpg" alt="about-1"> </div> </div> </div> </div> </section> --> <!-- SERVICES SECTION --> <section class="services_section" id="services"> <div class="container"> <div class="section_heading"> <h2><?php echo $getshopname;?></h2> <h3>Our Services</h3> <div class="heading-line"></div> </div> <div class="row"> <?php $so = "SELECT * FROM services WHERE business_name = '$getshopname'"; $soCon = mysqli_query($new,$so); while($go = mysqli_fetch_array($soCon)){ ?> <div class="col-lg-3 col-md-6 padd_col_res"> <div class="service_box"> <i class="bs bs-brush"></i> <h3><?php echo $go['service_name'];?></h3><br/> </div> </div> <?php }?> </div> <br /><br /><br /> <div class="col-lg-4 col-md-6"> <div class="footer_widget"> <div class="header-btn" style="margin-left:10px"> <a href="appointment.php?shopname=<?php echo $getshopname;?>" class="menu-btn" style="background-color: #000000;">Book an Appointment</a> </div> </div> </div> </div> </section> <section class="gallery-section" id="gallery"> <div class="section_heading"> <h3>Trendy Salon & Spa</h3> <h2>Our Gallery</h2> <div class="heading-line"></div> </div> <div class="container"> <div class="row"> <?php $so = "SELECT * FROM shop_gallary WHERE business_name = '$getshopname'"; $soConn = mysqli_query($new,$so); while($goo = mysqli_fetch_array($soConn)){ ?> <div class="col-lg-3 col-md-6 gallery-column"> <div> <div class="gallery-img"> <img style="width:270px" src="../mydashboard/uploads/<?php echo $goo['gallary1'];?>"> </div> </div> </div> <?php }?> </div> </div> </section> <!-- <section class="book_section" id="booking"> <div class="book_bg"></div> <div class="map_pattern"></div> <div class="container"> <div class="row"> <div class="col-md-6 offset-md-6"> <form action="#" method="post" id="appointment_form" class="form-horizontal appointment_form"> <div class="book_content"> <h2 style="color: white;">Book an appointment</h2> <p style="color: #999;"> <?php if($description == ""){ echo "At ".$getshopname.", we believe that everyone deserves to feel pampered, rejuvenated, and confident. We are excited to announce that our doors are open to provide you with an exceptional salon experience like no other. Step into our tranquil oasis, where relaxation, beauty, and personalized care intertwine <br /> Our team of skilled professionals is dedicated to bringing out the best in you. Whether you're in need of a stylish haircut, a fresh new color, a rejuvenating facial, a soothing massage, or a stunning manicure and pedicure, we have a wide range of services to cater to your every need. Our experts are well-versed in the latest trends and techniques, ensuring that you leave our salon feeling and looking your absolute best"; } else { echo $description; } ?> </p> </div> <a href="appointment.php?shopname=<?php echo $getshopname;?>" class="default_btn"> Book Appointment</a> </form> </div> </div> </div> </section> --> <!-- BOOKING SECTION --> <section class="pricing_section" id="pricing"> <!-- START GET CATEGORIES PRICES FROM DATABASE --> <?php $stmt = $con->prepare("Select * from service_categories WHERE business_name = ?"); $stmt->execute(array($getshopname)); $categories = $stmt->fetchAll(); ?> <!-- END --> <div class="container"> <div class="section_heading"> <!--<h3>Save 20% On Beauty Spa</h3>--> <h2>Our Pricing List</h2> <div class="heading-line"></div> </div> <div class="row"> <?php foreach($categories as $category) { $stmt = $con->prepare("Select * from services where category_id = ?"); $stmt->execute(array($category['category_id'])); $totalServices = $stmt->rowCount(); $services = $stmt->fetchAll(); if($totalServices > 0) { ?> <div class="col-lg-4 col-md-6 sm-padding"> <div class="price_wrap"> <h3 style="background-color: #000000;"><?php echo $category['category_name'] ?></h3> <ul class="price_list"> <?php foreach($services as $service) { ?> <li> <p><?php echo $service['service_name'] ?> -------------------------</p> <p><?php //echo $service['service_description'] ?></p> <span class="price" style="font-size:15px"> ยข<?php echo $service['service_price'] ?></span> </li> <?php } ?> </ul> </div> </div> <?php } } ?> </div> </div> </section> <?php echo $urll;?> <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> <!-- <section class="widget_section"> <div class="container"> <div class="row"> <div class="col-lg-4 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-4 col-md-6"> <div class="footer_widget"> <h3> Opening Hours </h3> <ul class="opening_time"> <li><?php echo $open_clode_time;?> </li> <li></li> </ul> </div> </div> <div class="col-lg-4 col-md-6"> <div class="footer_widget"> <div class="header-btn" style="margin-left:10px"> <a href="appointment.php?shopname=<?php echo $getshopname;?>" class="menu-btn">Book an Appointment</a> </div> </div> </div> </div> </div> </section> --> <?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.81 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