4 ini_set('include_path',
5 dirname(__FILE__). ':' .
6 dirname(__FILE__).'/pear:' .
7 ini_get('include_path'));
9 // disable getter/setters - causes more trouble than it's worth.
10 define('DB_DATAOBJECT_NO_OVERLOAD', true);
12 // since the builder does not have direct access to submodule databases
13 // we have to load them all up here..
15 $bd = dirname(__FILE__).'/Pman';
20 foreach(scandir($bd) as $d) {
21 if (!strlen($d) || $d[0] == '.' || !file_exists("$bd/$d/DataObjects")) {
24 $pa[] = "$bd/$d/DataObjects/pman.ini";
25 $cl[] = "$bd/$d/DataObjects";
26 $cp[] = 'Pman_'.$d.'_DataObjects_';
30 $db = 'mysql://??:@??/pman';
31 $dbp = parse_url($db);
33 require_once 'HTML/FlexyFramework.php';
36 new HTML_FlexyFramework( array(
40 'enable' => 'Core,Builder',
42 'appNameShort' => "Builder",
43 'appName' => "Application Builder",
45 //'database' => 'mysql://root:@localhost/clippingdev',
47 'storedir' => '/home/edoc',
49 'eximspool' => '/var/spool/exim4',
51 'isDev' => true, // in future we need to suport non dev versions (which have single DB dir etc.
56 'DB_DataObject' => array(
57 'class_location' => implode(PATH_SEPARATOR, $cl),
58 'class_prefix' => implode(PATH_SEPARATOR, $cp),
59 // this needs fixing for other
60 'ini_' . basename($dbp['path']) => implode(PATH_SEPARATOR, $pa),