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.                     ),
  38.                 ),
  39.            ),
  40.         ),
  41.     );
  42.     // Get LiveUser class definition
  43.     require_once 'LiveUser.php';
  44. }
  45. ?>

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