BMLT Root Server
index.php
Go to the documentation of this file.
1 <?php
2 /*
3  This file is part of the Basic Meeting List Toolbox (BMLT).
4 
5  Find out more at: https://bmlt.app
6 
7  BMLT is free software: you can redistribute it and/or modify
8  it under the terms of the MIT License.
9 
10  BMLT is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  MIT License for more details.
14 
15  You should have received a copy of the MIT License along with this code.
16  If not, see <https://opensource.org/licenses/MIT>.
17 */
18 defined('BMLT_EXEC') or die('Cannot Execute Directly'); // Makes sure that this file is in the correct context.
19 
20 $config_file_path = dirname(dirname(dirname(__FILE__))).'/server/config/get-config.php';
21 
22 if (file_exists($config_file_path)) {
23  require_once($config_file_path);
24 } else {
25  die('The Config File Is Missing!');
26 }
27 
28 // These are defaults for some of the newer fields.
29 if (!isset($region_bias) || (null === $region_bias)) {
30  $region_bias = 'us';
31 }
32 
33 if (!isset($banner_text) || (null === $banner_text)) {
34  $banner_text = '';
35 }
36 
39 }
40 
41 // We only invoke the wizard if the configuration has not been done.
42 if (!(
43  isset($dbType) && $dbType
44  && isset($dbName) && $dbName
45  && isset($dbServer) && $dbServer
46  && isset($dbUser) && $dbUser
47  && isset($dbPassword) && $dbPassword
48  && isset($dbPrefix) && $dbPrefix
49  && isset($bmlt_title) && $bmlt_title
50  && isset($min_pw_len) && $min_pw_len
51  && isset($search_spec_map_center) && is_array($search_spec_map_center) && count($search_spec_map_center)
52  && isset($number_of_meetings_for_auto) && $number_of_meetings_for_auto
53  && isset($time_format) && $time_format
54  && isset($change_date_format) && $change_date_format
55  && isset($change_depth_for_meetings) && $change_depth_for_meetings
56  && isset($admin_session_name)
57  && isset($comdef_distance_units) && $comdef_distance_units
58  )
59  ) {
60  if (isset($http_vars['lang_enum']) && $http_vars['lang_enum']) {
61  $lang = $http_vars['lang_enum'];
62  } else {
64  }
65 
66  require_once(dirname(__FILE__).'/installer.php');
67 }
if($handler instanceof c_comdef_admin_ajax_handler)
global $comdef_global_language
The local server language enum (Will default to English)
global $http_vars
Definition: index.php:21
defined('BMLT_EXEC') or define('BMLT_EXEC'
Definition: index.php:3
$config_file_path
Definition: index.php:58