@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb009 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
gmap3
/
Path :
Upload File :
New :
File
Dir
/homepage/gmap3/viewmap.php
<?php /*---------------------------------------------------------------------+ | STUDIO KEY | +----------------------------------------------------------------------+ | Copyright (C) 2007 STUDIO KEY.All Rights Reserved. | +----------------------------------------------------------------------+ | このPHPスクリプトはフリーウェアですが、著作権情報の削除は出来ません | | http://studio-key.comのご利用規約をよくお読みになりご利用下さい。 | +----------------------------------------------------------------------+ | e-mail : support@studio-key.com | +---------------------------------------------------------------------*/ require_once('ini.php'); $gmapid = $_GET['gmapid']; $data_all = file($data_file); for($i=0; $i<count($data_all); $i++){ list($no,$lon,$lat,$comment,$icon,) = split( ",", $data_all[$i]); if($no == $gmapid){ break; } } $comment = mb_convert_encoding($comment , "UTF-8" , "auto"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Google Map</title> <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAgMdR1RXsbjK-73uDgP2_KBRDhPlyjMkH3sGT_8iFU7WjXjCSMBRvjZ7lD7CJu4Sd-WMCf9DNFR3ABQ" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> //<![CDATA[ var map; var markers = new Array(1); function onLoad() { map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(<?php echo $lat; ?>,<?php echo $lon; ?>),14); map.addControl(new GSmallMapControl()); map.setMapType(G_NORMAL_MAP); var marker = null; var n_markers = 0; var markeropts = new Object(); var icon = new GIcon(); icon.image = "./image/<?php echo $icon; ?>"; icon.iconSize = new GSize(99,52); icon.iconAnchor = new GPoint(10,36); icon.infoWindowAnchor = new GPoint(20/2,36/2); markeropts.icon = icon; marker = new GMarker(new GPoint(<?php echo $lon; ?>,<?php echo $lat; ?>), markeropts); markers[n_markers] = marker; n_markers++; map.addOverlay(marker); marker.openInfoWindow( document.createTextNode("<?php echo $comment; ?>")); } //]]> </script> <style type="text/css"> <!-- body,html { overflow: hidden; } .map { margin: 0px; height: 330px; width: 450px; padding:0px; } a:link { color: #9900FF; } a:visited { color: #CC00FF; } a:hover { color: #FF3300; } a:active { color: #FF00FF; } --> </style> </head> <body onload="onLoad()" style="margin:0px; padding:0px;"> <div id="map" style="width:100%; height:230px; margin:0px; padding:0px;"></div> FREE PHP <a href="http://studio-key.com" target="_blank">GmapPointer3 by STUDIO KEY</a> </body> </html>