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

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