27 lines
513 B
PHP
27 lines
513 B
PHP
|
<?php
|
||
|
|
||
|
define('BASEDIR', '/var/www/bridge/');
|
||
|
|
||
|
define('DB_HOST', 'localhost');
|
||
|
define('DB_USER', 'bridge');
|
||
|
define('DB_PASS', 'bridge');
|
||
|
define('DB_NAME', 'bridge');
|
||
|
|
||
|
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();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|