BMLT Basic Standalone Satellite
/home/runner/work/bmlt-basic/bmlt-basic/config-bmlt-basic.inc.php
Go to the documentation of this file.
1 <?php
2 
3 /****************************************************************************************/
4 
5 /**
6 * \file config-bmlt-basic.inc.php *
7 * *
8 * \brief This file contains the basic configuration directives for the standalone client.*
9 * \version 3.10.0 *
10 * *
11 * This file comes with the sample set for the Greater New York Region BMLT Server, which *
12 * is run by the same people that designed the BMLT, so it can be considered "Home Field." *
13 * *
14 * This file is part of the Basic Meeting List Toolbox (BMLT). *
15 * *
16 * Find out more at: http://bmlt.app *
17 * *
18 * BMLT is free software: you can redistribute it and/or modify *
19 * it under the terms of the GNU General Public License as published by *
20 * the Free Software Foundation, either version 3 of the License, or *
21 * (at your option) any later version. *
22 * *
23 * BMLT is distributed in the hope that it will be useful, *
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
26 * GNU General Public License for more details. *
27 * *
28 * You should have received a copy of the GNU General Public License *
29 * along with this code. If not, see <http://www.gnu.org/licenses/>. *
30 ********************************************************************************************/
31 
32 /*************************************************************************************************************************************************************
33 *############################################################# DON'T CHANGE BELOW THIS LINE #################################################################*
34 *VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV*
35 *************************************************************************************************************************************************************/
36 
37 global $bmlt_basic_configuration; ///< These are used by the bmlt_basic class. Don't mess with them.
38 global $bmlt_basic_configuration_index;
39 
40 $bmlt_basic_configuration = array(); ///< The configuration will be held in an array of associative arrays.
41 $bmlt_basic_configuration_index = 0;
42 
43 global $bmlt_localization; ///< Use this to control the localization.
44 
45 /*************************************************************************************************************************************************************
46 *^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*
47 *############################################################# DON'T CHANGE ABOVE THIS LINE #################################################################*
48 *************************************************************************************************************************************************************/
49 
50 $bmlt_localization = 'en'; ///< This is the native language of the client. It needs to be one of the supported languages. You can change it.
51 
52 $bmlt_basic_configuration[$bmlt_basic_configuration_index] = array ( // Leave this line alone.
53 
54 /*************************************************************************************************************************************************************
55 *################################################################# CHANGE BELOW THIS LINE ###################################################################*
56 *VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV*
57 *************************************************************************************************************************************************************/
58 
59 
60 /*************************************************************************************************************************************************************
61 * *
62 * Make sure that each of the lines below ends with a comma (,). The script will fail, otherwise. *
63 * *
64 **************************************************************************************************************************************************************
65 * SETTINGS *
66 * *
67 * These control the settings used by the displayed shortcodes. It is possible to have more than one setting, but that is beyond the scope of this simple *
68 * example. *
69 **************************************************************************************************************************************************************
70 * SETTING NAME (Don't Change) SETTING VALUE (You can change these) *
71 *************************************************************************************************************************************************************/
72 
73  /********************************************************************************************************************************************************/
74  /** This is the root server URL. */
75  /** This affects all shortcodes. */
76  /** The URL to put in here is displayed at the top of the root server main screen. Copy that, and add it here. */
77  /********************************************************************************************************************************************************/
78 
79  'root_server' => 'https://bmlt.magshare.net/stable/main_server',
80 
81  /********************************************************************************************************************************************************/
82  /** This tells the map in the '[[BMLT]]', '[[BMLT_MOBILE]]' and '[[BMLT_MAP]]' shortcodes where to set the map when the satellite is initialized. */
83  /********************************************************************************************************************************************************/
84 
85  'map_center_latitude' => 40.780281,
86  'map_center_longitude' => -73.965497,
87  'map_zoom' => 12,
88 
89  /********************************************************************************************************************************************************/
90  /** This tells the map in the '[[BMLT]]', '[[BMLT_MOBILE]]' and '[[BMLT_MAP]]' what Geographic Region to assume as a search area. */
91  /********************************************************************************************************************************************************/
92 
93  'region_bias' => 'us',
94 
95  /********************************************************************************************************************************************************/
96  /** This tells the map in the '[[BMLT]]', '[[BMLT_MOBILE]]' and '[[BMLT_MAP]]' what Google API Key to use. */
97  /********************************************************************************************************************************************************/
98 
99  'google_api_key' => '',
100 
101  /********************************************************************************************************************************************************/
102  /** This controls which view is displayed when the satellite first shows up. This only affects the '[[BMLT]]' shortcode. */
103  /** Can be 'map', 'text', 'advanced_map' or 'advanced_text' */
104  /********************************************************************************************************************************************************/
105 
106  'bmlt_initial_view' => 'map',
107 
108  /********************************************************************************************************************************************************/
109  /** In the More Options ('[[BMLT]]') map display, the popup can show a radius. This controls the units used for that radius. */
110  /** The '[[BMLT_MAP]]' and '[[BMLT_MOBILE]]' displays also shows distances, and this affects the units used for those. */
111  /** Can be 'mi' or 'km'. */
112  /********************************************************************************************************************************************************/
113 
114  'distance_units' => 'mi',
115 
116  /********************************************************************************************************************************************************/
117  /** These affect how a couple of basic services appear. The first one is the "location" checkbox. The other controls the three "quick search" buttons. */
118  /** These only affect the '[[BMLT]]' shortcode. */
119  /********************************************************************************************************************************************************/
120 
121  'bmlt_location_checked' => 0, /* Set this to 1 if you want the "This is a Location or Postcode" box to be checked on by default. */
122  'bmlt_location_services' => 0, /* Set this to 1 if you want the location ("Find Near Me") services only available for mobile devices. */
123 
124  /********************************************************************************************************************************************************/
125  /** This selects the styling theme to be used for display. If you create your own, then set the directory name for that here. */
126  /** This affects the '[[BMLT]]', '[[BMLT_MOBILE]]' and '[[BMLT_MAP]]' shortcodes. */
127  /** Can be 'default', 'BlueAndRed', 'BlueAndWhite', 'GNYR', 'GreenAndGold' or 'GreyAndMaroon'. */
128  /********************************************************************************************************************************************************/
129 
130  'theme' => 'default',
131 
132  /********************************************************************************************************************************************************/
133  /** These are optional. Most folks will leave them at these values. They are used by the '[[BMLT]]', '[[BMLT_MOBILE]]' and '[[BMLT_MAP]]' shortcodes. */
134  /********************************************************************************************************************************************************/
135 
136  'grace_period' => 15, /* How many minutes are allowed to go by before a meeting is considered "too late." */
137  'time_offset' => 0, /* Generally left at 0 hours. If the server has a different time offset from this, indicate it here. */
138  'military_time' => 0, /* This is 1 if you want military (24-hour) time. */
139  'startWeekday' => 1, /* This is 1-7, as the start weekday of each week (1 = Sunday, 7 = Saturday) */
140  'lang' => 'en', /* This is the language code for individual localization. */
141  'default_geo_width' => '-10', /* The default auto-radius value. */
142 
143 /*************************************************************************************************************************************************************
144 *^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*
145 *################################################################ CHANGE ABOVE THIS LINE ####################################################################*
146 *************************************************************************************************************************************************************/
147 
148 /*************************************************************************************************************************************************************
149 *############################################################# DON'T CHANGE BELOW THIS LINE #################################################################*
150 *VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV*
151 *************************************************************************************************************************************************************/
152 
153  /// This is used internally. Leave it alone. It is not supposed to end with a comma.
154 
155  'id' => $bmlt_basic_configuration_index + 1 /* Don't mess with this one. */
156 
157 );
158 
159 $bmlt_basic_configuration_index++; // Leave this alone, too.
160 
161 /*************************************************************************************************************************************************************
162 *^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*
163 *############################################################# DON'T CHANGE ABOVE THIS LINE #################################################################*
164 *************************************************************************************************************************************************************/
global $bmlt_basic_configuration
These are used by the bmlt_basic class. Don't mess with them.
global $bmlt_localization
Use this to control the localization.