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. // Data Source Name (DSN)
  18. $dsn '{dbtype}://{user}:{passwd}@{dbhost}/{dbname}';
  19.  
  20. $liveuserConfig = array(
  21.     'session'           => array('name' => 'PHPSESSID','varname' => 'loginInfo'),
  22.     'login'             => array('username' => 'handle''password' => 'passwd''remember' => 'rememberMe'),
  23.     'logout'            => array('trigger' => 'logout''destroy'  => true'method' => 'get'),
  24.     'cookie'            => array('name' => 'loginInfo''path' => '/''domain' => '''lifetime' => 30'secret' => 'mysecretkey'),
  25.     'autoInit'          => true,
  26.     'authContainers'    => array(0 => array(
  27.         'type' => 'DB',
  28.                   'dsn' => $dsn,
  29.                   'loginTimeout' => 0,
  30.                   'expireTime'   => 0,
  31.                   'idleTime'     => 0,
  32.                   'allowDuplicateHandles'  => 1,
  33.                   'passwordEncryptionMode' => 'PLAIN',
  34.                   'authTableCols' => array(
  35.                       'required' => array(
  36.                           'auth_user_id' => array('name' => 'auth_user_id''type' => 'text'),
  37.                           'handle'       => array('name' => 'handle',       'type' => 'text'),
  38.                           'passwd'       => array('name' => 'passwd',       'type' => 'text'),
  39.                       ),
  40.                       'optional' => array(
  41.                           'lastlogin'    => array('name' => 'lastlogin',    'type' => 'timestamp'),
  42.                           'is_active'    => array('name' => 'is_active',    'type' => 'boolean')
  43.                       )
  44.                     )
  45.     )
  46.                                 ),
  47.     'permContainer' => array(
  48.         'type'   => 'MDB2_Complex',
  49.         'dsn' => $dsn,
  50.         'prefix' => 'liveuser_',
  51.         'groupTableCols' => array(
  52.             'required' => array(
  53.                 'group_id' => array('type' => 'integer''name' => 'group_id'),
  54.                 'group_define_name' => array('type' => 'text''name' => 'group_define_name')
  55.             ),
  56.             'optional' => array(
  57.                 'group_type'    => array('type' => 'integer''name' => 'group_type'),
  58.                 'is_active'    => array('type' => 'boolean''name' => 'is_active'),
  59.                 'owner_user_id'  => array('type' => 'integer''name' => 'owner_user_id'),
  60.                 'owner_group_id' => array('type' => 'integer''name' => 'owner_group_id')
  61.             )
  62.         )
  63.     )
  64. );
  65.  
  66. // Get LiveUser class definition
  67. require_once 'LiveUser.php';

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