getName(InstDescMng::TYPE_INST_NOTICES); $GLOBALS["CHUNK_DATA_FILE_PATH"] = DUPX_INIT . '/' . InstDescMng::getInstance()->getName(InstDescMng::TYPE_INST_CHUNK_DATA); $GLOBALS['PHP_MEMORY_LIMIT'] = ini_get('memory_limit') === false ? 'n/a' : ini_get('memory_limit'); $GLOBALS['PHP_SUHOSIN_ON'] = Shell::isSuhosinEnabled() ? 'enabled' : 'disabled'; $GLOBALS['DISPLAY_MAX_OBJECTS_FAILED_TO_SET_PERM'] = 5; // Displaying notice for slow zip chunk extraction $GLOBALS['ZIP_ARC_CHUNK_EXTRACT_DISP_NOTICE_AFTER'] = 5 * 60 * 60; // 5 minutes $GLOBALS['ZIP_ARC_CHUNK_EXTRACT_DISP_NOTICE_MIN_EXPECTED_EXTRACT_TIME'] = 10 * 60 * 60; // 10 minutes $GLOBALS['ZIP_ARC_CHUNK_EXTRACT_DISP_NEXT_NOTICE_INTERVAL'] = 5 * 60 * 60; // 5 minutes $additional_msg = ' for additional details click here.'; $GLOBALS['ZIP_ARC_CHUNK_EXTRACT_NOTICES'] = [ 'This server looks to be under load or throttled, the extraction process may take some time', 'This host is currently experiencing very slow I/O. You can continue to wait or try a manual extraction.', 'This host I/O is currently having issues. It is recommended to try a manual extraction.', ]; foreach ($GLOBALS['ZIP_ARC_CHUNK_EXTRACT_NOTICES'] as $key => $val) { $GLOBALS['ZIP_ARC_CHUNK_EXTRACT_NOTICES'][$key] = $val . $additional_msg; } $GLOBALS['FW_USECDN'] = false; $GLOBALS['NOW_TIME'] = @date("His"); } /** * Is debug mode enabled * * @return bool */ public static function isDebugMode(): bool { return self::DEBUG_MODE; } }