-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
31 lines (26 loc) · 1.02 KB
/
index.php
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
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
set_include_path('./php/:'.get_include_path());
require_once('libraries/eventhandler.php');
require_once('libraries/geographyhandler.php');
require_once('libraries/dbhandler.php');
require_once('libraries/userhandler.php');
require_once('libraries/tools.php');
require_once('libraries/htmlhandler.php');
require_once('libraries/locationhandler.php');
require_once('libraries/login.php');
require_once('libraries/processing.php');
define ('_SERVER_DIR', getcwd());
define ('_URL_PATH', $_SERVER['SERVER_NAME'].trim($_SERVER['REQUEST_URI'], 'index.php'));
define ('_INI_DB_CONFIG_FILE', _SERVER_DIR."/ini/db_config.ini" );
define ('_INI_GEO_KEYS_CONFIG', _SERVER_DIR."/ini/geoloc_keys.ini");
/* Uncomment the line below for COMPOSER using */
define ('_COMPOSER_FLAG', false);
//define ('_COMPOSER_FLAG', true);
if (_COMPOSER_FLAG == true) {
require_once __DIR__.'/vendor/autoload.php';
}
/** MAKE SURE YOU HAVE INSTALLED WILLDURAND/GEOCODER LIBRARY **/
$login = new Login();
?>