cvs: pear /Perm_LiveUser/examples/example3 conf.php
| From: | Arnaud Limbourg | Date: | Sat, 27 Sep 2003 17:25:28 +0000 |
| Subject: | cvs: pear /Perm_LiveUser/examples/example3 conf.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13140@lists.php.net to get a copy of this message | ||
arnaud Sat Sep 27 13:25:28 2003 EDT
Modified files:
/pear/Perm_LiveUser/examples/example3 conf.php
Log:
* update conf to allow the use of rememberMe
* cosmetics
Index: pear/Perm_LiveUser/examples/example3/conf.php
diff -u pear/Perm_LiveUser/examples/example3/conf.php:1.8
pear/Perm_LiveUser/examples/example3/conf.php:1.9
--- pear/Perm_LiveUser/examples/example3/conf.php:1.8 Fri Sep 12 07:00:33 2003
+++ pear/Perm_LiveUser/examples/example3/conf.php Sat Sep 27 13:25:28 2003
@@ -1,5 +1,5 @@
<?php
-// $Id: conf.php,v 1.8 2003/09/12 11:00:33 lsmith Exp $
+// $Id: conf.php,v 1.9 2003/09/27 17:25:28 arnaud Exp $
// BC hack
if(!defined('PATH_SEPARATOR')) {
@@ -13,36 +13,40 @@
// set this to the path in which the directory for liveuser resides
// more remove the following two lines to test LiveUser in the standard
// PEAR directory
-$path_to_liveuser_dir = './pear/'.PATH_SEPARATOR;
-ini_set('include_path', $path_to_liveuser_dir.ini_get('include_path'));
+//$path_to_liveuser_dir = './pear/'.PATH_SEPARATOR;
+//ini_set('include_path', $path_to_liveuser_dir.ini_get('include_path'));
- $liveuserConfig = array('session' => array('name' =>
'PHPSESSID','varname' => 'loginInfo'),
- 'login' => array('username' =>
'handle', 'password' => 'passwd'),
- 'logout' => array('trigger' =>
'logout'),
- 'cookie' => array('name' =>
'loginInfo', 'path' => '/', 'domain' =>
'localhost', 'lifetime' => 30),
- 'autoInit' => true,
- 'authContainers' => array(0 =>
array('type' => 'DB',
- 'dsn' =>
array('username' => 'metapear',
-
'password' => 'funky',
-
'hostspec' => 'localhost',
-
'phptype' => 'mysql',
-
'database' => 'liveuser_test'
- ),
- 'loginTimeout' =>
0,
- 'expireTime' =>
0,
- 'idleTime' =>
0,
-
'allowDuplicateHandles' => 1,
-
'passwordEncryptionMode' => 'PLAIN'
- )
- ),
- 'permContainer' => array('type' =>
'DB_Complex',
- 'dsn' =>
array('username' => 'metapear',
-
'password' => 'funky',
-
'hostspec' => 'localhost',
-
'phptype' => 'mysql',
-
'database' => 'liveuser_test'
- ),
- 'prefix' =>
'liveuser_'
- )
- );
+$liveuserConfig = array(
+ 'session' => array('name' =>
'PHPSESSID','varname' => 'loginInfo'),
+ 'login' => array('username' => 'handle',
'password' => 'passwd', 'remember' => 'rememberMe'),
+ 'logout' => array('trigger' => 'logout'),
+ 'cookie' => array('name' => 'loginInfo',
'path' => '/', 'domain' => '', 'lifetime'
=> 30, 'secret' => 'mysecretkey'),
+ 'autoInit' => true,
+ 'authContainers' => array(0 => array(
+ 'type' => 'DB',
+ 'dsn' => array('username' => 'metapear',
+ 'password' => 'mysecretpass',
+ 'hostspec' => 'localhost',
+ 'phptype' => 'mysql',
+ 'database' => 'liveuser_test'
+ ),
+ 'loginTimeout' => 0,
+ 'expireTime' => 0,
+ 'idleTime' => 0,
+ 'allowDuplicateHandles' => 1,
+ 'passwordEncryptionMode' => 'PLAIN'
+ )
+ ),
+ 'permContainer' => array(
+ 'type' => 'DB_Complex',
+ 'dsn' => array(
+ 'username' => 'metapear',
+ 'password' => 'mysecretpass',
+ 'hostspec' => 'localhost',
+ 'phptype' => 'mysql',
+ 'database' => 'liveuser_test'
+ ),
+ 'prefix' => 'liveuser_'
+ )
+);
?>