Skip to content

Commit 6ea3d05

Browse files
author
Kristan Kenney
committed
Hide antivirus/antispam options if not installed
1 parent 4911d7f commit 6ea3d05

File tree

2 files changed

+111
-96
lines changed

2 files changed

+111
-96
lines changed

web/templates/admin/add_mail.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,20 @@
102102
</td>
103103
</tr>
104104
<?php } ?>
105+
<? if (!empty($_SESSION['ANTISPAM_SYSTEM'])) {?>
105106
<tr>
106107
<td class="vst-text input-label step-top">
107108
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_antispam" <?php if ((empty($v_antispam)) || ($v_antispam == 'yes')) echo "checked=yes"; ?>><?php print _('AntiSpam Support');?></label>
108109
</td>
109110
</tr>
111+
<? } ?>
112+
<? if (!empty($_SESSION['ANTIVIRUS_SYSTEM'])) {?>
110113
<tr>
111114
<td class="vst-text input-label">
112115
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_antivirus" <?php if ((empty($v_antivirus)) || ($v_antivirus == 'yes')) echo "checked=yes"; ?>><?php print _('AntiVirus Support');?></label>
113116
</td>
114117
</tr>
118+
<? } ?>
115119
<tr>
116120
<td class="vst-text input-label">
117121
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_dkim" <?php if (isset($v_dkim)&&$v_dkim == 'yes') echo "checked=yes"; ?>><?php print _('DKIM Support');?></label>

0 commit comments

Comments
 (0)