Fixed #13 - tri par date / tri par titre

This commit is contained in:
nicosomb
2013-04-16 12:58:03 +02:00
parent 139769aa24
commit 9fee2e7266
9 changed files with 42 additions and 13 deletions

View File

@ -35,8 +35,8 @@ if (!isset($_SESSION['token_poche'])) {
}
# Traitement des paramètres et déclenchement des actions
$view = (isset ($_REQUEST['view'])) ? htmlentities($_REQUEST['view']) : 'index';
$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'] : '';