cvs: pear /Forum/lib forum.php

From: Date: Mon, 15 Oct 2001 18:01:12 +0000
Subject: cvs: pear /Forum/lib forum.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1025@lists.php.net to get a copy of this message
cox Mon Oct 15 14:01:12 2001 EDT Modified files: /pear/Forum/lib forum.php Log: Pear DB support Index: pear/Forum/lib/forum.php diff -u pear/Forum/lib/forum.php:1.2 pear/Forum/lib/forum.php:1.3 --- pear/Forum/lib/forum.php:1.2 Sun Oct 7 12:46:45 2001 +++ pear/Forum/lib/forum.php Mon Oct 15 14:01:11 2001 @@ -54,7 +54,7 @@ if($FORUM["DEBUG"]==TRUE) { error_reporting(E_ALL); - + function my_print_r($var) { print "<DIV ALIGN=\"left\"><PRE>";print_r($var);print "</PRE></DIV>"; } @@ -86,7 +86,7 @@ /** - * Load required class files + * Load required class files * * @package Forum lib * @author Morgan Christiansson <mog@linux.nu> @@ -144,10 +144,16 @@ //No, this isn't always needed, admin for example, should be required_once on demand //require_once("$FORUM[LIB]/classes/Forum.php"); -require_once("$FORUM[LIB]/classes/db/MysqlStandard.php"); -require_once("$FORUM[LIB]/classes/db/MysqlUser.php"); -require_once("$FORUM[LIB]/plugins/plugin.php"); +if ($FORUM['USE_PEARDB']) { + include_once ($FORUM['LIB'] . '/classes/db/PearDb.php'); + include_once ($FORUM['LIB'] . '/classes/db/PearDbStandar.php'); + include_once ($FORUM['LIB'] . '/classes/db/PearDbUser.php'); +} else { + include_once("$FORUM[LIB]/classes/db/MysqlStandard.php"); + include_once("$FORUM[LIB]/classes/db/MysqlUser.php"); +} +require_once("$FORUM[LIB]/plugins/plugin.php"); #$FORUM["USERDB"] = new MysqlUser; #$FORUM["USERDB"]->user_table = "forum4_user"; $FORUM["USERDB"] = NULL; @@ -168,7 +174,7 @@ * ); * * $content returns only the values which keys exist in the second argument. - * + * * @param $array * * @author Morgan Christiansson <mog@linux.nu>

« previous php.pear.cvs (#1025) next »