- if(isset($PHP_AUTH_USER) || isset($PHP_AUTH_PW)) {
- Header('WWW-Authenticate: Basic realm="'.$realm.'"');
- Header('HTTP/1.0 401 Unauthorized');
- } else {
- $location=$this->location;
- if($_GET['logout'] != '') $location = $_GET['logout'];
- if(trim($location) != '401') Header('Location: '.$location);
- die("$this->cbanner<title>401 - Log out successfull</title>\n<h1>401 - Log out successfull</h1>\n<a href=\"?\">Continue...</a>\n$this->hbanner");
- }