cvs: pear /LiveUser/docs/examples/example1 conf.php /LiveUser/docs/examples/example2 conf.php /LiveUser/docs/examples/example4 conf.php
/LiveUser/docs/examples/example5 conf.php
| From: | Lukas Smith | Date: | Tue, 07 Jun 2005 14:39:25 +0000 |
| Subject: | cvs: pear /LiveUser/docs/examples/example1 conf.php /LiveUser/docs/examples/example2 conf.php /LiveUser/docs/examples/example4 conf.php /LiveUser/docs/examples/example5 conf.php |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32406@lists.php.net to get a copy of this message | ||
lsmith Tue Jun 7 10:39:25 2005 EDT
Modified files:
/pear/LiveUser/docs/examples/example1 conf.php
/pear/LiveUser/docs/examples/example2 conf.php
/pear/LiveUser/docs/examples/example4 conf.php
/pear/LiveUser/docs/examples/example5 conf.php
Log:
- updated config to use the new auth config layout
http://cvs.php.net/diff.php/pear/LiveUser/docs/examples/example1/conf.php?r1=1.1&r2=1.2&ty=u Index: pear/LiveUser/docs/examples/example1/conf.php diff -u pear/LiveUser/docs/examples/example1/conf.php:1.1 pear/LiveUser/docs/examples/example1/conf.php:1.2 --- pear/LiveUser/docs/examples/example1/conf.php:1.1 Sat Nov 13 13:14:22 2004 +++ pear/LiveUser/docs/examples/example1/conf.php Tue Jun 7 10:39:23 2005 @@ -19,16 +19,25 @@ if ($xml_is_readable && $xml_is_writable) { $liveuserConfig = array( - 'authContainers' => array(0 => array( - 'type' => 'XML', - 'file' => 'Auth_XML.xml', - 'loginTimeout' => 0, - 'expireTime' => 3600, - 'idleTime' => 1800, - 'allowDuplicateHandles' => false, - 'passwordEncryptionMode' => 'MD5' - ) - ) + 'authContainers' => array( + 0 => array( + 'type' => 'XML', + 'loginTimeout' => 0, + 'expireTime' => 3600, + 'idleTime' => 1800, + 'allowDuplicateHandles' => false, + 'passwordEncryptionMode' => 'MD5', + 'storage' => array( + 'file' => 'Auth_XML.xml', + 'alias' => array( + 'auth_user_id' => 'userId', + 'passwd' => 'password', + 'lastlogin' => 'lastLogin', + 'is_active' => 'isActive', + ), + ), + ), + ), ); // Get LiveUser class definition require_once 'LiveUser.php'; http://cvs.php.net/diff.php/pear/LiveUser/docs/examples/example2/conf.php?r1=1.5&r2=1.6&ty=u Index: pear/LiveUser/docs/examples/example2/conf.php diff -u pear/LiveUser/docs/examples/example2/conf.php:1.5 pear/LiveUser/docs/examples/example2/conf.php:1.6 --- pear/LiveUser/docs/examples/example2/conf.php:1.5 Mon Feb 7 10:11:56 2005 +++ pear/LiveUser/docs/examples/example2/conf.php Tue Jun 7 10:39:24 2005 @@ -30,31 +30,28 @@ if ($xml_is_readable != false && $xml_is_writable != false) { $liveuserConfig = array( - 'cookie' => array( - 'name' => 'loginInfo', - 'path' => '', - 'domain' => '', - 'lifetime' => 30, - 'savedir' => '.', - 'secure' => false, - ), 'authContainers' => array( - 0 => array( - 'type' => 'XML', - 'file' => 'Auth_XML.xml', - 'loginTimeout' => 0, - 'expireTime' => 3600, - 'idleTime' => 1800, - 'allowDuplicateHandles' => false, - 'passwordEncryptionMode' => 'MD5', - 'externalValues' => array( - 'values' => &$_SERVER, - 'keysToCheck' => array('HTTP_USER_AGENT') - ), - ), + 0 => array( + 'type' => 'XML', + 'loginTimeout' => 0, + 'expireTime' => 3600, + 'idleTime' => 1800, + 'allowDuplicateHandles' => false, + 'passwordEncryptionMode' => 'MD5', + 'storage' => array( + 'file' => 'Auth_XML.xml', + 'alias' => array( + 'auth_user_id' => 'userId', + 'passwd' => 'password', + 'lastlogin' => 'lastLogin', + 'is_active' => 'isActive', + ), + ), + ), ), - 'permContainer' => array('type' => 'Simple', - 'storage' => array('XML' => array('file' => 'Perm_XML.xml')), + 'permContainer' => array( + 'type' => 'Simple', + 'storage' => array('XML' => array('file' => 'Perm_XML.xml')), ), ); // Get LiveUser class definition http://cvs.php.net/diff.php/pear/LiveUser/docs/examples/example4/conf.php?r1=1.13&r2=1.14&ty=u Index: pear/LiveUser/docs/examples/example4/conf.php diff -u pear/LiveUser/docs/examples/example4/conf.php:1.13 pear/LiveUser/docs/examples/example4/conf.php:1.14 --- pear/LiveUser/docs/examples/example4/conf.php:1.13 Tue Jun 7 05:34:12 2005 +++ pear/LiveUser/docs/examples/example4/conf.php Tue Jun 7 10:39:24 2005 @@ -52,41 +52,60 @@ 'destroy' => true, ), 'authContainers' => array( - array( - 'type' => 'DB', - 'dsn' => $dsn, - 'loginTimeout' => 0, - 'expireTime' => 3600, - 'idleTime' => 1800, - 'allowDuplicateHandles' => 0, - 'authTable' => 'liveuser_users', - 'authTableCols' => array( - 'required' => array( - 'auth_user_id' => array('name' => 'authUserId', 'type' => 'text'), - 'handle' => array('name' => 'handle', 'type' => 'text'), - 'passwd' => array('name' => 'passwd', 'type' => 'text'), - ), - 'optional' => array( - 'lastlogin' => array('name' => 'lastLogin', 'type' => 'timestamp'), - 'is_active' => array('name' => 'isActive', 'type' => 'boolean') - ), - ), - ), - array( - 'type' => 'XML', - 'file' => 'Auth_XML.xml', - 'loginTimeout' => 0, - 'expireTime' => 3600, - 'idleTime' => 1800, - 'allowDuplicateHandles' => false, - 'passwordEncryptionMode' => 'MD5' - ), - ), + array( + 'type' => 'DB', + 'loginTimeout' => 0, + 'expireTime' => 3600, + 'idleTime' => 1800, + 'allowDuplicateHandles' => 0, + 'storage' => array( + 'dsn' => $dsn, + 'alias' => array( + 'auth_user_id' => 'authUserId', + 'lastlogin' => 'lastLogin', + 'is_active' => 'isActive', + 'owner_user_id' => 'owner_user_id', + 'owner_group_id' => 'owner_group_id', + ), + 'fields' => array( + 'lastlogin' => 'timestamp', + 'is_active' => 'boolean', + 'owner_user_id' => 'integer', + 'owner_group_id' => 'integer', + ), + 'tables' => array( + 'users' => array( + 'lastlogin' => false, + 'is_active' => false, + 'owner_user_id' => false, + 'owner_group_id' => false, + ), + ) + ), + ), + array( + 'type' => 'XML', + 'loginTimeout' => 0, + 'expireTime' => 3600, + 'idleTime' => 1800, + 'allowDuplicateHandles' => false, + 'passwordEncryptionMode' => 'MD5', + 'storage' => array( + 'file' => 'Auth_XML.xml', + 'alias' => array( + 'auth_user_id' => 'userId', + 'passwd' => 'password', + 'lastlogin' => 'lastLogin', + 'is_active' => 'isActive', + ), + ), + ), + ), 'permContainer' => array( - 'type' => 'Complex', - 'storage' => array('DB' => array('dsn' => $dsn, 'prefix' => 'liveuser_')), - ) - ); + 'type' => 'Complex', + 'storage' => array('DB' => array('dsn' => $dsn, 'prefix' => 'liveuser_')), + ), +); require_once 'LiveUser.php'; http://cvs.php.net/diff.php/pear/LiveUser/docs/examples/example5/conf.php?r1=1.1&r2=1.2&ty=u Index: pear/LiveUser/docs/examples/example5/conf.php diff -u pear/LiveUser/docs/examples/example5/conf.php:1.1 pear/LiveUser/docs/examples/example5/conf.php:1.2 --- pear/LiveUser/docs/examples/example5/conf.php:1.1 Mon Apr 25 14:04:29 2005 +++ pear/LiveUser/docs/examples/example5/conf.php Tue Jun 7 10:39:24 2005 @@ -44,18 +44,22 @@ 'loginTimeout' => 0, 'expireTime' => 3600, 'idleTime' => 1800, - 'dsn' => $dsn, 'allowDuplicateHandles' => 0, - 'authTable' => 'liveuser_users', - 'authTableCols' => array( - 'required' => array( - 'auth_user_id' => array('name' => 'auth_user_id', 'type' => ''), - 'handle' => array('name' => 'handle', 'type' => ''), - 'passwd' => array('name' => 'passwd', 'type' => ''), + 'storage' => array( + 'dsn' => $dsn, + 'alias' => array( + 'lastlogin' => 'lastlogin', + 'is_active' => 'is_active', ), - 'optional' => array( - 'lastlogin' => array('name' => 'lastlogin', 'type' => ''), - 'is_active' => array('name' => 'is_active', 'type' => '') + 'fields' => array( + 'lastlogin' => 'timestamp', + 'is_active' => 'boolean', + ), + 'tables' => array( + 'users' => array( + 'lastlogin' => false, + 'is_active' => false, + ), ) ) )
http://cvs.php.net/diff.php/pear/LiveUser/docs/examples/example1/conf.php?r1=1.1&r2=1.2&ty=u Index: pear/LiveUser/docs/examples/example1/conf.php diff -u pear/LiveUser/docs/examples/example1/conf.php:1.1 pear/LiveUser/docs/examples/example1/conf.php:1.2 --- pear/LiveUser/docs/examples/example1/conf.php:1.1 Sat Nov 13 13:14:22 2004 +++ pear/LiveUser/docs/examples/example1/conf.php Tue Jun 7 10:39:23 2005 @@ -19,16 +19,25 @@ if ($xml_is_readable && $xml_is_writable) { $liveuserConfig = array( - 'authContainers' => array(0 => array( - 'type' => 'XML', - 'file' => 'Auth_XML.xml', - 'loginTimeout' => 0, - 'expireTime' => 3600, - 'idleTime' => 1800, - 'allowDuplicateHandles' => false, - 'passwordEncryptionMode' => 'MD5' - ) - ) + 'authContainers' => array( + 0 => array( + 'type' => 'XML', + 'loginTimeout' => 0, + 'expireTime' => 3600, + 'idleTime' => 1800, + 'allowDuplicateHandles' => false, + 'passwordEncryptionMode' => 'MD5', + 'storage' => array( + 'file' => 'Auth_XML.xml', + 'alias' => array( + 'auth_user_id' => 'userId', + 'passwd' => 'password', + 'lastlogin' => 'lastLogin', + 'is_active' => 'isActive', + ), + ), + ), + ), ); // Get LiveUser class definition require_once 'LiveUser.php'; http://cvs.php.net/diff.php/pear/LiveUser/docs/examples/example2/conf.php?r1=1.5&r2=1.6&ty=u Index: pear/LiveUser/docs/examples/example2/conf.php diff -u pear/LiveUser/docs/examples/example2/conf.php:1.5 pear/LiveUser/docs/examples/example2/conf.php:1.6 --- pear/LiveUser/docs/examples/example2/conf.php:1.5 Mon Feb 7 10:11:56 2005 +++ pear/LiveUser/docs/examples/example2/conf.php Tue Jun 7 10:39:24 2005 @@ -30,31 +30,28 @@ if ($xml_is_readable != false && $xml_is_writable != false) { $liveuserConfig = array( - 'cookie' => array( - 'name' => 'loginInfo', - 'path' => '', - 'domain' => '', - 'lifetime' => 30, - 'savedir' => '.', - 'secure' => false, - ), 'authContainers' => array( - 0 => array( - 'type' => 'XML', - 'file' => 'Auth_XML.xml', - 'loginTimeout' => 0, - 'expireTime' => 3600, - 'idleTime' => 1800, - 'allowDuplicateHandles' => false, - 'passwordEncryptionMode' => 'MD5', - 'externalValues' => array( - 'values' => &$_SERVER, - 'keysToCheck' => array('HTTP_USER_AGENT') - ), - ), + 0 => array( + 'type' => 'XML', + 'loginTimeout' => 0, + 'expireTime' => 3600, + 'idleTime' => 1800, + 'allowDuplicateHandles' => false, + 'passwordEncryptionMode' => 'MD5', + 'storage' => array( + 'file' => 'Auth_XML.xml', + 'alias' => array( + 'auth_user_id' => 'userId', + 'passwd' => 'password', + 'lastlogin' => 'lastLogin', + 'is_active' => 'isActive', + ), + ), + ), ), - 'permContainer' => array('type' => 'Simple', - 'storage' => array('XML' => array('file' => 'Perm_XML.xml')), + 'permContainer' => array( + 'type' => 'Simple', + 'storage' => array('XML' => array('file' => 'Perm_XML.xml')), ), ); // Get LiveUser class definition http://cvs.php.net/diff.php/pear/LiveUser/docs/examples/example4/conf.php?r1=1.13&r2=1.14&ty=u Index: pear/LiveUser/docs/examples/example4/conf.php diff -u pear/LiveUser/docs/examples/example4/conf.php:1.13 pear/LiveUser/docs/examples/example4/conf.php:1.14 --- pear/LiveUser/docs/examples/example4/conf.php:1.13 Tue Jun 7 05:34:12 2005 +++ pear/LiveUser/docs/examples/example4/conf.php Tue Jun 7 10:39:24 2005 @@ -52,41 +52,60 @@ 'destroy' => true, ), 'authContainers' => array( - array( - 'type' => 'DB', - 'dsn' => $dsn, - 'loginTimeout' => 0, - 'expireTime' => 3600, - 'idleTime' => 1800, - 'allowDuplicateHandles' => 0, - 'authTable' => 'liveuser_users', - 'authTableCols' => array( - 'required' => array( - 'auth_user_id' => array('name' => 'authUserId', 'type' => 'text'), - 'handle' => array('name' => 'handle', 'type' => 'text'), - 'passwd' => array('name' => 'passwd', 'type' => 'text'), - ), - 'optional' => array( - 'lastlogin' => array('name' => 'lastLogin', 'type' => 'timestamp'), - 'is_active' => array('name' => 'isActive', 'type' => 'boolean') - ), - ), - ), - array( - 'type' => 'XML', - 'file' => 'Auth_XML.xml', - 'loginTimeout' => 0, - 'expireTime' => 3600, - 'idleTime' => 1800, - 'allowDuplicateHandles' => false, - 'passwordEncryptionMode' => 'MD5' - ), - ), + array( + 'type' => 'DB', + 'loginTimeout' => 0, + 'expireTime' => 3600, + 'idleTime' => 1800, + 'allowDuplicateHandles' => 0, + 'storage' => array( + 'dsn' => $dsn, + 'alias' => array( + 'auth_user_id' => 'authUserId', + 'lastlogin' => 'lastLogin', + 'is_active' => 'isActive', + 'owner_user_id' => 'owner_user_id', + 'owner_group_id' => 'owner_group_id', + ), + 'fields' => array( + 'lastlogin' => 'timestamp', + 'is_active' => 'boolean', + 'owner_user_id' => 'integer', + 'owner_group_id' => 'integer', + ), + 'tables' => array( + 'users' => array( + 'lastlogin' => false, + 'is_active' => false, + 'owner_user_id' => false, + 'owner_group_id' => false, + ), + ) + ), + ), + array( + 'type' => 'XML', + 'loginTimeout' => 0, + 'expireTime' => 3600, + 'idleTime' => 1800, + 'allowDuplicateHandles' => false, + 'passwordEncryptionMode' => 'MD5', + 'storage' => array( + 'file' => 'Auth_XML.xml', + 'alias' => array( + 'auth_user_id' => 'userId', + 'passwd' => 'password', + 'lastlogin' => 'lastLogin', + 'is_active' => 'isActive', + ), + ), + ), + ), 'permContainer' => array( - 'type' => 'Complex', - 'storage' => array('DB' => array('dsn' => $dsn, 'prefix' => 'liveuser_')), - ) - ); + 'type' => 'Complex', + 'storage' => array('DB' => array('dsn' => $dsn, 'prefix' => 'liveuser_')), + ), +); require_once 'LiveUser.php'; http://cvs.php.net/diff.php/pear/LiveUser/docs/examples/example5/conf.php?r1=1.1&r2=1.2&ty=u Index: pear/LiveUser/docs/examples/example5/conf.php diff -u pear/LiveUser/docs/examples/example5/conf.php:1.1 pear/LiveUser/docs/examples/example5/conf.php:1.2 --- pear/LiveUser/docs/examples/example5/conf.php:1.1 Mon Apr 25 14:04:29 2005 +++ pear/LiveUser/docs/examples/example5/conf.php Tue Jun 7 10:39:24 2005 @@ -44,18 +44,22 @@ 'loginTimeout' => 0, 'expireTime' => 3600, 'idleTime' => 1800, - 'dsn' => $dsn, 'allowDuplicateHandles' => 0, - 'authTable' => 'liveuser_users', - 'authTableCols' => array( - 'required' => array( - 'auth_user_id' => array('name' => 'auth_user_id', 'type' => ''), - 'handle' => array('name' => 'handle', 'type' => ''), - 'passwd' => array('name' => 'passwd', 'type' => ''), + 'storage' => array( + 'dsn' => $dsn, + 'alias' => array( + 'lastlogin' => 'lastlogin', + 'is_active' => 'is_active', ), - 'optional' => array( - 'lastlogin' => array('name' => 'lastlogin', 'type' => ''), - 'is_active' => array('name' => 'is_active', 'type' => '') + 'fields' => array( + 'lastlogin' => 'timestamp', + 'is_active' => 'boolean', + ), + 'tables' => array( + 'users' => array( + 'lastlogin' => false, + 'is_active' => false, + ), ) ) )