aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-18 15:39:34 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-18 15:39:34 +0200
commite4d2565e05a517641de921c4c19a2c9d1beea2e7 (patch)
tree156715bc739b2810368c717f20f03172955c32a1 /index.php
parentb693a19e1c3d4ffcf2f3aaef1d67df4b986e4903 (diff)
downloadwallabag-e4d2565e05a517641de921c4c19a2c9d1beea2e7.tar.gz
wallabag-e4d2565e05a517641de921c4c19a2c9d1beea2e7.tar.zst
wallabag-e4d2565e05a517641de921c4c19a2c9d1beea2e7.zip
#4 - ajout système de connexion (login poche mot de passe poche pour l'instant)
Diffstat (limited to 'index.php')
-rw-r--r--index.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/index.php b/index.php
index d0d008ed..995426b4 100644
--- a/index.php
+++ b/index.php
@@ -10,17 +10,19 @@
10 10
11include dirname(__FILE__).'/inc/config.php'; 11include dirname(__FILE__).'/inc/config.php';
12 12
13$entries = display_view($view); 13$entries = get_entries($view);
14 14
15$tpl->assign('title', 'poche, a read it later open source system'); 15$tpl->assign('title', 'poche, a read it later open source system');
16$tpl->assign('view', $view);
17$tpl->assign('poche_url', get_poche_url());
18$tpl->assign('entries', $entries); 16$tpl->assign('entries', $entries);
19$tpl->assign('load_all_js', 1); 17$tpl->assign('load_all_js', 1);
20$tpl->assign('token', $_SESSION['token_poche']);
21 18
22$tpl->draw('head'); 19$tpl->draw('head');
23$tpl->draw('home'); 20if (Session::isLogged()) {
24$tpl->draw('entries'); 21 $tpl->draw('home');
25$tpl->draw('js'); 22 $tpl->draw('entries');
26$tpl->draw('footer'); 23 $tpl->draw('js');
24}
25else {
26 $tpl->draw('login');
27}
28$tpl->draw('footer'); \ No newline at end of file