-
-# Démarrage session et initialisation du jeton de sécurité
-session_start();
-
-if (!isset($_SESSION['token_poche'])) {
- $token = md5(uniqid(rand(), TRUE));
- $_SESSION['token_poche'] = $token;
- $_SESSION['token_time_poche'] = time();
-}
-
-# Traitement des paramètres et déclenchement des actions
-$action = (isset ($_REQUEST['action'])) ? htmlentities($_REQUEST['action']) : '';
-$_SESSION['view'] = (isset ($_GET['view'])) ? htmlentities($_GET['view']) : 'index';
-$_SESSION['sort'] = (isset ($_REQUEST['sort'])) ? htmlentities($_REQUEST['sort']) : 'id';
-$id = (isset ($_REQUEST['id'])) ? htmlspecialchars($_REQUEST['id']) : '';
-$url = (isset ($_GET['url'])) ? $_GET['url'] : '';
-$token = (isset ($_REQUEST['token'])) ? $_REQUEST['token'] : '';
-
-if ($action != '') {
- action_to_do($action, $id, $url, $token);
-}
\ No newline at end of file
+$tpl->assign('msg', $msg);
\ No newline at end of file