X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=39990d55a7c59292f1a7ba78caa5dcbc146189e3;hb=c4457fba85d4b564bebde844d3176964d4f252b3;hp=995426b456b8b6cdfe33a66c1711a3ce3d452b8f;hpb=e4d2565e05a517641de921c4c19a2c9d1beea2e7;p=github%2Fwallabag%2Fwallabag.git diff --git a/index.php b/index.php old mode 100644 new mode 100755 index 995426b4..39990d55 --- a/index.php +++ b/index.php @@ -1,28 +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 = get_entries($view); +// Start session +Session::$sessionName = 'wallabag'; +Session::init(); -$tpl->assign('title', 'poche, a read it later open source system'); -$tpl->assign('entries', $entries); -$tpl->assign('load_all_js', 1); - -$tpl->draw('head'); -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 +// Let's rock ! +$wallabag = new Poche(); +$wallabag->run(); \ No newline at end of file