cvs: pear /Perm_LiveUser/docs/examples/example3 conf.php

From: Date: Fri, 23 Apr 2004 19:29:31 +0000
Subject: cvs: pear /Perm_LiveUser/docs/examples/example3 conf.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-18654@lists.php.net to get a copy of this message
dufuz Fri Apr 23 15:29:31 2004 EDT Modified files: /pear/Perm_LiveUser/docs/examples/example3 conf.php Log: insteed of 2x diffrent DSN ... moved it to 1x that both use.... Require_once 'LiveUser.php'; added http://cvs.php.net/diff.php/pear/Perm_LiveUser/docs/examples/example3/conf.php?r1=1.5&r2=1.6&ty=u Index: pear/Perm_LiveUser/docs/examples/example3/conf.php diff -u pear/Perm_LiveUser/docs/examples/example3/conf.php:1.5 pear/Perm_LiveUser/docs/examples/example3/conf.php:1.6 --- pear/Perm_LiveUser/docs/examples/example3/conf.php:1.5 Fri Apr 23 10:03:35 2004 +++ pear/Perm_LiveUser/docs/examples/example3/conf.php Fri Apr 23 15:29:31 2004 @@ -14,6 +14,12 @@ //$path_to_liveuser_dir = './pear/'.PATH_SEPARATOR; //ini_set('include_path', $path_to_liveuser_dir.ini_get('include_path')); + $dsn = array('username' => 'user', + 'password' => 'pass', + 'hostspec' => 'localhost', + 'phptype' => 'mysql', + 'database' => 'pear_test'); + $liveuserConfig = array( 'session' => array('name' => 'PHPSESSID','varname' => 'loginInfo'), 'login' => array('username' => 'handle', 'password' => 'passwd', 'remember' => 'rememberMe'), @@ -22,12 +28,7 @@ 'autoInit' => true, 'authContainers' => array(0 => array( 'type' => 'DB', - 'dsn' => array('username' => 'user', - 'password' => 'pass', - 'hostspec' => 'localhost', - 'phptype' => 'mysql', - 'database' => 'pear_test' - ), + 'dsn' => $dsn, 'loginTimeout' => 0, 'expireTime' => 0, 'idleTime' => 0, @@ -37,14 +38,11 @@ ), 'permContainer' => array( 'type' => 'DB_Complex', - 'dsn' => array( - 'username' => 'user', - 'password' => 'test', - 'hostspec' => 'localhost', - 'phptype' => 'mysql', - 'database' => 'pear_test' - ), - 'prefix' => 'liveuser_' + 'dsn' => $dsn, + 'prefix' => 'liveuser_' ) ); + +// Get LoginManager class definition +require_once 'LiveUser.php'; ?> \ No newline at end of file

« previous php.pear.cvs (#18654) next »