More fixes related to bug #18102

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@87474 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2002-07-02 17:27:25 +00:00
parent bd66853168
commit d3d521db0c

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.25 $ -->
<!-- $Revision: 1.26 $ -->
<chapter id="features.http-auth">
<title>HTTP authentication with PHP</title>
@ -104,15 +104,15 @@
exit;
}
if (!isset($_SERVER['PHP_AUTH_USER']) || ($SeenBefore == 1 && $OldAuth == $_SERVER['$PHP_AUTH_USER']))) {
if (!isset($_SERVER['PHP_AUTH_USER']) || ($SeenBefore == 1 && $OldAuth == $_SERVER['PHP_AUTH_USER']))) {
authenticate();
}
else {
echo "<p>Welcome: {$_SERVER['$PHP_AUTH_USER']}<br>";
echo "Old: {$_REQUEST['$OldAuth']}";
echo "<form action='{$_SERVER['$PHP_SELF']}' METHOD='POST'>\n";
echo "<p>Welcome: {$_SERVER['PHP_AUTH_USER']}<br>";
echo "Old: {$_REQUEST['OldAuth']}";
echo "<form action='{$_SERVER['PHP_SELF']}' METHOD='POST'>\n";
echo "<input type='hidden' name='SeenBefore' value='1'>\n";
echo "<input type='hidden' name='OldAuth' value='{$_SERVER['$PHP_AUTH_USER']}'>\n";
echo "<input type='hidden' name='OldAuth' value='{$_SERVER['PHP_AUTH_USER']}'>\n";
echo "<input type='submit' value='Re Authenticate'>\n";
echo "</form></p>\n";
}