X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=adfef71bef24e815cef7eef8152ccd27e5ea2c4a;hb=ca056e7fd1e2bcc8390aabdc6b4fcb84aeb0d302;hp=d0d008ed4799e99c2aba869edb2977f4bfd79e02;hpb=d178419c66fb1950aee7dc8e012c35f12f2a44bc;p=github%2Fwallabag%2Fwallabag.git diff --git a/index.php b/index.php old mode 100644 new mode 100755 index d0d008ed..adfef71b --- a/index.php +++ b/index.php @@ -1,26 +1,22 @@ + * @category wallabag + * @author Nicolas Lœuillet * @copyright 2013 - * @license http://www.wtfpl.net/ see COPYING file + * @license http://opensource.org/licenses/MIT see COPYING file */ -include dirname(__FILE__).'/inc/config.php'; +define ('POCHE', '1.8.1'); +require 'check_essentials.php'; +require 'check_setup.php'; +require_once 'inc/poche/global.inc.php'; -$entries = display_view($view); +// Start session +Session::$sessionName = 'wallabag'; +Session::init(); -$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'); +// Let's rock ! +$wallabag = new Poche(); +$wallabag->run();