Minor tweaks and house cleaning
[estigi.git] / index.php
blob29f251908cac7450cf2070c2ab12d7ca381e39fd
1 <?php
3 /** @file index.php
4 * Index page
5 * This page handles all requests and the basic navigation of your website
6 */
8 define('LIFE_IS_GOOD', 1);
10 global $time;
12 function microtime_float()
14 list($usec, $sec) = explode(" ", microtime());
15 return ((float)$usec + (float)$sec);
18 $time = microtime_float();
20 require_once './includes/bootstrap.inc';
21 boot_turn_me_on();
23 $content = core_who_handles_this();
25 //cases are defined in path.inc
26 switch ($content){
27 case '1':
28 $content = 'Access denied';
29 break;
30 case '2':
31 $content = '404 Not found?';
32 break;
35 //There should be a hook here right before the skin load, specially for the blocks
37 skin_fini($content);
39 boot_let_me_down();