show antispam options for email-editing only if enabled
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -103,18 +103,21 @@ return [
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
'spam_tag_level' => [
|
'spam_tag_level' => [
|
||||||
|
'visible' => Settings::Get('antispam.activated') == '1',
|
||||||
'label' => lng('antispam.spam_tag_level'),
|
'label' => lng('antispam.spam_tag_level'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'string_regexp' => '/^\d{1,}(\.\d{1,2})?$/',
|
'string_regexp' => '/^\d{1,}(\.\d{1,2})?$/',
|
||||||
'value' => $result['spam_tag_level']
|
'value' => $result['spam_tag_level']
|
||||||
],
|
],
|
||||||
'spam_kill_level' => [
|
'spam_kill_level' => [
|
||||||
|
'visible' => Settings::Get('antispam.activated') == '1',
|
||||||
'label' => lng('antispam.spam_kill_level'),
|
'label' => lng('antispam.spam_kill_level'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'string_regexp' => '/^\d{1,}(\.\d{1,2})?$/',
|
'string_regexp' => '/^\d{1,}(\.\d{1,2})?$/',
|
||||||
'value' => $result['spam_kill_level']
|
'value' => $result['spam_kill_level']
|
||||||
],
|
],
|
||||||
'bypass_spam' => [
|
'bypass_spam' => [
|
||||||
|
'visible' => Settings::Get('antispam.activated') == '1',
|
||||||
'label' => lng('antispam.bypass_spam'),
|
'label' => lng('antispam.bypass_spam'),
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => ((int)$result['bypass_spam'] == 0 ? lng('panel.no') : lng('panel.yes')),
|
'value' => ((int)$result['bypass_spam'] == 0 ? lng('panel.no') : lng('panel.yes')),
|
||||||
@@ -128,6 +131,7 @@ return [
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
'policy_greylist' => [
|
'policy_greylist' => [
|
||||||
|
'visible' => Settings::Get('antispam.activated') == '1',
|
||||||
'label' => lng('antispam.policy_greylist'),
|
'label' => lng('antispam.policy_greylist'),
|
||||||
'type' => 'label',
|
'type' => 'label',
|
||||||
'value' => ((int)$result['policy_greylist'] == 0 ? lng('panel.no') : lng('panel.yes')),
|
'value' => ((int)$result['policy_greylist'] == 0 ? lng('panel.no') : lng('panel.yes')),
|
||||||
|
|||||||
Reference in New Issue
Block a user