@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 !== '') {
@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 or phpBB 3.1.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 !== '') {