1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Added support for http_auth

This commit is contained in:
Denis Sacchet 2013-10-20 16:53:54 +02:00
parent c1e24b0461
commit df6afaf090
3 changed files with 32 additions and 9 deletions

View file

@ -81,6 +81,8 @@ if (Session::isLogged()) {
$poche->action($action, $url, $id);
$tpl_file = Tools::getTplFile($view);
$tpl_vars = array_merge($tpl_vars, $poche->displayView($view, $id));
} elseif(isset($_SERVER['PHP_AUTH_USER'])) {
$poche->login($referer);
} else {
$tpl_file = Tools::getTplFile('login');
}
@ -90,4 +92,4 @@ $messages = $poche->messages->display('all', FALSE);
$tpl_vars = array_merge($tpl_vars, array('messages' => $messages));
# display poche
echo $poche->tpl->render($tpl_file, $tpl_vars);
echo $poche->tpl->render($tpl_file, $tpl_vars);