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');
include_once 'HTML/Template/IT.php';
$tpl = new HTML_Template_IT ();
$tpl->loadTemplatefile ('loginform.tpl.php');
$tpl->setVariable ('form_action', $_SERVER['PHP_SELF']);
if ($liveUserObj->status ) {
switch ($liveUserObj->status ) {
$tpl->touchBlock ('inactive');
$tpl->touchBlock ('idled');
$tpl->touchBlock ('expired');
$tpl->touchBlock ('failure');
// Data Source Name (DSN)
//$dsn = '{dbtype}://{user}:{passwd}@{dbhost}/{dbname}';
$dsn = 'mysql://root:@localhost/pear_test';
$db = & DB ::connect ($dsn, true );
$db->setFetchMode (DB_FETCHMODE_ASSOC );
require_once 'HTML/Template/IT.php';
$tpl = new HTML_Template_IT ();
require_once 'LiveUser.php';
'login' => array ('function' => 'showLoginForm',
'authContainers' => array (array ('type' => 'DB',
'allowDuplicateHandles' => 0 ,
'authTable' => 'liveuser_users',
'authTableCols' => array (
'auth_user_id' => array ('name' => 'auth_user_id', 'type' => ''),
'handle' => array ('name' => 'handle', 'type' => ''),
'passwd' => array ('name' => 'passwd', 'type' => ''),
'lastlogin' => array ('name' => 'lastlogin', 'type' => ''),
'is_active' => array ('name' => 'is_active', 'type' => '')
'permContainer' => array ('type' => 'DB_Complex',
define('RIGHT_NEWS_CHANGE', 2 );
define('RIGHT_NEWS_DELETE', 3 );
Documentation generated on Mon, 11 Mar 2019 13:56:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|