]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/WikiDB/adodb/pear/readme.Auth.txt
Upgrade adodb
[SourceForge/phpwiki.git] / lib / WikiDB / adodb / pear / readme.Auth.txt
1 From: Rich Tango-Lowy (richtl#arscognita.com)\r
2 Date: Sat, May 29, 2004 11:20 am\r
3 \r
4 OK, I hacked out an ADOdb container for PEAR-Auth. The error handling's \r
5 a bit of a mess, but all the methods work.\r
6 \r
7 Copy ADOdb.php to your pear/Auth/Container/ directory.\r
8 \r
9 Use the ADOdb container exactly as you would the DB\r
10 container, but specify 'ADOdb' instead of 'DB':\r
11 \r
12 $dsn = "mysql://myuser:mypass@localhost/authdb";\r
13 $a = new Auth("ADOdb", $dsn, "loginFunction");\r
14 \r
15 \r
16 -------------------\r
17 \r
18 John Lim adds:\r
19 \r
20 See http://pear.php.net/manual/en/package.authentication.php\r