X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=d0d008ed4799e99c2aba869edb2977f4bfd79e02;hb=cb1348bc5c514e98595ccc3b050054ce14ca8e8f;hp=d477d699d965cafa945d6c9e22233beecdb94d11;hpb=cf3180f6b8c552bbf7214d1ba72fbf1fc90ef861;p=github%2Fwallabag%2Fwallabag.git diff --git a/index.php b/index.php old mode 100755 new mode 100644 index d477d699..d0d008ed --- a/index.php +++ b/index.php @@ -10,16 +10,6 @@ include dirname(__FILE__).'/inc/config.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'] : ''; - -if ($action != '') { - action_to_do($action, $id, $url, $token); -} - $entries = display_view($view); $tpl->assign('title', 'poche, a read it later open source system'); @@ -28,4 +18,9 @@ $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 + +$tpl->draw('head'); +$tpl->draw('home'); +$tpl->draw('entries'); +$tpl->draw('js'); +$tpl->draw('footer');