cvs: peardoc /en/package/authentication/auth-http/auth-http example.xml example2.xml
| From: | Stefan Neufeind | Date: | Sat, 29 May 2004 16:56:28 +0000 |
| Subject: | cvs: peardoc /en/package/authentication/auth-http/auth-http example.xml example2.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4141@lists.php.net to get a copy of this message | ||
neufeind Sat May 29 12:56:28 2004 EDT
Modified files:
/peardoc/en/package/authentication/auth-http/auth-http example.xml
example2.xml
Log:
comment indention + fix (use setCancelText before start())
http://cvs.php.net/diff.php/peardoc/en/package/authentication/auth-http/auth-http/example.xml?r1=1.2&r2=1.3&ty=u
Index: peardoc/en/package/authentication/auth-http/auth-http/example.xml
diff -u peardoc/en/package/authentication/auth-http/auth-http/example.xml:1.2
peardoc/en/package/authentication/auth-http/auth-http/example.xml:1.3
--- peardoc/en/package/authentication/auth-http/auth-http/example.xml:1.2 Mon Apr 5 13:52:50 2004
+++ peardoc/en/package/authentication/auth-http/auth-http/example.xml Sat May 29 12:56:28 2004
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry id="package.authentication.auth-http.auth-http.example">
<refnamediv>
<refname>Auth_HTTP Example</refname>
@@ -17,18 +17,18 @@
// setting the database connection options
$AuthOptions = array(
'dsn'=>"pgsql://test:test@localhost/testdb",
-'table'=>"testable", //your table name
-'usernamecol'=>"username", //the table username column
-'passwordcol'=>"password", //the table password column
-'cryptType'=>"none", //password encryption type in your db
+'table'=>"testable", // your table name
+'usernamecol'=>"username", // the table username column
+'passwordcol'=>"password", // the table password column
+'cryptType'=>"none", // password encryption type in your db
);
$a = new Auth_HTTP("DB", $AuthOptions);
-$a->setRealm('yourrealm'); //realm name
-$a->start(); //starting the authentication process
-$a->setCancelText('<h2>Error 401</h2>'); // error message if
authentication fails
+$a->setRealm('yourrealm'); // realm name
+$a->setCancelText('<h2>Error 401</h2>'); // error message if
authentication fails
+$a->start(); // starting the authentication process
if($a->getAuth()) // checking for autenticated user
http://cvs.php.net/diff.php/peardoc/en/package/authentication/auth-http/auth-http/example2.xml?r1=1.3&r2=1.4&ty=u
Index: peardoc/en/package/authentication/auth-http/auth-http/example2.xml
diff -u peardoc/en/package/authentication/auth-http/auth-http/example2.xml:1.3
peardoc/en/package/authentication/auth-http/auth-http/example2.xml:1.4
--- peardoc/en/package/authentication/auth-http/auth-http/example2.xml:1.3 Thu May 20 10:46:50 2004
+++ peardoc/en/package/authentication/auth-http/auth-http/example2.xml Sat May 29 12:56:28 2004
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<refentry id="package.authentication.auth-http.auth-http.example2">
<refnamediv>
<refname>Auth_HTTP Example 2</refname>
@@ -16,19 +16,19 @@
// setting the database connection options
$AuthOptions = array(
'dsn'=>"pgsql://test:test@localhost/testdb",
-'table'=>"testable", //your table name
-'usernamecol'=>"username", //the table username column
-'passwordcol'=>"password", //the table password column
-'cryptType'=>"md5", //password encryption type in your db
-'dbFields'=>"*", //enabling fetch for other db columns
+'table'=>"testable", // your table name
+'usernamecol'=>"username", // the table username column
+'passwordcol'=>"password", // the table password column
+'cryptType'=>"md5", // password encryption type in your db
+'dbFields'=>"*", // enabling fetch for other db columns
);
$a = new Auth_HTTP("DB", $AuthOptions);
-$a->setRealm('yourrealm'); //realm name
-$a->start(); //starting the authentication process
-$a->setCancelText('<h2>Error 401</h2>'); // error message if
authentication fails
+$a->setRealm('yourrealm'); // realm name
+$a->setCancelText('<h2>Error 401</h2>'); // error message if
authentication fails
+$a->start(); // starting the authentication process
if($a->getAuth()) // checking for autenticated user