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 != false && $xml_is_writable != false{
  21.  
  22.     $liveuserConfig = array(
  23.         'login'             => array('username' => 'handle''password' => 'passwd''remember' => 'remember'),
  24.         'logout'            => array('trigger' => 'logout'),
  25.         'cookie'            => array('name' => 'loginInfo''path' => '''domain' => '''lifetime' => 30),
  26.         'authContainers'    => array(0 => array(
  27.                                             'type' => 'XML',
  28.                                             'file' => 'Auth_XML.xml',
  29.                                             'loginTimeout' => 0,
  30.                                             'expireTime'   => 3600,
  31.                                             'idleTime'     => 1800,
  32.                                             'allowDuplicateHandles'  => false,
  33.                                             'passwordEncryptionMode' => 'MD5'
  34.                                            )
  35.         ),
  36.         'permContainer'     => array('type'   => 'XML_Simple',
  37.                                      'file' => 'Perm_XML.xml'
  38.         ),
  39.     );
  40.     // Get LiveUser class definition
  41.     require_once 'LiveUser.php';
  42. }
  43. ?>

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