bcast-bridge/web/include.php

27 lines
513 B
PHP
Raw Normal View History

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');
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();
}
}
?>