Permalink
Browse files

use a prefix in the auth container as well, use mysqli as well

git-svn-id: http://svn.php.net/repository/pear/packages/LiveUser/trunk@277169 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 66bf678 commit 19cf12ccfe737830ffdc1ba84c3c8ace7ed6c7e4 @helgi helgi committed Mar 14, 2009
Showing with 4 additions and 3 deletions.
  1. +4 −3 docs/examples/example4/conf.php
@@ -6,7 +6,7 @@
//$path_to_liveuser_dir = 'path/to/pear/'.PATH_SEPARATOR;
//ini_set('include_path', $path_to_liveuser_dir . ini_get('include_path'));
-error_reporting(E_ALL);
+error_reporting(1803);
require_once 'PEAR.php';
include_once 'HTML/Template/IT.php';
@@ -35,7 +35,7 @@ function pear_error_handler($err_obj)
// Data Source Name (DSN)
//$dsn = '{dbtype}://{user}:{passwd}@{dbhost}/{dbname}';
-$dsn = 'mysql://root:@localhost/liveuser_test_example4';
+$dsn = 'mysqli://root:@localhost/liveuser_test_example4';
$db =& MDB2::connect($dsn, true);
$db->setFetchMode(MDB2_FETCHMODE_ASSOC);
@@ -57,6 +57,7 @@ function pear_error_handler($err_obj)
'idleTime' => 1800,
'storage' => array(
'dsn' => $dsn,
+ 'prefix' => 'liveuser_',
'alias' => array(
'auth_user_id' => 'authUserId',
'lastlogin' => 'lastLogin',
@@ -166,7 +167,7 @@ function showLoginForm(&$liveUserObj)
if (!$LU->init()) {
var_dump($LU->getErrors());
- die();
+ exit;
}
$logout = (array_key_exists('logout', $_REQUEST)) ? $_REQUEST['logout'] : false;

0 comments on commit 19cf12c

Please sign in to comment.