cvs: pearweb /public_html logout.php
| From: | Stig Bakken | Date: | Tue, 07 Aug 2001 21:17:56 +0000 |
| Subject: | cvs: pearweb /public_html logout.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-435@lists.php.net to get a copy of this message | ||
ssb Tue Aug 7 17:17:56 2001 EDT
Modified files:
/pearweb/public_html logout.php
Log:
* more helpful?
Index: pearweb/public_html/logout.php
diff -u pearweb/public_html/logout.php:1.2 pearweb/public_html/logout.php:1.3
--- pearweb/public_html/logout.php:1.2 Thu Apr 19 07:45:50 2001
+++ pearweb/public_html/logout.php Tue Aug 7 17:17:56 2001
@@ -1,9 +1,17 @@
<?php
-Header("HTTP/1.0 401 Unauthorized");
-Header("WWW-authenticate: basic realm=\"PEAR user\"");
-Header("Refresh: 1; url=\"./\"");
-
-auth_reject(PEAR_AUTH_REALM, "Logging out");
+if (isset($showmsg)) {
+ $delay = 3;
+ Header("Refresh: $delay; url=\"$PHP_SELF\"");
+ response_header("Logging Out...");
+ report_error("Press 'Cancel' when presented a new login box or ".
+ "one saying 'authorization failed, retry?'<br />");
+ response_footer();
+} else {
+ Header("HTTP/1.0 401 Unauthorized");
+ Header("WWW-authenticate: basic realm=\"PEAR user\"");
+ Header("Refresh: 1; url=\"./\"");
+ auth_reject(PEAR_AUTH_REALM, "Logging out");
+}
?>