]> git.immae.eu Git - github/wallabag/wallabag.git/blob - index.php
995426b456b8b6cdfe33a66c1711a3ce3d452b8f
[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 $entries = get_entries($view);
14
15 $tpl->assign('title', 'poche, a read it later open source system');
16 $tpl->assign('entries', $entries);
17 $tpl->assign('load_all_js', 1);
18
19 $tpl->draw('head');
20 if (Session::isLogged()) {
21 $tpl->draw('home');
22 $tpl->draw('entries');
23 $tpl->draw('js');
24 }
25 else {
26 $tpl->draw('login');
27 }
28 $tpl->draw('footer');