|
|
|
@ -15,7 +15,7 @@ class FrontControleur
|
|
|
|
|
global $twig;
|
|
|
|
|
$router = new AltoRouter();
|
|
|
|
|
$router->setBasePath('~mapoint2/SAE/Php_RSS/fluxRSS/');
|
|
|
|
|
$router->map('GET', '/[a:action]?', 'UserControleur');
|
|
|
|
|
$router->map('GET', '/', 'AdminControleur');
|
|
|
|
|
$router->map('GET|POST','/user/[a:action]?','UserControleur');
|
|
|
|
|
$router->map('GET|POST','/admin/[a:action]?','AdminControleur');
|
|
|
|
|
|
|
|
|
@ -31,7 +31,7 @@ class FrontControleur
|
|
|
|
|
try {
|
|
|
|
|
if($controller == "AdminControleur"){
|
|
|
|
|
if (!AdminModel::isAdmin()){
|
|
|
|
|
$action = "connection";
|
|
|
|
|
//$action = "connection";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$controller = '\\controleur\\' . $controller;
|
|
|
|
|