Exemplo n.º 1
0
$third_param = isset($param[4]) && !empty($param[4]) ? $param[4] : "";
$warning = isset($param[5]) && !empty($param[5]);
include_once 'C:/wamp/www/mathsapp/application/configs/lesClasses.php';
include_once 'C:/wamp/www/mathsapp/application/configs/lesCheminsurls.php';
$cont = new Controller();
if (empty($controller)) {
    $cont = new IndexController();
    $cont->accueilAction();
} else {
    if (strcmp($controller, "index") == 0) {
        $cont = new IndexController();
        if (empty($action)) {
            $cont->accueilAction();
        } else {
            if (strcmp($action, "telechargement") == 0) {
                $cont->telechargementAction();
            }
        }
    } else {
        if (strcmp($controller, "profil") == 0) {
            $cont = new ProfilController();
            if (empty($action)) {
                $cont->indexAction();
            }
        } else {
            if (strcmp($controller, "forum") == 0) {
                $cont = new ForumController();
                if (empty($action)) {
                    $cont->indexAction();
                }
            } else {