3 // alot of this file needs migrating to the Framework..
6 ini_set('include_path',
7 dirname(__FILE__). ':' .
8 dirname(__FILE__).'/pearfix:' .
9 dirname(__FILE__).'/pear:' .
10 ini_get('include_path'));
12 define('DB_DATAOBJECT_NO_OVERLOAD', true);
13 $bd = dirname(__FILE__).'/Pman';
19 // since the builder does not have direct access to submodule databases
20 // we have to load them all up here..
21 foreach(scandir($bd) as $d) {
22 if (!strlen($d) || $d[0] == '.' || !file_exists("$bd/$d/DataObjects")) {
25 $pa[] = "$bd/$d/DataObjects/pman.ini";
26 $cl[] = "$bd/$d/DataObjects";
27 $cp[] = 'Pman_'.$d.'_DataObjects_';
31 $db = 'mysql://??:@??/pman';
32 $dbp = parse_url($db);
34 require_once 'HTML/FlexyFramework.php';
37 new HTML_FlexyFramework( rray(
41 'enable' => 'Core,Builder',
43 'appNameShort' => "Builder",
44 'appName' => "Application Builder",
46 //'database' => 'mysql://root:@localhost/clippingdev',
48 'storedir' => '/home/edoc',
50 'eximspool' => '/var/spool/exim4',
52 'isDev' => true, // in future we need to suport non dev versions (which have single DB dir etc.
57 'DB_DataObject' => array(
58 'class_location' => implode(PATH_SEPARATOR, $cl),
59 'class_prefix' => implode(PATH_SEPARATOR, $cp),
60 // this needs fixing for other
61 'ini_' . basename($dbp['path']) => implode(PATH_SEPARATOR, $pa),