]> git.immae.eu Git - github/wallabag/wallabag.git/blame - index.php
factorisation code
[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
NL
12
13$action = (isset ($_GET['action'])) ? htmlspecialchars($_GET['action']) : '';
263d6c67 14$view = (isset ($_GET['view'])) ? htmlspecialchars($_GET['view']) : 'index';
7eca3552 15$id = (isset ($_GET['id'])) ? htmlspecialchars($_GET['id']) : '';
3c8d80ae 16$url = (isset ($_GET['url'])) ? $_GET['url'] : '';
1a268ba7 17
263d6c67 18action_to_do($action, $id);
19$entries = display_view($view);
5917f419 20
8046748b 21$tpl->assign('title', 'poche, a read it later open source system');
22$tpl->assign('view', $view);
23$tpl->assign('poche_url', get_poche_url());
24$tpl->assign('entries', $entries);
25$tpl->assign('load_all_js', 1);
26$tpl->draw('home');