X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=39990d55a7c59292f1a7ba78caa5dcbc146189e3;hb=c4457fba85d4b564bebde844d3176964d4f252b3;hp=c303f8e368a2c7176ae6587de410ae87446d7927;hpb=9fee2e7266a269a8795b96b972cdc62bbcb3329b;p=github%2Fwallabag%2Fwallabag.git diff --git a/index.php b/index.php index c303f8e3..39990d55 100755 --- 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.0'); +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'); \ No newline at end of file +// Let's rock ! +$wallabag = new Poche(); +$wallabag->run(); \ No newline at end of file