2015-03-08 18:02:59 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// DEBUG:
|
|
|
|
$loadTime = microtime(true);
|
|
|
|
|
2015-05-05 03:00:01 +02:00
|
|
|
// Security constant
|
2015-03-08 18:02:59 +01:00
|
|
|
define('BLUDIT', true);
|
|
|
|
|
2015-05-05 03:00:01 +02:00
|
|
|
// PHP paths
|
|
|
|
define('PATH_ROOT', __DIR__.'/');
|
|
|
|
define('PATH_BOOT', PATH_ROOT.'kernel/boot/');
|
2015-03-08 18:02:59 +01:00
|
|
|
|
2015-05-05 03:00:01 +02:00
|
|
|
// Init
|
|
|
|
require(PATH_BOOT.'init.php');
|
2015-03-08 18:02:59 +01:00
|
|
|
|
2015-05-07 03:00:01 +02:00
|
|
|
|
|
|
|
|
2015-03-27 02:00:01 +01:00
|
|
|
// Admin area
|
|
|
|
if($Url->whereAmI()==='admin')
|
|
|
|
{
|
2015-05-05 03:00:01 +02:00
|
|
|
require(PATH_BOOT.'admin.php');
|
2015-03-27 02:00:01 +01:00
|
|
|
}
|
|
|
|
// Site
|
|
|
|
else
|
|
|
|
{
|
2015-05-05 03:00:01 +02:00
|
|
|
require(PATH_BOOT.'site.php');
|
2015-03-27 02:00:01 +01:00
|
|
|
}
|
2015-03-08 18:02:59 +01:00
|
|
|
|
|
|
|
// DEBUG:
|
2015-05-05 03:00:01 +02:00
|
|
|
// Print all variables/objects
|
|
|
|
//print_r(get_defined_vars());
|
|
|
|
|
|
|
|
//var_dump($_SESSION);
|
|
|
|
//var_dump($Login->fingerPrint());
|