* @package wombat * @subpackage base */ $base = __DIR__; $system = $base . '/../wombat4'; // dynamic loader if (file_exists($base . '/etc/wbLoader.php')) { include $base . '/etc/wbLoader.php'; } require $system . '/include/WB/Class.php'; // tell where base dir is WBParam::set('wb/dir/base', $base); $incPath = WBParam::get('wb/class/includePath'); array_unshift($incPath, $base . '/include'); WBParam::set('wb/class/includePath', $incPath); // add Whatever for local class loader $local = WBParam::get('wb/class/local'); $local['Whatever'] = 'Whatever/'; WBParam::set('wb/class/local', $local); // source local parameter if (file_exists($base . '/etc/config.php')) { include $base . '/etc/config.php'; }