Skip to content

Commit 3553b92

Browse files
committed
Remove check that forced to edit just the one dkim record, #5337
1 parent a6164cb commit 3553b92

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

interface/web/dns/dns_dkim_edit.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,6 @@ function onShowNew() {
7070
}
7171

7272
parent::onShowNew();
73-
74-
$soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = ? AND " . $app->tform->getAuthSQL('r'), $_GET['zone']);
75-
$sql=$app->db->queryOneRecord("SELECT domain, dkim_public, dkim_selector, dkim FROM mail_domain WHERE domain = ? AND " . $app->tform->getAuthSQL('r'), substr_replace($soa['origin'],'',-1));
76-
if(isset($sql['domain']) && $sql['domain'] != '') {
77-
if($sql['dkim'] == 'y') {
78-
$public_key=str_replace(array('-----BEGIN PUBLIC KEY-----','-----END PUBLIC KEY-----',"\r","\n"),'',$sql['dkim_public']);
79-
$app->tpl->setVar('public_key', $public_key, true);
80-
$app->tpl->setVar('selector', $sql['dkim_selector'], true);
81-
} else {
82-
//TODO: show warning - use mail_domain for dkim and enabled dkim
83-
}
84-
$app->tpl->setVar('edit_disabled', 1);
85-
} else {
86-
$app->tpl->setVar('edit_disabled', 0);
87-
}
88-
$app->tpl->setVar('name', $soa['origin'], true);
89-
9073
}
9174

9275
function onSubmit() {

0 commit comments

Comments
 (0)