From bae250cc81b831236583e886920c37999978ab3c Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Sun, 12 Jul 2020 09:39:39 +0200 Subject: [PATCH 1/2] DNS: add link for downloading zonefile (#3633) * DNS: add link for downloading zonefile * DNS zonefile: add placeholders for optional entries --- data/web/inc/ajax/dns_diagnostics.php | 35 ++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/data/web/inc/ajax/dns_diagnostics.php b/data/web/inc/ajax/dns_diagnostics.php index 4ee6f92e..b84d01b4 100644 --- a/data/web/inc/ajax/dns_diagnostics.php +++ b/data/web/inc/ajax/dns_diagnostics.php @@ -302,7 +302,7 @@ $data_field = array( %s %s ', $record[0], $record[1], $record[2], $state); + $record[3] = explode('
', $state); } +unset($record); ?> + 0) + $vals[] = sprintf("%s\tIN\t%s\t%s\n", $label, $record[1], $val); + } + } else { + $vals[] = sprintf("%s\tIN\t%s\t%s\n", $label, $record[1], $val); + } + foreach ($vals as $val) { + $data .= str_replace($domain, $domain . '.', $val); + } + } +} +echo 'Download'; +?>

1
From bbf147242499d970087dfa7b65e1389d03fe38ed Mon Sep 17 00:00:00 2001 From: Miro Rauhala <4082806+mirorauhala@users.noreply.github.com> Date: Sun, 12 Jul 2020 11:15:12 +0300 Subject: [PATCH 2/2] [WEB] fix undefined elements (#3651) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [WEB] $lang is not used in this context * [Web] $stmt variable is not used * [WEB] fix undefined function * [WEB] remove undefined variable $display --- data/web/json_api.php | 2 +- data/web/mailbox.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/web/json_api.php b/data/web/json_api.php index a05497a8..f0053680 100644 --- a/data/web/json_api.php +++ b/data/web/json_api.php @@ -551,7 +551,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u break; default: - $data = rsetting('details', $object); + $data = rsettings('details', $object); process_get_return($data); break; } diff --git a/data/web/mailbox.php b/data/web/mailbox.php index 366aea09..18125049 100644 --- a/data/web/mailbox.php +++ b/data/web/mailbox.php @@ -461,7 +461,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];

-
+