-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaultconfig.php
More file actions
140 lines (116 loc) · 8.25 KB
/
defaultconfig.php
File metadata and controls
140 lines (116 loc) · 8.25 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php
/**
* Configuration file required by GoogleMap module
*
* phpGedView: Genealogy Viewer
* Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @package PhpGedView
* @subpackage GoogleMap
* @version $Id: defaultconfig.php 6844 2010-01-25 21:41:45Z fisharebest $
*/
if (!defined('PGV_PHPGEDVIEW')) {
header('HTTP/1.0 403 Forbidden');
exit;
}
// Create GM tables, if not already present
try {
PGV_DB::updateSchema('./modules/googlemap/db_schema/', 'GM_SCHEMA_VERSION', 2);
} catch (PDOException $ex) {
// The schema update scripts should never fail. If they do, there is no clean recovery.
die($ex);
}
// TODO: it will be more efficient to fetch all GM_% settings in a single DB query
$GOOGLEMAP_ENABLED = get_site_setting('GM_ENABLED', '0'); // Enable or disable Googlemap
$GOOGLEMAP_API_KEY = get_site_setting('GM_API_KEY', 'Fill in your key here. Request key from http://www.google.com/apis/maps/'); // Fill in your key here. Request key from http://www.google.com/apis/maps/
$GOOGLEMAP_MAP_TYPE = get_site_setting('GM_MAP_TYPE', 'G_NORMAL_MAP'); // possible values: G_PHYSICAL_MAP, G_NORMAL_MAP, G_SATELLITE_MAP or G_HYBRID_MAP.
$GOOGLEMAP_MIN_ZOOM = get_site_setting('GM_MIN_ZOOM', '2'); // min zoom level
$GOOGLEMAP_MAX_ZOOM = get_site_setting('GM_MAX_ZOOM', '13'); // max zoom level
$GOOGLEMAP_XSIZE = get_site_setting('GM_XSIZE', '600'); // X-size of Google map
$GOOGLEMAP_YSIZE = get_site_setting('GM_YSIZE', '400'); // Y-size of Google map
$GOOGLEMAP_PRECISION_0 = get_site_setting('GM_PRECISION_0', '0'); // Country level
$GOOGLEMAP_PRECISION_1 = get_site_setting('GM_PRECISION_1', '1'); // State level
$GOOGLEMAP_PRECISION_2 = get_site_setting('GM_PRECISION_2', '2'); // City level
$GOOGLEMAP_PRECISION_3 = get_site_setting('GM_PRECISION_3', '3'); // Neighborhood level
$GOOGLEMAP_PRECISION_4 = get_site_setting('GM_PRECISION_4', '4'); // House level
$GOOGLEMAP_PRECISION_5 = get_site_setting('GM_PRECISION_5', '9'); // Max prcision level
$GM_MAX_NOF_LEVELS = get_site_setting('GM_MAX_NOF_LEVELS', '4'); // Max nr of levels to use in Googlemap
$GM_DEFAULT_TOP_VALUE = get_site_setting('GM_DEFAULT_TOP_VALUE', '' ); // Default value, inserted when no location can be found
$GOOGLEMAP_COORD = get_site_setting('GM_COORD', '0'); // Enable or disable Display Map Co-ordinates
//Place Hierarchy
$GOOGLEMAP_PLACE_HIERARCHY=get_site_setting('GM_PLACE_HIERARCHY', '1' ); // Enable or disable Display Map in place herarchy
$GOOGLEMAP_PH_XSIZE =get_site_setting('GM_PH_XSIZE', '500' ); // X-size of Place Hierarchy Google map
$GOOGLEMAP_PH_YSIZE =get_site_setting('GM_PH_YSIZE', '350' ); // Y-size of Place Hierarchy Google map
$GOOGLEMAP_PH_MARKER =get_site_setting('GM_PH_MARKER', 'G_FLAG'); // Possible values: G_FLAG = Flag, G_DEFAULT_ICON = Standard icon
$GM_DISP_SHORT_PLACE =get_site_setting('GM_DISP_SHORT_PLACE', '0'); // Display full place name or only the actual level name
$GM_DISP_COUNT =get_site_setting('GM_DISP_COUNT', '0'); // Display the count of individuals and families connected to the place
$GOOGLEMAP_PH_WHEEL =get_site_setting('GM_PH_WHEEL', '0'); // Use mouse wheel for zooming
$GOOGLEMAP_PH_CONTROLS =get_site_setting('GM_PH_CONTROLS', '1'); // Hide map controls when mouse is out
// Configuration-options per location-level
$GM_MARKER_COLOR [1]=get_site_setting('GM_MARKER_COLOR_1', 'Red' ); // Marker to be used
$GM_MARKER_SIZE [1]=get_site_setting('GM_MARKER_SIZE_1', 'Large'); // 'Small' or 'Large'
$GM_PREFIX [1]=get_site_setting('GM_PREFIX_1', '' ); // Text to be placed in front of the name
$GM_POSTFIX [1]=get_site_setting('GM_POSTFIX_1', '' ); // Text to be placed after the name
$GM_PRE_POST_MODE[1]=get_site_setting('GM_PRE_POST_MODE_1', '0' ); // Prefix/Postfix mode. Possible value are:
// 0 = no pre/postfix
// 1 = Normal name, Prefix, Postfix, Both
// 2 = Normal name, Postfix, Prefxi, Both
// 3 = Prefix, Postfix, Both, Normal name
// 4 = Postfix, Prefix, Both, Normal name
// 5 = Prefix, Postfix, Normal name, Both
// 6 = Postfix, Prefix, Normal name, Both
$GM_MARKER_COLOR [2]=get_site_setting('GM_MARKER_COLOR_2', 'Red' );
$GM_MARKER_SIZE [2]=get_site_setting('GM_MARKER_SIZE_2', 'Large');
$GM_PREFIX [2]=get_site_setting('GM_PREFIX_2', '' );
$GM_POSTFIX [2]=get_site_setting('GM_POSTFIX_2', '' );
$GM_PRE_POST_MODE[2]=get_site_setting('GM_PRE_POST_MODE_2', '0' );
$GM_MARKER_COLOR [3]=get_site_setting('GM_MARKER_COLOR_3', 'Red' );
$GM_MARKER_SIZE [3]=get_site_setting('GM_MARKER_SIZE_3', 'Large');
$GM_PREFIX [3]=get_site_setting('GM_PREFIX_3', '' );
$GM_POSTFIX [3]=get_site_setting('GM_POSTFIX_3', '' );
$GM_PRE_POST_MODE[3]=get_site_setting('GM_PRE_POST_MODE_3', '0' );
$GM_MARKER_COLOR [4]=get_site_setting('GM_MARKER_COLOR_4', 'Red' );
$GM_MARKER_SIZE [4]=get_site_setting('GM_MARKER_SIZE_4', 'Large');
$GM_PREFIX [4]=get_site_setting('GM_PREFIX_4', '' );
$GM_POSTFIX [4]=get_site_setting('GM_POSTFIX_4', '' );
$GM_PRE_POST_MODE[4]=get_site_setting('GM_PRE_POST_MODE_4', '0' );
$GM_MARKER_COLOR [5]=get_site_setting('GM_MARKER_COLOR_5', 'Red' );
$GM_MARKER_SIZE [5]=get_site_setting('GM_MARKER_SIZE_5', 'Large');
$GM_PREFIX [5]=get_site_setting('GM_PREFIX_5', '' );
$GM_POSTFIX [5]=get_site_setting('GM_POSTFIX_5', '' );
$GM_PRE_POST_MODE[5]=get_site_setting('GM_PRE_POST_MODE_5', '0' );
$GM_MARKER_COLOR [6]=get_site_setting('GM_MARKER_COLOR_6', 'Red' );
$GM_MARKER_SIZE [6]=get_site_setting('GM_MARKER_SIZE_6', 'Large');
$GM_PREFIX [6]=get_site_setting('GM_PREFIX_6', '' );
$GM_POSTFIX [6]=get_site_setting('GM_POSTFIX_6', '' );
$GM_PRE_POST_MODE[6]=get_site_setting('GM_PRE_POST_MODE_6', '0' );
$GM_MARKER_COLOR [7]=get_site_setting('GM_MARKER_COLOR_7', 'Red' );
$GM_MARKER_SIZE [7]=get_site_setting('GM_MARKER_SIZE_7', 'Large');
$GM_PREFIX [7]=get_site_setting('GM_PREFIX_7', '' );
$GM_POSTFIX [7]=get_site_setting('GM_POSTFIX_7', '' );
$GM_PRE_POST_MODE[7]=get_site_setting('GM_PRE_POST_MODE_7', '0' );
$GM_MARKER_COLOR [8]=get_site_setting('GM_MARKER_COLOR_8', 'Red' );
$GM_MARKER_SIZE [8]=get_site_setting('GM_MARKER_SIZE_8', 'Large');
$GM_PREFIX [8]=get_site_setting('GM_PREFIX_8', '' );
$GM_POSTFIX [8]=get_site_setting('GM_POSTFIX_8', '' );
$GM_PRE_POST_MODE[8]=get_site_setting('GM_PRE_POST_MODE_8', '0' );
$GM_MARKER_COLOR [9]=get_site_setting('GM_MARKER_COLOR_9', 'Red' );
$GM_MARKER_SIZE [9]=get_site_setting('GM_MARKER_SIZE_9', 'Large');
$GM_PREFIX [9]=get_site_setting('GM_PREFIX_9', '' );
$GM_POSTFIX [9]=get_site_setting('GM_POSTFIX_9', '' );
$GM_PRE_POST_MODE[9]=get_site_setting('GM_PRE_POST_MODE_9', '0' );
?>