-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
36 lines (28 loc) · 846 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
29
30
31
32
33
34
35
36
<?php
/**
* SocietasPro main entry point
*
* @author Chris Worfolk <[email protected]>
* @package SocietasPro
* @subpackage Core
*/
use Framework\Http\FrontController;
$configPath = "personalisation/config.php";
if (!file_exists($configPath)) {
echo("Unable to locate your config.php file. Please create this before continuing.");
exit(1);
}
require($configPath);
require("application/Framework/Core/Autoloader.php");
spl_autoload_register("\Framework\Core\Autoloader::load");
// include function libraries
require("application/Functions/General.php");
require("application/Functions/Strings.php");
// include Doctrine setup
require("vendors/Doctrine/ORM/Tools/Setup.php");
// set root directory
define("ROOT_DIR", "./");
// create a front controller
$front = FrontController::getInstance();
// execute URL
$front->execute();