| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- error_reporting(32767 ^ 8);
- __FILE__ == '' && exit('Fatal error code: 0');
- @header('Content-Type: text/html; charset=utf-8');
- @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);
- unset($HTTP_SERVER_VARS);
- }
- if (isset($_REQUEST['GLOBALS']) || 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']) ? mhtmlspecialchars($_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.1000000000000001;
- include CURRENTDIR . '/template/box/map.html';
- $mymps_global = $mapflag = $width = $height = $title = $level = $action = $p1 = $areacode = $p2 = NULL;
- ?>
|