diff --git a/__cms__/cms.php b/__cms__/cms.php index a5ea55b..d167a10 100644 --- a/__cms__/cms.php +++ b/__cms__/cms.php @@ -1,25 +1,18 @@ nouvel_enfant($params["titre"]); - } else if ($action == "supprimer") { - $p->supprimer($params["recursif"]); - } else if ($action == "modifier") { - // TODO : houlà... - } else { - $p->affiche(); - } + public static function cms() { + // TODO : appeller Modules::action($chemin, $action, $paramètres); + + $chemin = Chemin::depuis_url($_SERVER["request_uri"]); // TODO : vérifier nom variables etc. + $noms_params = Modules::liste_paramètres(); + $noms_params[] = "action"; + // récupérer $noms_params dans $_GET, $_POST et $_FILE + $action = $paramètres["action"]; + Modules::action($chemin, $action, $paramètres); } } -?> \ No newline at end of file +?>