* @license https://files.froxlor.org/misc/COPYING.txt GPLv2 */ use Froxlor\Install\Update; $preconfig = [ 'title' => '0.10.x updates', 'fields' => [] ]; $return = []; if (Update::versionInUpdate($current_db_version, '202004140')) { $has_preconfig = true; $description = 'Froxlor can now optionally validate the dns entries of domains that request Lets Encrypt certificates to reduce dns-related problems (e.g. freshly registered domain or updated a-record).'; $question = 'Validate DNS of domains when using Lets Encrypt '; $return['system_le_domain_dnscheck'] = [ 'type' => 'checkbox', 'value' => 1, 'checked' => 1, 'label' => $question, 'prior_infotext' => $description ]; } $preconfig['fields'] = $return; return $preconfig;