forked from extern/egroupware
added ability to auth based on http auth
This commit is contained in:
parent
931097377a
commit
5292fe0456
@ -95,7 +95,13 @@
|
|||||||
} else {
|
} else {
|
||||||
$phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/index.php", "cd=yes"));
|
$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 {
|
} else {
|
||||||
// !!! DONT CHANGE THESE LINES !!!
|
// !!! DONT CHANGE THESE LINES !!!
|
||||||
// If there is something wrong with this code TELL ME!
|
// If there is something wrong with this code TELL ME!
|
||||||
|
Loading…
Reference in New Issue
Block a user