-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
28 lines (21 loc) · 811 Bytes
/
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
<?php
// The server should keep it's session data for at least 1 hour
ini_set('session.gc_maxlifetime', 3600);
// Start the Session
session_start();
// Defines
define('ROOT_DIR', realpath(dirname(__FILE__)) . '/');
define('APP_DIR', ROOT_DIR . '/example/application/');
// External includes
require(ROOT_DIR . 'system/config.php');
global $config;
$config['module_location'] = APP_DIR . 'modules/';
$config['models_location'] = APP_DIR . 'models/';
$config['product_name'] = 'Shane Lab';
$config['base_url'] = 'https://github.com/shane-lab/'; // Base URL including trailing slash (e.g. http://localhost/)
$config['mail_address'] = '[email protected]'; // Sender mail address
define('PRODUCT_NAME', $config['product_name']);
define('BASE_URL', $config['base_url']);
// Start mvc
Router::route($config);
?>