aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
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