]> git.immae.eu Git - github/wallabag/wallabag.git/blame - index.php
gestion de la fin de session #41
[github/wallabag/wallabag.git] / index.php
CommitLineData
1a268ba7
NL
1<?php
2/**
3 * poche, a read it later open source system
4 *
5 * @category poche
421b65eb 6 * @author Nicolas Lœuillet <support@inthepoche.com>
1a268ba7
NL
7 * @copyright 2013
8 * @license http://www.wtfpl.net/ see COPYING file
9 */
10
c594aedf 11include dirname(__FILE__).'/inc/config.php';
1a268ba7 12
cf3180f6 13$action = (isset ($_REQUEST['action'])) ? htmlentities($_REQUEST['action']) : '';
14$view = (isset ($_GET['view'])) ? htmlentities($_GET['view']) : 'index';
15$id = (isset ($_REQUEST['id'])) ? htmlspecialchars($_REQUEST['id']) : '';
3c8d80ae 16$url = (isset ($_GET['url'])) ? $_GET['url'] : '';
cf3180f6 17$token = (isset ($_POST['token'])) ? $_POST['token'] : '';
18
19if ($action != '') {
20 action_to_do($action, $id, $url, $token);
21}
1a268ba7 22
263d6c67 23$entries = display_view($view);
5917f419 24
8046748b 25$tpl->assign('title', 'poche, a read it later open source system');
26$tpl->assign('view', $view);
27$tpl->assign('poche_url', get_poche_url());
28$tpl->assign('entries', $entries);
29$tpl->assign('load_all_js', 1);
cf3180f6 30$tpl->assign('token', $_SESSION['token_poche']);
8046748b 31$tpl->draw('home');