35 lines
493 B
PHP
35 lines
493 B
PHP
<?php
|
|
|
|
// DEBUG:
|
|
$loadTime = microtime(true);
|
|
|
|
// Security constant
|
|
define('BLUDIT', true);
|
|
|
|
// PHP paths
|
|
define('PATH_ROOT', __DIR__.'/');
|
|
define('PATH_BOOT', PATH_ROOT.'kernel/boot/');
|
|
|
|
// Init
|
|
require(PATH_BOOT.'init.php');
|
|
|
|
|
|
|
|
// Admin area
|
|
if($Url->whereAmI()==='admin')
|
|
{
|
|
require(PATH_BOOT.'admin.php');
|
|
}
|
|
// Site
|
|
else
|
|
{
|
|
require(PATH_BOOT.'site.php');
|
|
}
|
|
|
|
// DEBUG:
|
|
// Print all variables/objects
|
|
//print_r(get_defined_vars());
|
|
|
|
//var_dump($_SESSION);
|
|
//var_dump($Login->fingerPrint());
|