X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=adfef71bef24e815cef7eef8152ccd27e5ea2c4a;hb=170a1407fea8b43a62854e115f90fd5cace44f01;hp=d477d699d965cafa945d6c9e22233beecdb94d11;hpb=cf3180f6b8c552bbf7214d1ba72fbf1fc90ef861;p=github%2Fwallabag%2Fwallabag.git diff --git a/index.php b/index.php index d477d699..adfef71b 100755 --- a/index.php +++ b/index.php @@ -1,31 +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'; -$action = (isset ($_REQUEST['action'])) ? htmlentities($_REQUEST['action']) : ''; -$view = (isset ($_GET['view'])) ? htmlentities($_GET['view']) : 'index'; -$id = (isset ($_REQUEST['id'])) ? htmlspecialchars($_REQUEST['id']) : ''; -$url = (isset ($_GET['url'])) ? $_GET['url'] : ''; -$token = (isset ($_POST['token'])) ? $_POST['token'] : ''; +// Start session +Session::$sessionName = 'wallabag'; +Session::init(); -if ($action != '') { - action_to_do($action, $id, $url, $token); -} - -$entries = display_view($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('home'); \ No newline at end of file +// Let's rock ! +$wallabag = new Poche(); +$wallabag->run();