-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
37 lines (31 loc) · 1.14 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
32
33
34
35
36
37
<?php
session_start();
// Save the project root directory as a global constant.
define('ROOT_PATH', __DIR__);
/*
* Create a global constant used to get the filesystem path to the
* application configuration directory.
*/
define('CFG_PATH', realpath(ROOT_PATH.'/application/config'));
/*
* Create a global constant used to get the filesystem path to the
* application public web root directory.
*
* Can be used to handle file uploads for example.
*/
ini_set('upload_max_filesize', '1000M');
ini_set('post_max_size', '1000M');
ini_set('max_input_time', 3000);
ini_set('max_execution_time', 3000);
define('WWW_PATH', realpath(ROOT_PATH.'/application/www'));
require_once 'vendor/autoload.php';
require_once 'library/Configuration.class.php';
require_once 'library/Database.class.php';
require_once 'library/FlashBag.class.php';
require_once 'library/Form.class.php';
require_once 'library/FrontController.class.php';
require_once 'library/MicroKernel.class.php';
require_once 'library/Http.class.php';
require_once 'library/InterceptingFilter.interface.php';
$microKernel = new MicroKernel();
$microKernel->bootstrap()->run(new FrontController());