cortesi         Sun Jun  2 11:10:25 2002 EDT

  Modified files:              
    /phpdoc-it/features http-auth.xml 
  Log:
  updating to 1.22 and some typos
  
  
Index: phpdoc-it/features/http-auth.xml
diff -u phpdoc-it/features/http-auth.xml:1.11 phpdoc-it/features/http-auth.xml:1.12
--- phpdoc-it/features/http-auth.xml:1.11       Wed Feb 20 11:53:52 2002
+++ phpdoc-it/features/http-auth.xml    Sun Jun  2 11:10:24 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.21 Maintainer: cortesi Status: ready -->
+<!-- EN-Revision: 1.22 Maintainer: cortesi Status: ready -->
  <chapter id="features.http-auth">
   <title>Autenticazione HTTP usando PHP</title>
 
@@ -26,8 +26,8 @@
 <![CDATA[
 <?php
   if (!isset($PHP_AUTH_USER)) {
-    Header("WWW-Authenticate: Basic realm=\"Il mio Regno\"");
-    Header("HTTP/1.0 401 Unauthorized");
+    header("WWW-Authenticate: Basic realm=\"Il mio realm\"");
+    header("HTTP/1.0 401 Unauthorized");
     echo "Messaggio da inviare se si preme il tasto Cancel\n";
     exit;
   } else {
@@ -98,8 +98,8 @@
 <![CDATA[
 <?php
   function authenticate() {
-    Header( "WWW-Authenticate: Basic realm=\"Prova del Sistema di Autenticazione\"");
-    Header( "HTTP/1.0 401 Unauthorized");
+    header( "WWW-Authenticate: Basic realm=\"Prova del Sistema di Autenticazione\"");
+    header( "HTTP/1.0 401 Unauthorized");
     echo "Per poter accedere a questa risorsa occorre inserire una coppia login e 
password valide\n";
     exit;
   }
@@ -133,6 +133,15 @@
    Si noti anche che questo non funziona con il server IIS di Microsoft e
    con la versione CGI di PHP a causa di una limitazione di IIS.
   </simpara>
+
+  <note>
+   <title>Nota</title>
+   <para>
+    Se � abilitato <link linkend="ini.safe-mode">safe mode</link> viene 
+    aggiunto lo uid dello script al <literal>realm</literal>
+    dell'header <literal>WWW-Authenticate</literal>.
+   </para>
+  </note>
 
  </chapter>
 


Reply via email to