bludit/index.php
2015-05-14 22:07:45 +00:00

49 lines
797 B
PHP

<?php
/*
* Bludit
* http://www.bludit.com
* Author Diego Najar
* All Bludit code is released under the GNU General Public License.
*/
// Check installation
if( !file_exists('content/databases/site.php') )
{
header('Location:./install.php');
exit('<a href="./install.php">First, install Bludit</a>');
}
// 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());