[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: map1.php
<?php include 'token.php';?> <html> <head> <title>PlacePicker With Search</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="PlacePicker With Search"> <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> body { margin: 0 ; } #map {width: 50%;height: 500px; margin: 0; padding: 0; } </style> </head> <body> <div id="map"></div> <script> /*Map Initialization*/ var map,picker; function initMap1(){ map = new mappls.Map('map', { center: [28.62, 77.09], 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); console.log(res); data_show(j); }); } function data_show(value){ $.ajax({ type:"POST", data:{data:value}, url:"getdata.php", success: function(html){ alert(html); $('#demo').html(html).show(); // $('#data').val(result.pincode); // $('#data2').val(result.state); // console.log(html); } }); } </script> <p id="demo"></p> </body> </html>
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.49 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