mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Correcting error in example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@31003 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2d0840f241
commit
1e8d8f349e
1 changed files with 4 additions and 4 deletions
|
@ -72,10 +72,10 @@
|
|||
<programlisting role="php">
|
||||
<?php
|
||||
function authenticate() {
|
||||
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;
|
||||
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;
|
||||
}
|
||||
|
||||
if(!isset($PHP_AUTH_USER) || ($SeenBefore == 1 && !strcmp($OldAuth, $PHP_AUTH_USER)) ) {
|
||||
|
|
Loading…
Reference in a new issue