Source for file conf.php
Documentation is available at conf.php
define('EMAIL_WEBMASTER', 'krausbn@php.net');
//$path_to_liveuser_dir = 'path/to/pear/'.PATH_SEPARATOR;
//ini_set('include_path', $path_to_liveuser_dir . ini_get('include_path'));
include_once 'HTML/Template/IT.php';
$tpl = new HTML_Template_IT ();
$tpl->loadTemplatefile ('error-page.tpl.php');
$tpl->setVariable ('error_msg', " <b>$errfile ($errline)</b><br />$errstr" );
$error_string = $err_obj->getMessage () . '<br />' . $err_obj->getUserInfo ();
PEAR ::setErrorHandling (PEAR_ERROR_CALLBACK , 'pear_error_handler');
// Data Source Name (DSN)
//$dsn = '{dbtype}://{user}:{passwd}@{dbhost}/{dbname}';
$dsn = 'mysqli://root:@localhost/liveuser_test_example4';
$db = & MDB2 ::connect ($dsn, true );
$db->setFetchMode (MDB2_FETCHMODE_ASSOC );
$tpl = new HTML_Template_IT ();
'authContainers' => array (
'auth_user_id' => 'authUserId',
'lastlogin' => 'lastLogin',
'is_active' => 'isActive',
'owner_user_id' => 'owner_user_id',
'owner_group_id' => 'owner_group_id',
'lastlogin' => 'timestamp',
'is_active' => 'boolean',
'owner_user_id' => 'integer',
'owner_group_id' => 'integer',
'owner_user_id' => false ,
'owner_group_id' => false ,
'passwordEncryptionMode' => 'MD5',
'file' => 'Auth_XML.xml',
'auth_user_id' => 'userId',
'lastlogin' => 'lastLogin',
'is_active' => 'isActive',
'permContainer' => array (
'perm_users' => 'perm_peoples',
require_once 'LiveUser.php';
$liveUserObj = & $notification->getNotificationObject ();
$username = (array_key_exists('username', $_REQUEST)) ? $_REQUEST['username'] : null;
$password = (array_key_exists('password', $_REQUEST)) ? $_REQUEST['password'] : null;
$liveUserObj->login ($username, $password);
if (!$liveUserObj->isLoggedIn ()) {
$tpl = new HTML_Template_IT ();
$tpl->loadTemplatefile ('loginform.tpl.php');
$tpl->setVariable ('form_action', $_SERVER['SCRIPT_NAME']);
if ($liveUserObj->getStatus ()) {
switch ($liveUserObj->getStatus ()) {
$tpl->touchBlock ('inactive');
$tpl->touchBlock ('idled');
$tpl->touchBlock ('expired');
$tpl->touchBlock ('failure');
// Create new LiveUser (LiveUser) object.
$LU->dispatcher ->addObserver ('forceLogin', 'forceLogin');
$logout = (array_key_exists('logout', $_REQUEST)) ? $_REQUEST['logout'] : false;
define('RIGHT_NEWS_CHANGE', 2 );
define('RIGHT_NEWS_DELETE', 3 );
Documentation generated on Mon, 11 Mar 2019 15:40:12 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|