]> git.immae.eu Git - github/wallabag/wallabag.git/blob - index.php
1cb32f58ca9ca5358abecafb21ab4f5da9ed364a
[github/wallabag/wallabag.git] / index.php
1 <?php
2 /**
3 * poche, a read it later open source system
4 *
5 * @category poche
6 * @author Nicolas LÅ“uillet <support@inthepoche.com>
7 * @copyright 2013
8 * @license http://www.wtfpl.net/ see COPYING file
9 */
10
11 include dirname(__FILE__).'/inc/config.php';
12
13 $action = (isset ($_GET['action'])) ? htmlspecialchars($_GET['action']) : '';
14 $view = (isset ($_GET['view'])) ? htmlspecialchars($_GET['view']) : 'index';
15 $id = (isset ($_GET['id'])) ? htmlspecialchars($_GET['id']) : '';
16 $url = (isset ($_GET['url'])) ? $_GET['url'] : '';
17
18 action_to_do($action, $id);
19 $entries = display_view($view);
20
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');