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. require_once 'LiveUser.php';
  18. require_once 'Log.php';
  19.  
  20. if (is_readable('Auth_XML.xml'&& is_writable('Auth_XML.xml')) {
  21.     $logger =Log::factory('win''liveuserlog');
  22.  
  23.     $liveuserConfig = array(
  24.         'debug' => &$logger,
  25.         'authContainers' => array(
  26.             0 => array(
  27.                 'type' => 'XML',
  28.                 'expireTime'   => 3600,
  29.                 'idleTime'     => 1800,
  30.                 'passwordEncryptionMode' => 'MD5',
  31.                 'storage' => array(
  32.                     'file' => 'Auth_XML.xml',
  33.                     'alias' => array(
  34.                         'auth_user_id' =>   'userId',
  35.                         'passwd' =>         'password',
  36.                         'lastlogin' =>      'lastLogin',
  37.                         'is_active' =>      'isActive',
  38.                         'name' =>           'name'
  39.                     ),
  40.                     'tables' => array(
  41.                         'users' => array(
  42.                             'fields' => array(
  43.                                 'lastlogin'         => false,
  44.                                 'is_active'         => false,
  45.                                 'owner_user_id'     => false,
  46.                                 'owner_group_id'    => false,
  47.                                 'name'              => false,
  48.                             ),
  49.                         ),
  50.                     ),
  51.                     'fields' => array(
  52.                         'lastlogin'         => 'timestamp',
  53.                         'is_active'         => 'boolean',
  54.                         'owner_user_id'     => 'integer',
  55.                         'owner_group_id'    => 'integer',
  56.                         'name'              => 'text',
  57.                     ),
  58.                 ),
  59.             ),
  60.         ),
  61.     );
  62. }
  63.  
  64. ?>

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