// "include" should be replaced with "import" once PHP gets it
$pkgname = 'DB/' . $type;
if (!is_array($USED_PACKAGES) || !$USED_PACKAGES[$pkgname]) {
- if (!@include("${pkgname}.php")) {
+ $file = "${pkgname}.php";
+ include($file);
+/*
+
+ This suddenly stopped working. I thought include() was supposed to
+ return a boolean? [ssb 20000218]
+
+ if (!include($file)) {
+ print "'$file' not found<br>\n";
return DB_ERROR_NOT_FOUND;
} else {
$USED_PACKAGES[$pkgname] = true;
}
+*/
}
$classname = 'DB_' . $type;
$obj = new $classname;