diff options
author | Denis Sacchet <denis@sacchet.fr> | 2013-10-20 16:53:54 +0200 |
---|---|---|
committer | Denis Sacchet <denis@sacchet.fr> | 2013-10-20 16:53:54 +0200 |
commit | df6afaf0909506a334ef2b8c6f69770cd9890e0d (patch) | |
tree | a537218ae6252793e5db4bb4d63aa639752fba0f /index.php | |
parent | c1e24b0461111affb121f5a1bc9d42acf94caf93 (diff) | |
download | wallabag-df6afaf0909506a334ef2b8c6f69770cd9890e0d.tar.gz wallabag-df6afaf0909506a334ef2b8c6f69770cd9890e0d.tar.zst wallabag-df6afaf0909506a334ef2b8c6f69770cd9890e0d.zip |
Added support for http_auth
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -81,6 +81,8 @@ if (Session::isLogged()) { | |||
81 | $poche->action($action, $url, $id); | 81 | $poche->action($action, $url, $id); |
82 | $tpl_file = Tools::getTplFile($view); | 82 | $tpl_file = Tools::getTplFile($view); |
83 | $tpl_vars = array_merge($tpl_vars, $poche->displayView($view, $id)); | 83 | $tpl_vars = array_merge($tpl_vars, $poche->displayView($view, $id)); |
84 | } elseif(isset($_SERVER['PHP_AUTH_USER'])) { | ||
85 | $poche->login($referer); | ||
84 | } else { | 86 | } else { |
85 | $tpl_file = Tools::getTplFile('login'); | 87 | $tpl_file = Tools::getTplFile('login'); |
86 | } | 88 | } |
@@ -90,4 +92,4 @@ $messages = $poche->messages->display('all', FALSE); | |||
90 | $tpl_vars = array_merge($tpl_vars, array('messages' => $messages)); | 92 | $tpl_vars = array_merge($tpl_vars, array('messages' => $messages)); |
91 | 93 | ||
92 | # display poche | 94 | # display poche |
93 | echo $poche->tpl->render($tpl_file, $tpl_vars); \ No newline at end of file | 95 | echo $poche->tpl->render($tpl_file, $tpl_vars); |