2010-moteur-site-simple/__cms__/code/cms/cms.php

23 lines
657 B
PHP

<?php
error_reporting(E_ALL | E_STRICT);
require_once(dirname(__FILE__) . "/configuration.php");
require_once(dirname(__FILE__) . "/include_tous.php");
class CMS {
public static function page($chemin_str) {
// TODO : appeller Modules::action($chemin, $action, $paramètres);
$chemin = new Chemin($chemin_str);
$noms_params = Modules::get_module($chemin);
$noms_params["get_post"][] = "action";
$paramètres = array("action" => "vue");
// récupérer $noms_params dans $_GET, $_POST et $_FILE ==> $paramètres
$action = $paramètres["action"];
Modules::action($chemin, $action, $paramètres);
echo "OK.";
}
}
?>