[PHP-DOC] cvs: phpdoc /it/features http-auth.xml From: Luca Perugini (l.perugini <email protected>)
Date: 08/31/00

perugini Thu Aug 31 15:37:42 2000 EDT

  Modified files:
    /phpdoc/it/features http-auth.xml
  Log:
  Sync with en tree.
  
  
Index: phpdoc/it/features/http-auth.xml
diff -u phpdoc/it/features/http-auth.xml:1.1 phpdoc/it/features/http-auth.xml:1.2
--- phpdoc/it/features/http-auth.xml:1.1 Sat Dec 18 17:00:07 1999
+++ phpdoc/it/features/http-auth.xml Thu Aug 31 15:37:42 2000
@@ -72,13 +72,13 @@
      <programlisting role="php">
 &lt;?php
   function authenticate() {
- Header( &quot;WWW-authenticate: basic realm='Test Authentication System'&quot;);
- Header( &quot;HTTP/1.0 401 Unauthorized&quot;);
- echo &quot;You must enter a valid login ID and password to access this resource\n&quot;;
- exit;
+ Header( &quot;WWW-authenticate: basic realm=\&quot;Test Authentication System\&quot;&quot;);
+ Header( &quot;HTTP/1.0 401 Unauthorized&quot;);
+ echo &quot;You must enter a valid login ID and password to access this resource\n&quot;;
+ exit;
   }
 
- if(!isset($PHP_AUTH_USER) || ($SeenBefore == 1 && !strcmp($OldAuth, $PHP_AUTH_USER)) ) {
+ if(!isset($PHP_AUTH_USER) || ($SeenBefore == 1 &amp;&amp; !strcmp($OldAuth, $PHP_AUTH_USER)) ) {
     authenticate();
   }
   else {