mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
HTML cosmetics, updating translation
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@50919 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
a543f8515b
commit
b0f3760a21
1 changed files with 12 additions and 12 deletions
|
@ -23,13 +23,13 @@
|
|||
<programlisting role="php">
|
||||
<?php
|
||||
if(!isset($PHP_AUTH_USER)) {
|
||||
Header("WWW-Authenticate: Basic realm=\"My Realm\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
header("WWW-Authenticate: Basic realm=\"My Realm\"");
|
||||
header("HTTP/1.0 401 Unauthorized");
|
||||
echo "Text to send if user hits Cancel button\n";
|
||||
exit;
|
||||
} else {
|
||||
echo "Hello $PHP_AUTH_USER.<P>";
|
||||
echo "You entered $PHP_AUTH_PW as your password.<P>";
|
||||
echo "<p>Hello $PHP_AUTH_USER.</p>";
|
||||
echo "<p>You entered $PHP_AUTH_PW as your password.</p>";
|
||||
}
|
||||
?>
|
||||
</programlisting>
|
||||
|
@ -93,8 +93,8 @@
|
|||
<programlisting role="php">
|
||||
<?php
|
||||
function authenticate() {
|
||||
Header( "WWW-Authenticate: Basic realm=\"Test Authentication System\"");
|
||||
Header( "HTTP/1.0 401 Unauthorized");
|
||||
header( "WWW-Authenticate: Basic realm=\"Test Authentication System\"");
|
||||
header( "HTTP/1.0 401 Unauthorized");
|
||||
echo "You must enter a valid login ID and password to access this resource\n";
|
||||
exit;
|
||||
}
|
||||
|
@ -103,13 +103,13 @@
|
|||
authenticate();
|
||||
}
|
||||
else {
|
||||
echo "Welcome: $PHP_AUTH_USER<BR>";
|
||||
echo "</p>Welcome: $PHP_AUTH_USER<br>";
|
||||
echo "Old: $OldAuth";
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=POST>\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=\"SeenBefore\" VALUE=\"1\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=\"OldAuth\" VALUE=\"$PHP_AUTH_USER\">\n";
|
||||
echo "<INPUT TYPE=Submit VALUE=\"Re Authenticate\">\n";
|
||||
echo "</FORM>\n";
|
||||
echo "<form action=\"$PHP_SELF\" METHOD=POST>\n";
|
||||
echo "<input type=\"hidden\" name=\"SeenBefore\" value=\"1\">\n";
|
||||
echo "<input type=\"hidden\" name=\"OldAuth\" value=\"$PHP_AUTH_USER\">\n";
|
||||
echo "<input type=\"submit\" value=\"Re Authenticate\">\n";
|
||||
echo "</form></p>\n";
|
||||
}
|
||||
?>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue