$value) {
++$i;
if ($data[$key]['SUSPENDED'] == 'yes') {
$status = 'suspended';
$spnd_action = 'unsuspend';
$spnd_action_title = _('Unsuspend');
$spnd_icon = 'fa-play';
$spnd_icon_class = 'icon-green';
$spnd_confirmation = _('Are you sure you want to unsuspend domain %s?');
if ($data[$key]['ANTIVIRUS'] == 'no') {
$antivirus_icon = 'fa-circle-xmark';
$antivirus_title = _('Disabled');
} else {
$antivirus_icon = 'fa-circle-check';
$antivirus_title = _('Enabled');
}
if ($data[$key]['ANTISPAM'] == 'no') {
$antispam_icon = 'fa-circle-xmark';
$antispam_title = _('Disabled');
} else {
$antispam_icon = 'fa-circle-check';
$antispam_title = _('Enabled');
}
if ($data[$key]['DKIM'] == 'no') {
$dkim_icon = 'fa-circle-xmark';
$dkim_title = _('Disabled');
} else {
$dkim_icon = 'fa-circle-check';
$dkim_title = _('Enabled');
}
if ($data[$key]['SSL'] == 'no') {
$ssl_icon = 'fa-circle-xmark';
$ssl_title = _('Disabled');
} else {
$ssl_icon = 'fa-circle-check';
$ssl_title = _('Enabled');
}
} else {
$status = 'active';
$spnd_action = 'suspend';
$spnd_action_title = _('Suspend');
$spnd_icon = 'fa-pause';
$spnd_icon_class = 'icon-highlight';
$spnd_confirmation = _('Are you sure you want to suspend domain %s?');
if ($data[$key]['ANTIVIRUS'] == 'no') {
$antivirus_icon = 'fa-circle-xmark icon-red';
$antivirus_title = _('Disabled');
} else {
$antivirus_icon = 'fa-circle-check icon-green';
$antivirus_title = _('Enabled');
}
if ($data[$key]['ANTISPAM'] == 'no') {
$antispam_icon = 'fa-circle-xmark icon-red';
$antispam_title = _('Disabled');
} else {
$antispam_icon = 'fa-circle-check icon-green';
$antispam_title = _('Enabled');
}
if ($data[$key]['DKIM'] == 'no') {
$dkim_icon = 'fa-circle-xmark icon-red';
$dkim_title = _('Disabled');
} else {
$dkim_icon = 'fa-circle-check icon-green';
$dkim_title = _('Enabled');
}
if ($data[$key]['SSL'] == 'no') {
$ssl_icon = 'fa-circle-xmark icon-red';
$ssl_title = _('Disabled');
} else {
$ssl_icon = 'fa-circle-check icon-green';
$ssl_title = _('Enabled');
}
}
if (empty($data[$key]['CATCHALL'])) {
$data[$key]['CATCHALL'] = '/dev/null';
}
?>
"
data-sort-accounts="= $data[$key]["ACCOUNTS"] ?>">
= _("Accounts") ?>:
= $mail_accounts ?>
= _("Disk") ?>:
= humanize_usage_size($data[$key]["U_DISK"]) ?>
= humanize_usage_measure($data[$key]["U_DISK"]) ?>
= _("Anti-Virus") ?>:
= _("Spam Filter") ?>:
= _("DKIM") ?>:
= _("SSL") ?>: