mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
bd66853168
commit
d3d521db0c
1 changed files with 6 additions and 6 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue