-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathconfig.inc.php.sample
32 lines (29 loc) · 1.56 KB
/
config.inc.php.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// site url: 還沒用到
$protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://";
$site_url = $protocol . "map.happyman.idv.tw";
// 地圖瀏覽器的 url prefix
$site_html_root = "/map/";
// 地圖產生器 url prefix
$site_twmap_html_root = "/gen/";
//
$CONFIG['site_twmap_html_root'] = "/gen/";
$CONFIG['getkmlfrombounds_url'] = $site_twmap_html_root ."api/getkmlfrombounds.php";
$CONFIG['geocodercache_url'] = $site_twmap_html_root ."api/geocoder.php";
$CONFIG['getkml_url'] = $site_twmap_html_root ."api/getkml.php";
$CONFIG['get_waypoints_url'] = $site_twmap_html_root ."api/waypoints.php";
$CONFIG['geocodercache_url'] = $site_twmap_html_root ."api/geocoder.php";
$CONFIG['get_elev_url'] = $site_twmap_html_root ."api/getelev.php";
//$CONFIG['pointdata_url'] = $site_html_root . "data/ajaxCRUD/pointdata2.php";
$CONFIG['pointdata_url'] = $site_twmap_html_root . "api/pointdata.php";
$CONFIG['viewshed_url'] = $site_twmap_html_root . "api/get_line_of_sight.php";
$CONFIG['pointdata_admin_url'] = $site_twmap_html_root . "admin/index.php";
$CONFIG['promlist_url'] = $site_twmap_html_root . "admin/promlist.php";
$CONFIG['exportkml_url'] = $site_twmap_html_root . "api/exportkml.php";
$CONFIG['poisearch_url'] = $site_twmap_html_root . "api/poi_search.php";
$CONFIG['shorten_url'] = $site_twmap_html_root . "api/shorten.php";
// 資料庫連線參數
$CONFIG['db'] = array('host'=> '', 'db' => '', 'user'=> '', 'pass' => '');
// admin user 的 uid 為 登入地圖產生器的帳號
$CONFIG['admin'] = array("3");
$CONFIG['gmap_api_key'] = '';