Source for file conf.php
Documentation is available at conf.php
if (defined('DIRECTORY_SEPARATOR') && DIRECTORY_SEPARATOR == "\\") {
define('PATH_SEPARATOR', ';');
define('PATH_SEPARATOR', ':');
define('LAUNCH_ATOMIC_BOMB', 4 );
define('FLY_ALIEN_SPACE_CRAFT', 5 );
// set this to the path in which the directory for liveuser resides
// more remove the following two lines to test LiveUser in the standard
//$path_to_liveuser_dir = './pear/'.PATH_SEPARATOR;
//ini_set('include_path', $path_to_liveuser_dir.ini_get('include_path'));
// Data Source Name (DSN)
$dsn = 'mysql://root@localhost/liveuser_admin_test_example3';
'session' => array ('name' => 'PHPSESSID','varname' => 'loginInfo'),
'logout' => array ('destroy' => true ),
'secret' => 'mysecretkey',
'authContainers' => array (
'allowDuplicateHandles' => 1 ,
'passwordEncryptionMode' => 'PLAIN',
'auth_user_id' => 'authuserid',
'lastlogin' => 'lastlogin',
'is_active' => 'isactive',
'lastlogin' => 'timestamp',
'is_active' => 'boolean',
'permContainer' => array (
// Get LiveUser class definition
require_once 'LiveUser.php';
// The error handling stuff is not needed and used only for debugging
// while LiveUser is not yet mature
PEAR ::setErrorHandling (PEAR_ERROR_CALLBACK , 'eHandler');
echo ('<hr /><span style="color: red;">' . $errObj->getMessage () . ':<br />' . $errObj->getUserInfo () . '</span><hr />');
$message= 'Debug backtrace:'. "\n";
foreach ($debug_backtrace as $trace_item) {
if (isset ($trace_item['file'])) {
$message.= basename($trace_item['file']) . ':' . $trace_item['line'];
$message.= '- PHP inner-code - ';
if (isset ($trace_item['class'])) {
$message.= $trace_item['class'] . $trace_item['type'];
$message.= $trace_item['function'];
if (isset ($trace_item['args']) && is_array($trace_item['args'])) {
$message.= '('. @implode(', ', $trace_item['args']). ')';
echo " <pre>$message</pre>";
// Create new LiveUser object
$LU = & LiveUser ::factory ($liveuserConfig);
$handle = (isset ($_REQUEST['handle'])) ? $_REQUEST['handle'] : null;
$passwd = (isset ($_REQUEST['passwd'])) ? $_REQUEST['passwd'] : null;
$logout = (isset ($_REQUEST['logout'])) ? $_REQUEST['logout'] : false;
$remember = (isset ($_REQUEST['rememberMe'])) ? $_REQUEST['rememberMe'] : false;
if (!$LU->init ($handle, $passwd, $logout, $remember)) {
require_once 'LiveUser/Admin.php';
$luadmin->setAdminContainers ();
$language_selected = isset ($_GET['language']) ? $_GET['language'] : 'de';
Documentation generated on Mon, 11 Mar 2019 14:16:43 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|