本文整理汇总了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 !== '') {