trying to add logou abiliyt when using http auth

This commit is contained in:
seek3r 2000-12-15 07:55:39 +00:00
parent e9fcea57b9
commit 806f94b4eb

View File

@ -25,6 +25,14 @@
} }
*/ */
/* This is not working yet because I need to figure out a way to clear the $cd =1
if(isset($PHP_AUTH_USER) && $cd == "1") {
Header("HTTP/1.0 401 Unauthorized");
Header("WWW-Authenticate: Basic realm=\"phpGroupWare\"");
echo "You have to re-authentificate yourself \n";
exit;
}
*/
$tmpl = new Template($phpgw_info["server"]["template_dir"]); $tmpl = new Template($phpgw_info["server"]["template_dir"]);
if (! $deny_login && ! $phpgw_info["server"]["show_domain_selectbox"]) { if (! $deny_login && ! $phpgw_info["server"]["show_domain_selectbox"]) {
@ -84,7 +92,6 @@
deny_login(); deny_login();
} }
if (isset($PHP_AUTH_USER)) { if (isset($PHP_AUTH_USER)) {
$submit = True; $submit = True;
$login = $PHP_AUTH_USER; $login = $PHP_AUTH_USER;