aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-16 11:52:25 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-16 11:52:25 +0200
commit139769aa245fd58d032cb009303b0ea2cc4187cd (patch)
tree5a69fec8dedb380e034b318a4fb16e0c664c2545 /index.php
parent643e3037e6e63befb2cec20f7986f14480d4ae4b (diff)
downloadwallabag-139769aa245fd58d032cb009303b0ea2cc4187cd.tar.gz
wallabag-139769aa245fd58d032cb009303b0ea2cc4187cd.tar.zst
wallabag-139769aa245fd58d032cb009303b0ea2cc4187cd.zip
stockage de la vue et du tri en session
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php21
1 files changed, 8 insertions, 13 deletions
diff --git a/index.php b/index.php
index d477d699..f62cf139 100755
--- a/index.php
+++ b/index.php
@@ -10,22 +10,17 @@
10 10
11include dirname(__FILE__).'/inc/config.php'; 11include dirname(__FILE__).'/inc/config.php';
12 12
13$action = (isset ($_REQUEST['action'])) ? htmlentities($_REQUEST['action']) : ''; 13$entries = display_view();
14$view = (isset ($_GET['view'])) ? htmlentities($_GET['view']) : 'index';
15$id = (isset ($_REQUEST['id'])) ? htmlspecialchars($_REQUEST['id']) : '';
16$url = (isset ($_GET['url'])) ? $_GET['url'] : '';
17$token = (isset ($_POST['token'])) ? $_POST['token'] : '';
18
19if ($action != '') {
20 action_to_do($action, $id, $url, $token);
21}
22
23$entries = display_view($view);
24 14
25$tpl->assign('title', 'poche, a read it later open source system'); 15$tpl->assign('title', 'poche, a read it later open source system');
26$tpl->assign('view', $view); 16$tpl->assign('view', $_SESSION['view']);
27$tpl->assign('poche_url', get_poche_url()); 17$tpl->assign('poche_url', get_poche_url());
28$tpl->assign('entries', $entries); 18$tpl->assign('entries', $entries);
29$tpl->assign('load_all_js', 1); 19$tpl->assign('load_all_js', 1);
30$tpl->assign('token', $_SESSION['token_poche']); 20$tpl->assign('token', $_SESSION['token_poche']);
31$tpl->draw('home'); \ No newline at end of file 21
22$tpl->draw('head');
23$tpl->draw('home');
24$tpl->draw('entries');
25$tpl->draw('js');
26$tpl->draw('footer'); \ No newline at end of file