Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 19cf12ccfe737830ffdc1ba84c3c8ace7ed6c7e4 1 parent 66bf678
Helgi Þormar Þorbjörnsson helgi authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 3 docs/examples/example4/conf.php
7 docs/examples/example4/conf.php
@@ -6,7 +6,7 @@
6 6 //$path_to_liveuser_dir = 'path/to/pear/'.PATH_SEPARATOR;
7 7 //ini_set('include_path', $path_to_liveuser_dir . ini_get('include_path'));
8 8
9   -error_reporting(E_ALL);
  9 +error_reporting(1803);
10 10
11 11 require_once 'PEAR.php';
12 12 include_once 'HTML/Template/IT.php';
@@ -35,7 +35,7 @@ function pear_error_handler($err_obj)
35 35
36 36 // Data Source Name (DSN)
37 37 //$dsn = '{dbtype}://{user}:{passwd}@{dbhost}/{dbname}';
38   -$dsn = 'mysql://root:@localhost/liveuser_test_example4';
  38 +$dsn = 'mysqli://root:@localhost/liveuser_test_example4';
39 39
40 40 $db =& MDB2::connect($dsn, true);
41 41 $db->setFetchMode(MDB2_FETCHMODE_ASSOC);
@@ -57,6 +57,7 @@ function pear_error_handler($err_obj)
57 57 'idleTime' => 1800,
58 58 'storage' => array(
59 59 'dsn' => $dsn,
  60 + 'prefix' => 'liveuser_',
60 61 'alias' => array(
61 62 'auth_user_id' => 'authUserId',
62 63 'lastlogin' => 'lastLogin',
@@ -166,7 +167,7 @@ function showLoginForm(&$liveUserObj)
166 167
167 168 if (!$LU->init()) {
168 169 var_dump($LU->getErrors());
169   - die();
  170 + exit;
170 171 }
171 172
172 173 $logout = (array_key_exists('logout', $_REQUEST)) ? $_REQUEST['logout'] : false;

0 comments on commit 19cf12c

Please sign in to comment.
Something went wrong with that request. Please try again.