* @license PHP License * @package Wombat * @subpackage base */ $base = dirname( __FILE__ ); $system = $base . '/../wombat3'; // dynamic loader if (file_exists($base . '/etc/wbLoader.php')) { include $base . '/etc/wbLoader.php'; } require $system . '/include/WB/Class.php'; // use secure connection //WBParam::set('wb/request/http/protocol/default', 'https'); // 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); // PHPOffice requires autoloader WBParam::set('wb/class/autoload', false); // secure password algorithm WBParam::set('wb/user/password/algo', 'sha256'); WBParam::set('wb/user/password/algomigrate', 1); $incPath = WBParam::get('wb/class/includePath'); array_unshift($incPath, $base . '/include'); WBParam::set('wb/class/includePath', $incPath); // load pages from database /* WBParam::set('wb/config/loader/service/site', 'ConfigTable'); WBParam::set('wb/config/loader/service/ajax', 'ConfigTable'); WBParam::set('wb/config/loader/service/css', 'ConfigTable'); */ WBParam::set('wb/statistic/use', 0); WBParam::set('wb/statistic/browser/detect', 0); // source local parameter if (file_exists($base . '/etc/config.php')) { include $base . '/etc/config.php'; }