2006-12-11 21:36:44 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
define('BASEDIR', '/var/www/bridge/');
|
|
|
|
|
|
|
|
define('DB_HOST', 'localhost');
|
|
|
|
define('DB_USER', 'bridge');
|
|
|
|
define('DB_PASS', 'bridge');
|
|
|
|
define('DB_NAME', 'bridge');
|
|
|
|
|
2006-12-22 00:06:05 +01:00
|
|
|
define('RRDTOOL', '/usr/bin/rrdtool');
|
|
|
|
define('RRDPATH', '/var/lib/rrd');
|
|
|
|
|
2006-12-11 21:36:44 +01:00
|
|
|
function __autoload($classname)
|
|
|
|
{
|
|
|
|
$filename = $classname.'.class.php';
|
|
|
|
|
|
|
|
if (is_readable(BASEDIR.'include/'.$filename)) {
|
|
|
|
require_once(BASEDIR.'include/'.$filename);
|
|
|
|
|
|
|
|
} else if (is_readable(BASEDIR.'include/db_'.$filename)) {
|
|
|
|
require_once(BASEDIR.'include/db_'.$filename);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
echo "Missing Class: '$classname'";
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|