* @license https://files.froxlor.org/misc/COPYING.txt GPLv2 */ use Froxlor\Froxlor; use Froxlor\FileDir; 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).'; $return['system_le_domain_dnscheck_note'] = ['type' => 'infotext', 'value' => $description]; $question = 'Validate DNS of domains when using Lets Encrypt '; $return['system_le_domain_dnscheck'] = ['type' => 'checkbox', 'value' => 1, 'checked' => 1, 'label' => $question]; } $preconfig['fields'] = $return; return $preconfig;