bludit/index.php
2015-05-05 01:00:01 +00:00

33 lines
491 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());