1 Star 0 Fork 3

雄の / mymps

forked from cppcoder / mymps 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
map.php 2.07 KB
一键复制 编辑 原始数据 按行查看 历史
greezen 提交于 2017-05-03 10:18 . create
<?php
error_reporting(E_ALL^E_NOTICE);
__FILE__ == '' && die('Fatal error code: 0');
@header("Content-Type: text/html; charset=gbk");
@set_magic_quotes_runtime(0);
if (defined('DEBUG_MODE') == false) define('DEBUG_MODE', 0);
if(PHP_VERSION < '4.1.0') {
$_GET = &$HTTP_GET_VARS;
$_SERVER = &$HTTP_SERVER_VARS;
unset($HTTP_GET_VARS,$HTTP_SERVER_VARS);
}
if (isset($_REQUEST['GLOBALS']) OR isset($_FILES['GLOBALS'])) {
exit('Request tainting attempted.');
}
if(function_exists('date_default_timezone_set')) date_default_timezone_set('Hongkong');
define('CURSCRIPT', 'map');
define('IN_MYMPS',true);
define('CURRENTDIR',dirname(__FILE__));
require_once CURRENTDIR.'/data/config.php';
require_once CURRENTDIR.'/include/common.fun.php';
$p = mhtmlspecialchars($_GET['p']);
if(isset($p) && preg_match("/^[a-z0-9\-\.]+[,][a-z0-9\-\.]+$/", $p)) {
list($p1, $p2) = explode(',', $p);
}
$areacode = isset($_GET['areacode']) ? intval($_GET['areacode']) : '';
$action = isset($_GET['action']) ? trim(mhtmlspecialchars($_GET['action'])) : '';
if(!in_array($action,array('show','markpoint'))) $action = 'show';
$cityname = isset($_GET['cityname']) ? trim(mhtmlspecialchars($_GET['cityname'])) : 'beijing';
$documentdomain = isset($_GET['documentdomain']) ? trim(mhtmlspecialchars($_GET['documentdomain'])) : 0;
$title = isset($_GET['title']) ? checkhtml($_GET['title']) : 'עλ';
$level = is_numeric($_GET['level']) ? intval($_GET['level']) : (is_numeric($mymps_global['mapview_level']) ? $mymps_global['mapview_level'] : 10);
$width = isset($_GET['width']) ? intval($_GET['width']) : 500;
$height = isset($_GET['height']) ? intval($_GET['height']) : 500;
$markpoint = isset($_GET['markpoint']) ? intval($_GET['markpoint']) : 0;
if((!$p1 || !$p2) && !empty($mymps_global['cfg_mappoint'])) {
$key = 1;
list($p1,$p2) = explode(',',$mymps_global['cfg_mappoint']);
}
$mapflag = $mymps_global['mapflag'] ? $mymps_global['mapflag'] : 'baidu';
$version = 1.1;
include CURRENTDIR.'/template/box/map.html';
$mymps_global = $mapflag = $width = $height = $title = $level = $action = $p1 = $areacode = $p2 = NULL;
?>
PHP
1
https://gitee.com/mmm666/mymps.git
git@gitee.com:mmm666/mymps.git
mmm666
mymps
mymps
master

搜索帮助