3 $BASE_DIR = realpath(dirname(__FILE__)."/../");
6 global $BASE_DIR, $HOST_TYPES, $DB_HANDLE;
9 require_once("www.php");
10 require_once("db.php");
11 require_once("xmlrpc.php");
14 if(file_exists("../etc/config.php")) require_once("../etc/config.php");
16 // first and foremost, load the plugins
17 $basedir = dirname(__FILE__);
20 if(is_dir("$basedir")) {
21 $dh = opendir("$basedir");
23 while(($file = readdir($dh))!==false) {
24 $mt = preg_match("/.*\.plugin\.php$/", $file);
26 require_once("$basedir/$file");
27 //echo "required $basedir/$file\n";
32 echo "No plugins dir ($basedir/plugins), continuing without\n";