mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Examples indentation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@218280 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9641b3c7e3
commit
01b2faf5b3
1 changed files with 9 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.46 $ -->
|
||||
<!-- $Revision: 1.47 $ -->
|
||||
<chapter id="features.http-auth">
|
||||
<title>HTTP authentication with PHP</title>
|
||||
|
||||
|
@ -197,15 +197,14 @@ function authenticate() {
|
|||
if (!isset($_SERVER['PHP_AUTH_USER']) ||
|
||||
($_POST['SeenBefore'] == 1 && $_POST['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 "<input type='hidden' name='SeenBefore' value='1' />\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";
|
||||
} else {
|
||||
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='submit' value='Re Authenticate' />\n";
|
||||
echo "</form></p>\n";
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue