Working on new access system...
[estigi.git] / index.php
blobd6792e783da133c22ac9aaeea26b917e13050da4
1 <?php
3 /** @file index.php
4 * Index page
5 * This page handles all requests and the basic navigation of your website
6 */
8 /**
9 * Definition in order to prevent hacking attacks
11 define('LIFE_IS_GOOD', 1);
13 global $time;
15 function microtime_float(){
16 list($usec, $sec) = explode(" ", microtime());
17 return ((float)$usec + (float)$sec);
20 $time = microtime_float();
22 require_once './includes/bootstrap.inc';
23 boot_turn_me_on();
25 $content = core_who_handles_this();
27 //cases are defined in path.inc
28 switch ($content){
29 case '1':
30 $content = 'Access denied';
31 break;
32 case '2':
33 $content = '404 Not found?';
34 break;
37 //There should be a hook here right before the skin load, specially for the blocks
39 skin_fini($content);
41 boot_let_me_down();