X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=995426b456b8b6cdfe33a66c1711a3ce3d452b8f;hb=98e7d681d1903a24bad5bc6d824b58d0ce12ab24;hp=d0d008ed4799e99c2aba869edb2977f4bfd79e02;hpb=d178419c66fb1950aee7dc8e012c35f12f2a44bc;p=github%2Fwallabag%2Fwallabag.git diff --git a/index.php b/index.php index d0d008ed..995426b4 100644 --- a/index.php +++ b/index.php @@ -10,17 +10,19 @@ include dirname(__FILE__).'/inc/config.php'; -$entries = display_view($view); +$entries = get_entries($view); $tpl->assign('title', 'poche, a read it later open source system'); -$tpl->assign('view', $view); -$tpl->assign('poche_url', get_poche_url()); $tpl->assign('entries', $entries); $tpl->assign('load_all_js', 1); -$tpl->assign('token', $_SESSION['token_poche']); $tpl->draw('head'); -$tpl->draw('home'); -$tpl->draw('entries'); -$tpl->draw('js'); -$tpl->draw('footer'); +if (Session::isLogged()) { + $tpl->draw('home'); + $tpl->draw('entries'); + $tpl->draw('js'); +} +else { + $tpl->draw('login'); +} +$tpl->draw('footer'); \ No newline at end of file