LiveUser
[ class tree: LiveUser ] [ index: LiveUser ] [ all elements ]

Source for file conf.php

Documentation is available at conf.php

  1. <?php
  2. // BC hack
  3. if (!defined('PATH_SEPARATOR')) {
  4.     if (defined('DIRECTORY_SEPARATOR'&& DIRECTORY_SEPARATOR == "\\"{
  5.         define('PATH_SEPARATOR'';');
  6.     else {
  7.         define('PATH_SEPARATOR'':');
  8.     }
  9. }
  10.  
  11. // set this to the path in which the directory for liveuser resides
  12. // more remove the following two lines to test LiveUser in the standard
  13. // PEAR directory
  14. //$path_to_liveuser_dir = './pear/'.PATH_SEPARATOR;
  15. //ini_set('include_path', $path_to_liveuser_dir.ini_get('include_path'));
  16.  
  17.         $dsn = array('username' => 'user',
  18.                     'password'  => 'pass',
  19.                     'hostspec'  => 'localhost',
  20.                     'phptype'   => 'mysql',
  21.                     'database'  => 'pear_test');
  22.  
  23. $liveuserConfig = array(
  24.     'session'           => array('name' => 'PHPSESSID','varname' => 'loginInfo'),
  25.     'login'             => array('username' => 'handle''password' => 'passwd''remember' => 'rememberMe'),
  26.     'logout'            => array('trigger' => 'logout''destroy'  => true'method' => 'get'),
  27.     'cookie'            => array('name' => 'loginInfo''path' => '/''domain' => '''lifetime' => 30'secret' => 'mysecretkey'),
  28.     'autoInit'          => true,
  29.     'authContainers'    => array(0 => array(
  30.         'type' => 'DB',
  31.                   'dsn' => $dsn,
  32.                   'loginTimeout' => 0,
  33.                   'expireTime'   => 0,
  34.                   'idleTime'     => 0,
  35.                   'allowDuplicateHandles'  => 1,
  36.                   'passwordEncryptionMode' => 'PLAIN'
  37.     )
  38.                                 ),
  39.     'permContainer' => array(
  40.         'type'   => 'DB_Complex',
  41.         'dsn' => $dsn,
  42.         'prefix' => 'liveuser_'
  43.                 )
  44. );
  45.  
  46. // Get LiveUser class definition
  47. require_once 'LiveUser.php';
  48. ?>

Documentation generated on Mon, 11 Mar 2019 10:16:11 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.