* @license PHP License * @package Wombat * @subpackage base */ $base = __DIR__; $system = $base . '/../wombat4'; // dynamic loader if (file_exists($base . '/etc/wbLoader.php')) { include $base . '/etc/wbLoader.php'; } include $system . '/include/WB/Class.php'; // tell where base dir is WBParam::set('wb/dir/base', $base); // turn off statistic features // WBParam::set('wb/statistic/use', 0); /* // add include path $incPath = WBParam::get('wb/class/includePath'); array_unshift($incPath, $base . '/include'); WBParam::set('wb/class/includePath', $incPath); // make custom classes available to class loader $local = WBParam::get('wb/class/local'); $local['XY'] = 'XY/'; WBParam::set('wb/class/local', $local); */ /* // add resouce base dir: additional folder for resource and template $resPath = WBParam::get('wb/dir/resource'); array_unshift($resPath, '/some/folder'); WBParam::set('wb/dir/resource', $resPath); */ // source local parameter if (file_exists($base . '/etc/config.php')) { include $base . '/etc/config.php'; }