mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
added ability to auth based on http auth
This commit is contained in:
parent
931097377a
commit
5292fe0456
@ -95,7 +95,13 @@
|
||||
} else {
|
||||
$phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/index.php", "cd=yes"));
|
||||
}
|
||||
|
||||
}elseif (isset($PHP_AUTH_USER)) {
|
||||
$sessionid = $phpgw->session->create($PHP_AUTH_USER,$PHP_AUTH_PW);
|
||||
if (!isset($sessionid) || !$sessionid) {
|
||||
$phpgw->redirect($phpgw_info["server"]["webserver_url"]."/login.php?cd=5");
|
||||
} else {
|
||||
$phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/index.php", "cd=yes"));
|
||||
}
|
||||
} else {
|
||||
// !!! DONT CHANGE THESE LINES !!!
|
||||
// If there is something wrong with this code TELL ME!
|
||||
|
Loading…
Reference in New Issue
Block a user