* @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'; // 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, but usually it's of no use 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/html/datauri/use', 1); WBParam::set('wb/html/datauri/maxsize', 301); WBParam::set('wb/vfs/mime/image/usepicture', 1); WBParam::set('wb/statistic/use', 1); WBParam::set('wb/statistic/browser/detect', 0); // source local parameter if (file_exists($base . '/etc/config.php')) { include $base . '/etc/config.php'; }