2013-04-03 13:14:01 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* poche, a read it later open source system
|
|
|
|
*
|
|
|
|
* @category poche
|
2013-04-13 09:08:31 +00:00
|
|
|
* @author Nicolas Lœuillet <support@inthepoche.com>
|
2013-04-03 13:14:01 +00:00
|
|
|
* @copyright 2013
|
|
|
|
* @license http://www.wtfpl.net/ see COPYING file
|
|
|
|
*/
|
|
|
|
|
2013-04-09 13:18:39 +00:00
|
|
|
include dirname(__FILE__).'/inc/config.php';
|
2013-04-03 13:14:01 +00:00
|
|
|
|
2013-04-18 13:39:34 +00:00
|
|
|
$entries = get_entries($view);
|
2013-04-04 17:51:24 +00:00
|
|
|
|
2013-04-15 07:38:41 +00:00
|
|
|
$tpl->assign('title', 'poche, a read it later open source system');
|
|
|
|
$tpl->assign('entries', $entries);
|
|
|
|
$tpl->assign('load_all_js', 1);
|
2013-04-16 09:52:25 +00:00
|
|
|
|
|
|
|
$tpl->draw('head');
|
2013-04-18 13:39:34 +00:00
|
|
|
if (Session::isLogged()) {
|
|
|
|
$tpl->draw('home');
|
|
|
|
$tpl->draw('entries');
|
|
|
|
$tpl->draw('js');
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$tpl->draw('login');
|
|
|
|
}
|
|
|
|
$tpl->draw('footer');
|