Advertisement
Guest User

Untitled

a guest
May 4th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. -> SUCHE (um Zeile 28 rum):
  2. if (!isset($_SERVER['PHP_AUTH_USER']) ||
  3. !($sessionid = $GLOBALS['egw']->session->create($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'],'text')))
  4.  
  5. -> ERSETZE durch:
  6. if (isset($_SERVER['PHP_AUTH_USER']))
  7. {
  8. $user = $_SERVER['PHP_AUTH_USER'];
  9. $pass = $_SERVER['PHP_AUTH_PW'];
  10. }
  11. elseif(isset($_GET['auth']))
  12. {
  13. if (preg_match('/Basic\s+(.*)$/i', $_GET['auth'], $auth))
  14. {
  15. list($user,$pass) = explode(':', base64_decode($auth[1]));
  16. }
  17. }
  18. if (!isset($user) || !($sessionid = $GLOBALS['egw']->session->create($user,$pass,'text')))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement