function timeOut($params)
 {
     $this->view = false;
     $controller = $params[0];
     $action = $params[1];
     $param = $params[2];
     \Glial\Synapse\FactoryController::rootNode($controller, $action, $param);
 }
Exemple #2
0
                    $msg = $_SYSTEM['controller'] . "/" . $_SYSTEM['action'] . "<br />" . __("Your rank to this website is not enough to acess to this page");
                }
                set_flash("error", __("Acess denied"), __("Acess denied") . " : " . $msg);
                header("location: " . LINK . $url);
                exit;
            }
        }
    } else {
        set_flash("error", __("Error 404"), __("Page not found") . " : " . __("Sorry, the page you requested : \"" . $_SYSTEM['controller'] . "/" . $_SYSTEM['action'] . "\"is not on this server. Please contact us if you have questions or concerns"));
        header("location: " . LINK . "Error/_404");
        exit;
    }
}
DEBUG ? $_DEBUG->save("ACL loaded") : "";
//demarre l'application
FactoryController::rootNode($_SYSTEM['controller'], $_SYSTEM['action'], $_SYSTEM['param']);
$i = 10;
DEBUG ? $_DEBUG->save("Layout loaded") : "";
if (DEBUG && !IS_CLI && !IS_AJAX) {
    //ENVIRONEMENT
    $execution_time = microtime(true) - TIME_START;
    echo "<hr />";
    echo "Temps d'exéution de la page : " . round($execution_time, 5) . " seconds";
    echo "<br />Nombre de requette : " . $_DB->sql(DB_DEFAULT)->get_count_query();
    $file_list = get_included_files();
    echo "<br />Nombre de fichier loaded : <b>" . count($file_list) . "</b><br />";
    debug($file_list);
    if ($_DB->sql(DB_DEFAULT)->get_count_query() != 0) {
        echo "<table class=\"debug\" style=\"width:100%\">";
        echo "<tr><th>#</th><th>File</th><th>Line</th><th>Query</th><th>Rows</th><th>Last inserted id</th><th>Time</th></tr>";
        $i = 0;