]>
Commit | Line | Data |
---|---|---|
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 | 11 | include dirname(__FILE__).'/inc/config.php'; |
1a268ba7 | 12 | |
e4d2565e | 13 | $entries = get_entries($view); |
5917f419 | 14 | |
8046748b | 15 | $tpl->assign('title', 'poche, a read it later open source system'); |
8046748b | 16 | $tpl->assign('entries', $entries); |
17 | $tpl->assign('load_all_js', 1); | |
139769aa | 18 | |
19 | $tpl->draw('head'); | |
e4d2565e | 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'); |