cvs: pear /LiveUser/docs/examples/example1 conf.php example.php /LiveUser/docs/examples/example5 conf.php
| From: | Lukas Smith | Date: | Fri, 30 Sep 2005 11:08:41 +0000 |
| Subject: | cvs: pear /LiveUser/docs/examples/example1 conf.php example.php /LiveUser/docs/examples/example5 conf.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35169@lists.php.net to get a copy of this message | ||
lsmith Fri Sep 30 07:08:41 2005 EDT
Modified files:
/pear/LiveUser/docs/examples/example1 example.php conf.php
/pear/LiveUser/docs/examples/example5 conf.php
Log:
- updated to new log handling
http://cvs.php.net/diff.php/pear/LiveUser/docs/examples/example1/example.php?r1=1.10&r2=1.11&ty=u
Index: pear/LiveUser/docs/examples/example1/example.php
diff -u pear/LiveUser/docs/examples/example1/example.php:1.10
pear/LiveUser/docs/examples/example1/example.php:1.11
--- pear/LiveUser/docs/examples/example1/example.php:1.10 Thu Sep 29 15:54:15 2005
+++ pear/LiveUser/docs/examples/example1/example.php Fri Sep 30 07:08:41 2005
@@ -12,15 +12,14 @@
* No permission management is supported.
*
* @author Björn Kraus <krausbn@php.net>
- * @version $Id: example.php,v 1.10 2005/09/29 19:54:15 lsmith Exp $
+ * @version $Id: example.php,v 1.11 2005/09/30 11:08:41 lsmith Exp $
**/
error_reporting(E_ALL);
// Get LiveUser configuration array
require_once 'conf.php';
-require 'Log.php';
-if ($xml_is_readable == false || $xml_is_writable == false) {
+if (!isset($liveuserConfig)) {
die('<p style="color: red; text-align: center;">The XML file isn\'t
readable/writable. Add the right permissions to it and then try again.</p>');
}
@@ -61,8 +60,6 @@
// Create new LiveUser (LiveUser) object.
// We´ll only use the auth container, permissions are not used.
$LU =& LiveUser::factory($liveuserConfig);
-$logger = &Log::factory('liveuserlog');
-$LU->addErrorLog($logger);
$obs = new LU_Default_observer();
http://cvs.php.net/diff.php/pear/LiveUser/docs/examples/example1/conf.php?r1=1.3&r2=1.4&ty=u
Index: pear/LiveUser/docs/examples/example1/conf.php
diff -u pear/LiveUser/docs/examples/example1/conf.php:1.3
pear/LiveUser/docs/examples/example1/conf.php:1.4
--- pear/LiveUser/docs/examples/example1/conf.php:1.3 Thu Jul 28 07:20:24 2005
+++ pear/LiveUser/docs/examples/example1/conf.php Fri Sep 30 07:08:41 2005
@@ -14,11 +14,14 @@
# $path_to_liveuser_dir = 'PEAR/'.PATH_SEPARATOR;
# ini_set('include_path', $path_to_liveuser_dir.ini_get('include_path') );
-$xml_is_readable = is_readable('Auth_XML.xml');
-$xml_is_writable = is_writable('Auth_XML.xml');
+require_once 'LiveUser.php';
+require_once 'Log.php';
+
+if (is_readable('Auth_XML.xml') && is_writable('Auth_XML.xml')) {
+ $logger =& Log::factory('liveuserlog');
-if ($xml_is_readable && $xml_is_writable) {
$liveuserConfig = array(
+ 'debug' => &$logger,
'authContainers' => array(
0 => array(
'type' => 'XML',
@@ -58,7 +61,6 @@
),
),
);
- // Get LiveUser class definition
- require_once 'LiveUser.php';
}
-?>
+
+?>
\ No newline at end of file
http://cvs.php.net/diff.php/pear/LiveUser/docs/examples/example5/conf.php?r1=1.9&r2=1.10&ty=u
Index: pear/LiveUser/docs/examples/example5/conf.php
diff -u pear/LiveUser/docs/examples/example5/conf.php:1.9
pear/LiveUser/docs/examples/example5/conf.php:1.10
--- pear/LiveUser/docs/examples/example5/conf.php:1.9 Thu Sep 29 15:54:16 2005
+++ pear/LiveUser/docs/examples/example5/conf.php Fri Sep 30 07:08:41 2005
@@ -17,7 +17,7 @@
$conf =
array(
- 'autoInit' => false,
+ 'debug' => true,
'session' => array(
'name' => 'PHPSESSION',
'varname' => 'ludata'