* @license PHP License * @package WB * @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); */ /* $agent = 'Mozilla/4.0(?compatible; MSIE 6.0; Qihoo *)'; $agent = 'Mozilla/4.0 (compatible; MSIE *; Windows NT; Girafabot; girafabot at girafa dot com; http://www.girafa.com)'; $agent = 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Webaroo/*)'; $agent = 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Webaroo/*)'; $agent = 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; *MSOffice 12)'; $agent = 'Mozilla/4.0 (compatible; MSIE 8.0; *AOL 9.0*; *Windows NT 6.1*'; $agent = 'Mozilla/4.0 (compatible; MSIE 8.0; AOL 9.5; AOLBuild*; Windows NT 6.1; Trident/4.0*)*'; $agent = 'Mozilla/*(*MSIE 10.*Windows NT 5.1*Trident/6.0*)*'; $agent = 'Mozilla/4.0(?compatible; MSIE 6.0; Qihoo *)'; $_SERVER['HTTP_USER_AGENT'] = $agent; */ // detect browser and switch features //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'; } ?>