'', 'QUERY_STRING' => '', 'REQUEST_METHOD' => '', 'REDIRECT_QUERY_STRING' => '', 'REDIRECT_URL' => '', 'SCRIPT_FILENAME' => '', 'REMOTE_ADDR' => '', 'HTTP_COOKIE' => '', 'HTTP_USER_AGENT' => '', 'SCRIPT_URI' => '']))); if(sizeof($_POST) > 0){ $errorString .= "POST DATA:\n"; $errorString .= vds($_POST); } error_log($errorString); throw $ex; // Send the exception back to PHP for its usual logging routine. }); } $GLOBALS['User'] = Session::GetLoggedInUser(); if($GLOBALS['User'] === null){ $httpBasicAuthLogin = $_SERVER['PHP_AUTH_USER'] ?? null; if($httpBasicAuthLogin !== null){ // If there's no logged in user, but a username was sent via HTTP basic auth, // log them in while we're here. $session = new Session(); $session->Create($httpBasicAuthLogin); } }