Source for file config_mdb2.inc.php
Documentation is available at config_mdb2.inc.php
// $Id: config_mdb2.inc.php,v 1.5 2004/06/19 18:04:46 arnaud Exp $
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 (
'auth_user_id' => array ('type' => 'text', 'name' => 'auth_user_id'),
'handle' => array ('type' => 'text', 'name' => 'handle'),
'passwd' => array ('type' => 'text', 'name' => 'passwd')
'lastlogin' => array ('type' => 'timestamp', 'name' => 'lastlogin'),
'is_active' => array ('type' => 'boolean', 'name' => 'is_active'),
'owner_user_id' => array ('type' => 'integer', 'name' => 'owner_user_id'),
'owner_group_id' => array ('type' => 'integer', 'name' => 'owner_group_id')
'name' => array ('type' => 'text', 'name' => 'name'),
'email' => array ('type' => 'text', 'name' => 'email'),
'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 13:56:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|