* @license PHP License * @package Wombat * @subpackage base */ $base = dirname( __FILE__ ); $system = $base . '/../wombat2'; // dynamic loader if (file_exists($base . '/etc/wbLoader.php')) { include $base . '/etc/wbLoader.php'; } include $system . '/include/WB/Class.php'; // set error reporting //WBParam::set('wb/error/reporting', E_ALL | E_STRICT); WBParam::set('wb/error/php4', 'ignore'); // 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'); $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); */ // detect browser and switch data URIs off WBParam::set('wb/html/datauri/use', 1); if (isset($_SERVER['HTTP_USER_AGENT'])) { if (preg_match('/MSIE\s+(.*);/U', $_SERVER['HTTP_USER_AGENT'], $match)) { $version = array(1,0); if (strstr($match[1], '.')) { $version = array_map('intval', explode('.', $match[1])); } if ($version[0] < 8) { WBParam::set('wb/html/datauri/use', 0); } } } // source local parameter if (file_exists($base . '/etc/config.php')) { include $base . '/etc/config.php'; }