Patch for Auth.php

From: Date: Sun, 01 Dec 2002 01:49:27 +0000
Subject: Patch for Auth.php
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11270@lists.php.net to get a copy of this message
Below is a patch to Auth.php fixing the creation of the Auth object in the advanced example, including the DSN in the options array. Jon ------------------------------------ diff -u -r1.44 Auth.php --- Auth.php 1 Nov 2002 10:37:27 -0000 1.44 +++ Auth.php 1 Dec 2002 01:44:13 -0000 @@ -73,12 +73,10 @@ * Set up the Auth class in an auto_prepend file like this: * * require_once "Auth/Auth.php"; - * - * // define dsn - * $dsn = "mysql://martin:test@example.com/test"; * * // set options * $options = array( + * 'dsn' => 'mysql://martin:test@example.com/test', * 'table' => 'myuser', * 'usernamecol' => 'userlogin', * 'passwordcol' => 'cryptpassword' @@ -91,7 +89,7 @@ * } * * // create auth object - * $myauth = new Auth( $dsn, $options, 'myloginform', true); + * $myauth = new Auth($options, 'myloginform', true); * * You can now use the $myauth object on all your pages like * in the example above:

« previous php.pear.dev (#11270) next »