diff --git a/install/froxlor.sql.php b/install/froxlor.sql.php index 0c4a71e1..db972a94 100644 --- a/install/froxlor.sql.php +++ b/install/froxlor.sql.php @@ -733,7 +733,7 @@ opcache.validate_timestamps'), ('panel', 'logo_overridecustom', '0'), ('panel', 'settings_mode', '0'), ('panel', 'menu_collapsed', '1'), - ('panel', 'version', '2.2.5'), + ('panel', 'version', '2.2.6'), ('panel', 'db_version', '202412030'); diff --git a/install/updates/froxlor/update_2.2.inc.php b/install/updates/froxlor/update_2.2.inc.php index ae61ad40..4c4529b8 100644 --- a/install/updates/froxlor/update_2.2.inc.php +++ b/install/updates/froxlor/update_2.2.inc.php @@ -245,3 +245,8 @@ if (Froxlor::isDatabaseVersion('202411200')) { Froxlor::updateToDbVersion('202412030'); } + +if (Froxlor::isFroxlorVersion('2.2.5')) { + Update::showUpdateStep("Updating from 2.2.5 to 2.2.6", false); + Froxlor::updateToVersion('2.2.6'); +} diff --git a/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php b/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php index 0f971dbf..36716fc6 100644 --- a/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php +++ b/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php @@ -233,9 +233,7 @@ class AcmeSh extends FroxlorCron "); $froxlor_ssl = Database::pexecute_first($froxlor_ssl_settings_stmt); // also check for possible existing certificate - if (($froxlor_ssl && empty($froxlor_ssl['validtodate'])) - || (!$froxlor_ssl && !self::checkFsFilesAreNewer(Settings::Get('system.hostname'), date('Y-m-d H:i:s'))) - ) { + if (!$froxlor_ssl || empty($froxlor_ssl['validtodate'])) { return true; } } diff --git a/lib/Froxlor/Froxlor.php b/lib/Froxlor/Froxlor.php index 6f386560..eb11253c 100644 --- a/lib/Froxlor/Froxlor.php +++ b/lib/Froxlor/Froxlor.php @@ -31,7 +31,7 @@ final class Froxlor { // Main version variable - const VERSION = '2.2.5'; + const VERSION = '2.2.6'; // Database version (YYYYMMDDC where C is a daily counter) const DBVERSION = '202412030'; diff --git a/templates/Froxlor/assets/js/jquery/domains.js b/templates/Froxlor/assets/js/jquery/domains.js index 2322c8bd..94b1231f 100644 --- a/templates/Froxlor/assets/js/jquery/domains.js +++ b/templates/Froxlor/assets/js/jquery/domains.js @@ -67,6 +67,38 @@ export default function () { }); } + // show warning if emaildomain option is set to disabled but was enabled + if ($('input[name=emaildomainverified]')) { + $('input[name=isemaildomain]').on('click', function () { + $('#emaildomainnote').remove(); + $('#isemaildomain').removeClass('is-invalid'); + $('#emaildomainverified').val(0); + const cFileName = window.location.pathname.substring(window.location.pathname.lastIndexOf("/")+1); + $.ajax({ + url: cFileName + "?page=overview&action=jqEmaildomainNote", + type: "POST", + data: { + id: $('input[name=id]').val(), newval: +$('#isemaildomain').is(':checked') + }, + dataType: "json", + async: false, + beforeSend: function (request) { + request.setRequestHeader('X-CSRF-TOKEN', document.querySelector('meta[name="csrf-token"]').getAttribute('content')); + }, + success: function (json) { + if (json.changed) { + $('#isemaildomain').addClass('is-invalid'); + $('#isemaildomain').parent().append(json.info); + $('#emaildomainverified').val(1); + } + }, + error: function (a, b) { + console.log(a, b); + } + }); + }); + } + /** * email only domain - hide unnecessary/unused sections */