cvs: pear /Auth Auth.php
| From: | Martin Jansen | Date: | Sat, 01 Feb 2003 09:32:02 +0000 |
| Subject: | cvs: pear /Auth Auth.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8626@lists.php.net to get a copy of this message | ||
mj Sat Feb 1 04:32:02 2003 EDT
Modified files:
/pear/Auth Auth.php
Log:
* Fix usage example.
Index: pear/Auth/Auth.php
diff -u pear/Auth/Auth.php:1.46 pear/Auth/Auth.php:1.47
--- pear/Auth/Auth.php:1.46 Sat Feb 1 04:29:15 2003
+++ pear/Auth/Auth.php Sat Feb 1 04:32:01 2003
@@ -16,7 +16,7 @@
// | Authors: Martin Jansen <mj@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Auth.php,v 1.46 2003/02/01 09:29:15 mj Exp $
+// $Id: Auth.php,v 1.47 2003/02/01 09:32:01 mj Exp $
//
require_once "PEAR.php";
@@ -81,7 +81,8 @@
* $options = array(
* 'table' => 'myuser',
* 'usernamecol' => 'userlogin',
- * 'passwordcol' => 'cryptpassword'
+ * 'passwordcol' => 'cryptpassword',
+ * 'dns' => $dsn
* );
*
* // define login form function
@@ -91,7 +92,7 @@
* }
*
* // create auth object
- * $myauth = new Auth( $dsn, $options, 'myloginform', true);
+ * $myauth = new Auth('DB', $options, 'myloginform', true);
*
* You can now use the $myauth object on all your pages like
* in the example above:
@@ -132,7 +133,7 @@
*
* @author Martin Jansen <mj@php.net>
* @package Auth
- * @version $Revision: 1.46 $
+ * @version $Revision: 1.47 $
*/
define("AUTH_IDLED", -1);