Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset ($_SERVER [“PHP_AUTH_USER”]))
- {
- more $user = $_SERVER [“PHP_AUTH_USER”];
- $pass = $_SERVER [“PHP_AUTH_PW”];
- }
- elseif (isset ($_GET [“auth”]))
- {
- if (preg_match (“/Basic \ s+ (. *) $/i”, $_GET [“auth”], $auth))
- {
- cunning (more $user, $pass) = explode (“: ”, base64_decode ($auth [1]));
- }
- }
- if (! isset (more $user) || ! ($sessionid = $GLOBALS [“egw”] - >session->create (more $user, $pass, “text”)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement