Source for file config_mdb2.inc.php
Documentation is available at config_mdb2.inc.php
require_once 'LiveUser.php';
// Plase configure the following file according to your environment
$dsn = " mysql://$db_user:$db_pass@$db_host/$db_name";
//$db = MDB2::connect($dsn, array('sequence_col_name' => 'id'));
$db = MDB2 ::connect ($dsn);
if (MDB2 ::isError ($db)) {
echo $db->getMessage () . ' ' . $db->getUserInfo ();
$db->setFetchMode (MDB2_FETCHMODE_ASSOC );
'remember' => 'rememberMe'
'redirect' => 'home.php',
'authContainers' => array (
'allowDuplicateHandles' => 0 ,
'authTable' => 'liveuser_users',
'authTableCols' => array (
'user_id' => array ('name' => 'auth_user_id', 'type' => 'text'),
'handle' => array ('name' => 'handle', 'type' => 'text'),
'passwd' => array ('name' => 'passwd', 'type' => 'text'),
'lastlogin' => array ('name' => 'lastlogin', 'type' => 'timestamp'),
'is_active' => array ('name' => 'is_active', 'type' => 'boolean'),
'owner_user_id' => array ('name' => 'owner_user_id', 'type' => 'integer'),
'owner_group_id' => array ('name' => 'owner_group_id', 'type' => 'integer')
'permContainer' => array (
PEAR ::setErrorHandling (PEAR_ERROR_RETURN );
$usr->setLoginFunction ('logIn');
$usr->setLogOutFunction ('logOut');
die ($e->getMessage () . ' ' . $e->getUserinfo ());
Documentation generated on Mon, 11 Mar 2019 10:16:02 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|