mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
stockage de la vue et du tri en session
This commit is contained in:
parent
643e3037e6
commit
139769aa24
8 changed files with 99 additions and 88 deletions
21
index.php
21
index.php
|
@ -10,22 +10,17 @@
|
|||
|
||||
include dirname(__FILE__).'/inc/config.php';
|
||||
|
||||
$action = (isset ($_REQUEST['action'])) ? htmlentities($_REQUEST['action']) : '';
|
||||
$view = (isset ($_GET['view'])) ? htmlentities($_GET['view']) : 'index';
|
||||
$id = (isset ($_REQUEST['id'])) ? htmlspecialchars($_REQUEST['id']) : '';
|
||||
$url = (isset ($_GET['url'])) ? $_GET['url'] : '';
|
||||
$token = (isset ($_POST['token'])) ? $_POST['token'] : '';
|
||||
|
||||
if ($action != '') {
|
||||
action_to_do($action, $id, $url, $token);
|
||||
}
|
||||
|
||||
$entries = display_view($view);
|
||||
$entries = display_view();
|
||||
|
||||
$tpl->assign('title', 'poche, a read it later open source system');
|
||||
$tpl->assign('view', $view);
|
||||
$tpl->assign('view', $_SESSION['view']);
|
||||
$tpl->assign('poche_url', get_poche_url());
|
||||
$tpl->assign('entries', $entries);
|
||||
$tpl->assign('load_all_js', 1);
|
||||
$tpl->assign('token', $_SESSION['token_poche']);
|
||||
$tpl->draw('home');
|
||||
|
||||
$tpl->draw('head');
|
||||
$tpl->draw('home');
|
||||
$tpl->draw('entries');
|
||||
$tpl->draw('js');
|
||||
$tpl->draw('footer');
|
Loading…
Add table
Add a link
Reference in a new issue