4 ini_set('include_path',
5 dirname(__FILE__). ':' .
6 dirname(__FILE__).'/pearfix:' .
7 dirname(__FILE__).'/pear:' .
8 ini_get('include_path'));
10 define('DB_DATAOBJECT_NO_OVERLOAD', true);
11 $bd = dirname(__FILE__).'/Pman';
17 // since the builder does not have direct access to submodule databases
18 // we have to load them all up here..
19 foreach(scandir($bd) as $d) {
20 if (!strlen($d) || $d[0] == '.' || !file_exists("$bd/$d/DataObjects")) {
23 $pa[] = "$bd/$d/DataObjects/pman.ini";
24 $cl[] = "$bd/$d/DataObjects";
25 $cp[] = 'Pman_'.$d.'_DataObjects_';
29 $db = 'mysql://??:@??/pman';
30 $dbp = parse_url($db);
32 require_once 'HTML/FlexyFramework.php';
35 new HTML_FlexyFramework( array(
39 'enable' => 'Core,Builder',
41 'appNameShort' => "Builder",
42 'appName' => "Application Builder",
44 //'database' => 'mysql://root:@localhost/clippingdev',
46 'storedir' => '/home/edoc',
48 'eximspool' => '/var/spool/exim4',
50 'isDev' => true, // in future we need to suport non dev versions (which have single DB dir etc.
55 'DB_DataObject' => array(
56 'class_location' => implode(PATH_SEPARATOR, $cl),
57 'class_prefix' => implode(PATH_SEPARATOR, $cp),
58 // this needs fixing for other
59 'ini_' . basename($dbp['path']) => implode(PATH_SEPARATOR, $pa),