本文整理匯總了PHP中settings::get_config方法的典型用法代碼示例。如果您正苦於以下問題:PHP settings::get_config方法的具體用法?PHP settings::get_config怎麽用?PHP settings::get_config使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類settings
的用法示例。
在下文中一共展示了settings::get_config方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: settings
@ini_set('memory_limit', '128M');
// Set PHP error handler to ours
set_error_handler(array('qi', 'msg_handler'), E_ALL);
// Make sure we have phpBB.
if (!file_exists($quickinstall_path . 'sources/phpBB3/common.' . $phpEx)) {
gen_error_msg('phpBB not found. You need to download the latest phpBB 3.0.x, 3.1.x or 3.2.x from <a href="https://www.phpbb.com/downloads/">https://www.phpbb.com/downloads/</a>,<br />extract it and copy the phpBB3 folder to sources/. Choose the version you do most work with, for your own convenience.');
}
// Let's get the config.
$page = legacy_request_var('page', 'main');
$mode = legacy_request_var('mode', '');
$profile = legacy_request_var('qi_profile', '');
$page = $page == 'docs' ? 'about' : $page;
$settings = new settings($profile, $mode);
// This is only usefull when working on QI.
if (file_exists($quickinstall_path . 'purge_cache')) {
$cache_dir = $settings->get_config('cache_dir', '');
if (!empty($cache_dir)) {
$cache_dir = $quickinstall_path . $cache_dir;
$dh = opendir($cache_dir);
while (($file = readdir($dh)) !== false) {
if ($file[0] != '.') {
unlink($cache_dir . $file);
}
}
closedir($dh);
}
}
// We need some phpBB functions too.
$alt_env = $settings->get_config('alt_env', '');
$alt_env_missing = false;
if ($alt_env !== '') {