|
@@ -12,10 +12,10 @@
|
|
|
<div class="toolbar-sorting">
|
|
<div class="toolbar-sorting">
|
|
|
<button class="toolbar-sorting-toggle js-toggle-sorting-menu" type="button" title="<?= _("Sort items") ?>">
|
|
<button class="toolbar-sorting-toggle js-toggle-sorting-menu" type="button" title="<?= _("Sort items") ?>">
|
|
|
<?= _("Sort by") ?>:
|
|
<?= _("Sort by") ?>:
|
|
|
- <b>
|
|
|
|
|
|
|
+ <span class="u-text-bold">
|
|
|
<?php if ($_SESSION['userSortOrder'] === 'name') { $label = _('Name'); } else { $label = _('Date'); } ?>
|
|
<?php if ($_SESSION['userSortOrder'] === 'name') { $label = _('Name'); } else { $label = _('Date'); } ?>
|
|
|
- <?=$label;?> <i class="fas fa-arrow-down-a-z"></i>
|
|
|
|
|
- </b>
|
|
|
|
|
|
|
+ <?= $label ?> <i class="fas fa-arrow-down-a-z"></i>
|
|
|
|
|
+ </span>
|
|
|
</button>
|
|
</button>
|
|
|
<ul class="toolbar-sorting-menu animate__animated animate__fadeIn js-sorting-menu u-hidden">
|
|
<ul class="toolbar-sorting-menu animate__animated animate__fadeIn js-sorting-menu u-hidden">
|
|
|
<li data-entity="sort-accounts" data-sort-as-int="1">
|
|
<li data-entity="sort-accounts" data-sort-as-int="1">
|
|
@@ -64,21 +64,20 @@
|
|
|
<!-- End toolbar -->
|
|
<!-- End toolbar -->
|
|
|
|
|
|
|
|
<div class="container">
|
|
<div class="container">
|
|
|
- <div class="units js-units-container">
|
|
|
|
|
- <div class="header units-header">
|
|
|
|
|
- <div class="l-unit__col l-unit__col--right">
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left super-compact">
|
|
|
|
|
- <input type="checkbox" class="js-toggle-all-checkbox" title="<?= _("Select all") ?>" <?= $display_mode ?>>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left wide-3"><b><?= _("Name") ?></b></div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-right compact-5"><b> </b></div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center compact-2"><b><?= _("Accounts") ?></b></div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center compact-2"><b><?= _("Disk") ?></b></div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center compact-3"><b><?= _("Anti-Virus") ?></b></div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center compact-3"><b><?= _("Spam Filter") ?></b></div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center compact-3"><b><?= _("DKIM") ?></b></div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center compact-3"><b><?= _("SSL") ?></b></div>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <div class="units-table js-units-container">
|
|
|
|
|
+ <div class="units-table-header">
|
|
|
|
|
+ <div class="units-table-cell">
|
|
|
|
|
+ <input type="checkbox" class="js-toggle-all-checkbox" title="<?= _("Select all") ?>" <?= $display_mode ?>>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="units-table-cell"><?= _("Name") ?></div>
|
|
|
|
|
+ <div class="units-table-cell"></div>
|
|
|
|
|
+ <div class="units-table-cell"><?= _("Accounts") ?></div>
|
|
|
|
|
+ <div class="units-table-cell"><?= _("Disk") ?></div>
|
|
|
|
|
+ <div class="units-table-cell"><?= _("Anti-Virus") ?></div>
|
|
|
|
|
+ <div class="units-table-cell"><?= _("Spam Filter") ?></div>
|
|
|
|
|
+ <div class="units-table-cell"><?= _("DKIM") ?></div>
|
|
|
|
|
+ <div class="units-table-cell"><?= _("SSL") ?></div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Begin mail domain list item loop -->
|
|
<!-- Begin mail domain list item loop -->
|
|
@@ -93,147 +92,244 @@
|
|
|
$spnd_action = 'unsuspend';
|
|
$spnd_action = 'unsuspend';
|
|
|
$spnd_action_title = _('Unsuspend');
|
|
$spnd_action_title = _('Unsuspend');
|
|
|
$spnd_icon = 'fa-play';
|
|
$spnd_icon = 'fa-play';
|
|
|
|
|
+ $spnd_icon_class = 'icon-green';
|
|
|
$spnd_confirmation = _('Are you sure you want to unsuspend domain %s?');
|
|
$spnd_confirmation = _('Are you sure you want to unsuspend domain %s?');
|
|
|
if ($data[$key]['ANTIVIRUS'] == 'no') {
|
|
if ($data[$key]['ANTIVIRUS'] == 'no') {
|
|
|
$antivirus_icon = 'fa-circle-xmark';
|
|
$antivirus_icon = 'fa-circle-xmark';
|
|
|
|
|
+ $antivirus_title = _('Disabled');
|
|
|
} else {
|
|
} else {
|
|
|
$antivirus_icon = 'fa-circle-check';
|
|
$antivirus_icon = 'fa-circle-check';
|
|
|
|
|
+ $antivirus_title = _('Enabled');
|
|
|
}
|
|
}
|
|
|
if ($data[$key]['ANTISPAM'] == 'no') {
|
|
if ($data[$key]['ANTISPAM'] == 'no') {
|
|
|
$antispam_icon = 'fa-circle-xmark';
|
|
$antispam_icon = 'fa-circle-xmark';
|
|
|
|
|
+ $antispam_title = _('Disabled');
|
|
|
} else {
|
|
} else {
|
|
|
$antispam_icon = 'fa-circle-check';
|
|
$antispam_icon = 'fa-circle-check';
|
|
|
|
|
+ $antispam_title = _('Enabled');
|
|
|
}
|
|
}
|
|
|
if ($data[$key]['DKIM'] == 'no') {
|
|
if ($data[$key]['DKIM'] == 'no') {
|
|
|
$dkim_icon = 'fa-circle-xmark';
|
|
$dkim_icon = 'fa-circle-xmark';
|
|
|
|
|
+ $dkim_title = _('Disabled');
|
|
|
} else {
|
|
} else {
|
|
|
$dkim_icon = 'fa-circle-check';
|
|
$dkim_icon = 'fa-circle-check';
|
|
|
|
|
+ $dkim_title = _('Enabled');
|
|
|
}
|
|
}
|
|
|
if ($data[$key]['SSL'] == 'no') {
|
|
if ($data[$key]['SSL'] == 'no') {
|
|
|
$ssl_icon = 'fa-circle-xmark';
|
|
$ssl_icon = 'fa-circle-xmark';
|
|
|
|
|
+ $ssl_title = _('Disabled');
|
|
|
} else {
|
|
} else {
|
|
|
$ssl_icon = 'fa-circle-check';
|
|
$ssl_icon = 'fa-circle-check';
|
|
|
|
|
+ $ssl_title = _('Enabled');
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
$status = 'active';
|
|
$status = 'active';
|
|
|
$spnd_action = 'suspend';
|
|
$spnd_action = 'suspend';
|
|
|
$spnd_action_title = _('Suspend');
|
|
$spnd_action_title = _('Suspend');
|
|
|
$spnd_icon = 'fa-pause';
|
|
$spnd_icon = 'fa-pause';
|
|
|
|
|
+ $spnd_icon_class = 'icon-highlight';
|
|
|
$spnd_confirmation = _('Are you sure you want to suspend domain %s?');
|
|
$spnd_confirmation = _('Are you sure you want to suspend domain %s?');
|
|
|
if ($data[$key]['ANTIVIRUS'] == 'no') {
|
|
if ($data[$key]['ANTIVIRUS'] == 'no') {
|
|
|
$antivirus_icon = 'fa-circle-xmark icon-red';
|
|
$antivirus_icon = 'fa-circle-xmark icon-red';
|
|
|
|
|
+ $antivirus_title = _('Disabled');
|
|
|
} else {
|
|
} else {
|
|
|
$antivirus_icon = 'fa-circle-check icon-green';
|
|
$antivirus_icon = 'fa-circle-check icon-green';
|
|
|
|
|
+ $antivirus_title = _('Enabled');
|
|
|
}
|
|
}
|
|
|
if ($data[$key]['ANTISPAM'] == 'no') {
|
|
if ($data[$key]['ANTISPAM'] == 'no') {
|
|
|
$antispam_icon = 'fa-circle-xmark icon-red';
|
|
$antispam_icon = 'fa-circle-xmark icon-red';
|
|
|
|
|
+ $antispam_title = _('Disabled');
|
|
|
} else {
|
|
} else {
|
|
|
$antispam_icon = 'fa-circle-check icon-green';
|
|
$antispam_icon = 'fa-circle-check icon-green';
|
|
|
|
|
+ $antispam_title = _('Enabled');
|
|
|
}
|
|
}
|
|
|
if ($data[$key]['DKIM'] == 'no') {
|
|
if ($data[$key]['DKIM'] == 'no') {
|
|
|
$dkim_icon = 'fa-circle-xmark icon-red';
|
|
$dkim_icon = 'fa-circle-xmark icon-red';
|
|
|
|
|
+ $dkim_title = _('Disabled');
|
|
|
} else {
|
|
} else {
|
|
|
$dkim_icon = 'fa-circle-check icon-green';
|
|
$dkim_icon = 'fa-circle-check icon-green';
|
|
|
|
|
+ $dkim_title = _('Enabled');
|
|
|
}
|
|
}
|
|
|
if ($data[$key]['SSL'] == 'no') {
|
|
if ($data[$key]['SSL'] == 'no') {
|
|
|
$ssl_icon = 'fa-circle-xmark icon-red';
|
|
$ssl_icon = 'fa-circle-xmark icon-red';
|
|
|
|
|
+ $ssl_title = _('Disabled');
|
|
|
} else {
|
|
} else {
|
|
|
$ssl_icon = 'fa-circle-check icon-green';
|
|
$ssl_icon = 'fa-circle-check icon-green';
|
|
|
|
|
+ $ssl_title = _('Enabled');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (empty($data[$key]['CATCHALL'])) {
|
|
if (empty($data[$key]['CATCHALL'])) {
|
|
|
$data[$key]['CATCHALL'] = '/dev/null';
|
|
$data[$key]['CATCHALL'] = '/dev/null';
|
|
|
}
|
|
}
|
|
|
?>
|
|
?>
|
|
|
- <div class="l-unit <?php if ($status == 'suspended') echo 'l-unit--suspended'; ?> animate__animated animate__fadeIn js-unit"
|
|
|
|
|
|
|
+ <div class="units-table-row <?php if ($status == 'suspended') echo 'disabled'; ?> animate__animated animate__fadeIn js-unit"
|
|
|
data-sort-date="<?=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>"
|
|
data-sort-date="<?=strtotime($data[$key]['DATE'].' '.$data[$key]['TIME'])?>"
|
|
|
data-sort-name="<?=$key?>"
|
|
data-sort-name="<?=$key?>"
|
|
|
data-sort-disk="<?=$data[$key]['U_DISK']?>"
|
|
data-sort-disk="<?=$data[$key]['U_DISK']?>"
|
|
|
data-sort-accounts="<?=$data[$key]['ACCOUNTS']?>">
|
|
data-sort-accounts="<?=$data[$key]['ACCOUNTS']?>">
|
|
|
- <div class="l-unit__col l-unit__col--right">
|
|
|
|
|
|
|
+ <div class="units-table-cell">
|
|
|
<div>
|
|
<div>
|
|
|
- <div class="clearfix l-unit__stat-col--left super-compact">
|
|
|
|
|
- <input id="check<?=$i ?>" class="js-unit-checkbox" type="checkbox" title="<?= _("Select") ?>" name="domain[]" value="<?=$key?>" <?=$display_mode;?>>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left wide-3 truncate"><b><a href="?domain=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?= _("Mail Accounts") ?>: <?=$key?>"><?=$key?></a></b></div>
|
|
|
|
|
- <!-- START QUICK ACTION TOOLBAR AREA -->
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-right compact-5">
|
|
|
|
|
- <div class="l-unit-toolbar__col l-unit-toolbar__col--right u-noselect">
|
|
|
|
|
- <div class="actions-panel clearfix">
|
|
|
|
|
- <?php if ($read_only === 'true') {?>
|
|
|
|
|
- <!-- Restrict ability to edit, delete, or suspend domain items when impersonating 'admin' account -->
|
|
|
|
|
- <div class="actions-panel__col actions-panel__edit shortcut-l" data-key-action="href"><a href="?domain=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?= _("Mail Accounts") ?>"><i class="fas fa-users icon-blue icon-dim"></i></a></div>
|
|
|
|
|
- <div class="actions-panel__col actions-panel__edit shortcut-l" data-key-action="href"><a href="?domain=<?=$key?>&dns=1&token=<?=$_SESSION['token']?>" title="<?= _("DNS Records") ?>"><i class="fas fa-book-atlas icon-blue icon-dim"></i></a></div>
|
|
|
|
|
- <?php if ($data[$key]['SUSPENDED'] == 'no') {?>
|
|
|
|
|
- <div class="actions-panel__col actions-panel__edit" data-key-action="href"><a href="http://<?=$webmail;?>.<?=$key?>/" target="_blank" title="<?= _("Open Webmail") ?>"><i class="fas fa-paper-plane icon-lightblue icon-dim"></i></a></div>
|
|
|
|
|
- <?php } ?>
|
|
|
|
|
- <?php } else { ?>
|
|
|
|
|
- <?php if ($data[$key]['SUSPENDED'] == 'no') {?>
|
|
|
|
|
- <div class="actions-panel__col actions-panel__logs shortcut-n" data-key-action="href"><a href="/add/mail/?domain=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?= _("Add Mail Account") ?>"><i class="fas fa-circle-plus icon-green icon-dim"></i></a></div>
|
|
|
|
|
- <?php if($_SESSION['WEBMAIL_SYSTEM']){?>
|
|
|
|
|
- <?php if (!empty($data[$key]['WEBMAIL'])) {?>
|
|
|
|
|
- <div class="actions-panel__col actions-panel__edit" data-key-action="href"><a href="http://<?=$webmail;?>.<?=$key?>/" target="_blank" title="<?= _("Open Webmail") ?>"><i class="fas fa-paper-plane icon-lightblue icon-dim"></i></a></div>
|
|
|
|
|
- <?php } ?>
|
|
|
|
|
- <?php } ?>
|
|
|
|
|
- <div class="actions-panel__col actions-panel__logs shortcut-enter" data-key-action="href"><a href="/edit/mail/?domain=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?= _("Edit Mail Domain") ?>"><i class="fas fa-pencil icon-orange icon-dim"></i></a></div>
|
|
|
|
|
- <?php } ?>
|
|
|
|
|
- <div class="actions-panel__col actions-panel__edit shortcut-l" data-key-action="href"><a href="?domain=<?=$key?>&dns=1&token=<?=$_SESSION['token']?>" title="<?= _("DNS Records") ?>"><i class="fas fa-book-atlas icon-blue icon-dim"></i></a></div>
|
|
|
|
|
- <div class="actions-panel__col actions-panel__suspend shortcut-s" data-key-action="js">
|
|
|
|
|
- <a
|
|
|
|
|
- class="data-controls js-confirm-action"
|
|
|
|
|
- href="/<?=$spnd_action?>/mail/?domain=<?=$key?>&token=<?=$_SESSION['token']?>"
|
|
|
|
|
- data-confirm-title="<?= $spnd_action_title ?>"
|
|
|
|
|
- data-confirm-message="<?= sprintf($spnd_confirmation, $key) ?>"
|
|
|
|
|
- >
|
|
|
|
|
- <i class="fas <?= $spnd_icon ?> icon-highlight icon-dim"></i>
|
|
|
|
|
- </a>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="actions-panel__col actions-panel__delete shortcut-delete" data-key-action="js">
|
|
|
|
|
|
|
+ <input id="check<?= $i ?>" class="js-unit-checkbox" type="checkbox" title="<?= _("Select") ?>" name="domain[]" value="<?= $key ?>" <?= $display_mode ?>>
|
|
|
|
|
+ <label for="check<?= $i ?>" class="u-hide-desktop"><?= _("Select") ?></label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="units-table-cell u-text-bold">
|
|
|
|
|
+ <span class="u-hide-desktop"><?= _("Name") ?>:</span>
|
|
|
|
|
+ <a href="?domain=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?= _("Mail Accounts") ?>: <?=$key?>">
|
|
|
|
|
+ <?= $key ?>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="units-table-cell">
|
|
|
|
|
+ <ul class="units-table-row-actions">
|
|
|
|
|
+ <?php if ($read_only === 'true') { ?>
|
|
|
|
|
+ <li class="units-table-row-action shortcut-l" data-key-action="href">
|
|
|
|
|
+ <a
|
|
|
|
|
+ class="units-table-row-action-link"
|
|
|
|
|
+ href="?domain=<?=$key?>&token=<?=$_SESSION['token']?>"
|
|
|
|
|
+ title="<?= _("Mail Accounts") ?>"
|
|
|
|
|
+ >
|
|
|
|
|
+ <i class="fas fa-users icon-blue"></i>
|
|
|
|
|
+ <span class="u-hide-desktop"><?= _("Mail Accounts") ?></span>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li class="units-table-row-action shortcut-l" data-key-action="href">
|
|
|
|
|
+ <a
|
|
|
|
|
+ class="units-table-row-action-link"
|
|
|
|
|
+ href="?domain=<?=$key?>&dns=1&token=<?=$_SESSION['token']?>"
|
|
|
|
|
+ title="<?= _("DNS Records") ?>"
|
|
|
|
|
+ >
|
|
|
|
|
+ <i class="fas fa-book-atlas icon-blue"></i>
|
|
|
|
|
+ <span class="u-hide-desktop"><?= _("DNS Records") ?></span>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <?php if ($data[$key]['SUSPENDED'] == 'no') { ?>
|
|
|
|
|
+ <li class="units-table-row-action" data-key-action="href">
|
|
|
|
|
+ <a
|
|
|
|
|
+ class="units-table-row-action-link"
|
|
|
|
|
+ href="http://<?=$webmail;?>.<?=$key?>/"
|
|
|
|
|
+ target="_blank"
|
|
|
|
|
+ title="<?= _("Open Webmail") ?>"
|
|
|
|
|
+ >
|
|
|
|
|
+ <i class="fas fa-paper-plane icon-lightblue"></i>
|
|
|
|
|
+ <span class="u-hide-desktop"><?= _("Open Webmail") ?></span>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <?php } ?>
|
|
|
|
|
+ <?php } else { ?>
|
|
|
|
|
+ <?php if ($data[$key]['SUSPENDED'] == 'no') { ?>
|
|
|
|
|
+ <li class="units-table-row-action shortcut-n" data-key-action="href">
|
|
|
|
|
+ <a
|
|
|
|
|
+ class="units-table-row-action-link"
|
|
|
|
|
+ href="/add/mail/?domain=<?=$key?>&token=<?=$_SESSION['token']?>"
|
|
|
|
|
+ title="<?= _("Add Mail Account") ?>"
|
|
|
|
|
+ >
|
|
|
|
|
+ <i class="fas fa-circle-plus icon-green"></i>
|
|
|
|
|
+ <span class="u-hide-desktop"><?= _("Add Mail Account") ?></span>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <?php if ($_SESSION['WEBMAIL_SYSTEM']) { ?>
|
|
|
|
|
+ <?php if (!empty($data[$key]['WEBMAIL'])) { ?>
|
|
|
|
|
+ <li class="units-table-row-action" data-key-action="href">
|
|
|
<a
|
|
<a
|
|
|
- class="data-controls js-confirm-action"
|
|
|
|
|
- href="/delete/mail/?domain=<?=$key?>&token=<?=$_SESSION['token']?>"
|
|
|
|
|
- data-confirm-title="<?= _("Delete") ?>"
|
|
|
|
|
- data-confirm-message="<?= sprintf(_('Are you sure you want to delete domain %s?'), $key) ?>"
|
|
|
|
|
|
|
+ class="units-table-row-action-link"
|
|
|
|
|
+ href="http://<?=$webmail;?>.<?=$key?>/"
|
|
|
|
|
+ target="_blank"
|
|
|
|
|
+ title="<?= _("Open Webmail") ?>"
|
|
|
>
|
|
>
|
|
|
- <i class="fas fa-trash icon-red icon-dim"></i>
|
|
|
|
|
|
|
+ <i class="fas fa-paper-plane icon-lightblue"></i>
|
|
|
|
|
+ <span class="u-hide-desktop"><?= _("Open Webmail") ?></span>
|
|
|
</a>
|
|
</a>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </li>
|
|
|
<?php } ?>
|
|
<?php } ?>
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <!-- END QUICK ACTION TOOLBAR AREA -->
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center compact-2"><b>
|
|
|
|
|
- <?php
|
|
|
|
|
- if ($data[$key]['ACCOUNTS']) {
|
|
|
|
|
- $mail_accounts = htmlentities($data[$key]['ACCOUNTS']);
|
|
|
|
|
- } else {
|
|
|
|
|
- $mail_accounts = '0';
|
|
|
|
|
- }
|
|
|
|
|
- ?>
|
|
|
|
|
- <span><?=$mail_accounts;?></span>
|
|
|
|
|
- </b>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center compact-2"><b>
|
|
|
|
|
- <?=humanize_usage_size($data[$key]['U_DISK'])?></b> <span class="u-text-small"><?=humanize_usage_measure($data[$key]['U_DISK'])?></span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center compact-3">
|
|
|
|
|
- <i class="fas <?=$antivirus_icon;?>"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center compact-3">
|
|
|
|
|
- <i class="fas <?=$antispam_icon;?>"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center compact-3">
|
|
|
|
|
- <i class="fas <?=$dkim_icon;?>"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="clearfix l-unit__stat-col--left u-text-center compact-3">
|
|
|
|
|
- <i class="fas <?=$ssl_icon;?>"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <?php } ?>
|
|
|
|
|
+ <li class="units-table-row-action shortcut-enter" data-key-action="href">
|
|
|
|
|
+ <a
|
|
|
|
|
+ class="units-table-row-action-link"
|
|
|
|
|
+ href="/edit/mail/?domain=<?=$key?>&token=<?=$_SESSION['token']?>"
|
|
|
|
|
+ title="<?= _("Edit Mail Domain") ?>"
|
|
|
|
|
+ >
|
|
|
|
|
+ <i class="fas fa-pencil icon-orange"></i>
|
|
|
|
|
+ <span class="u-hide-desktop"><?= _("Edit Mail Domain") ?></span>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <?php } ?>
|
|
|
|
|
+ <li class="units-table-row-action shortcut-l" data-key-action="href">
|
|
|
|
|
+ <a
|
|
|
|
|
+ class="units-table-row-action-link"
|
|
|
|
|
+ href="?domain=<?=$key?>&dns=1&token=<?=$_SESSION['token']?>"
|
|
|
|
|
+ title="<?= _("DNS Records") ?>"
|
|
|
|
|
+ >
|
|
|
|
|
+ <i class="fas fa-book-atlas icon-blue"></i>
|
|
|
|
|
+ <span class="u-hide-desktop"><?= _("DNS Records") ?></span>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li class="units-table-row-action shortcut-s" data-key-action="js">
|
|
|
|
|
+ <a
|
|
|
|
|
+ class="units-table-row-action-link data-controls js-confirm-action"
|
|
|
|
|
+ href="/<?= $spnd_action ?>/mail/?domain=<?=$key?>&token=<?=$_SESSION['token']?>"
|
|
|
|
|
+ title="<?= $spnd_action_title ?>"
|
|
|
|
|
+ data-confirm-title="<?= $spnd_action_title ?>"
|
|
|
|
|
+ data-confirm-message="<?= sprintf($spnd_confirmation, $key) ?>"
|
|
|
|
|
+ >
|
|
|
|
|
+ <i class="fas <?= $spnd_icon ?> <?= $spnd_icon_class ?>"></i>
|
|
|
|
|
+ <span class="u-hide-desktop"><?= $spnd_action_title ?></span>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li class="units-table-row-action shortcut-delete" data-key-action="js">
|
|
|
|
|
+ <a
|
|
|
|
|
+ class="units-table-row-action-link data-controls js-confirm-action"
|
|
|
|
|
+ href="/delete/mail/?domain=<?=$key?>&token=<?=$_SESSION['token']?>"
|
|
|
|
|
+ title="<?= _("Delete") ?>"
|
|
|
|
|
+ data-confirm-title="<?= _("Delete") ?>"
|
|
|
|
|
+ data-confirm-message="<?= sprintf(_('Are you sure you want to delete domain %s?'), $key) ?>"
|
|
|
|
|
+ >
|
|
|
|
|
+ <i class="fas fa-trash icon-red"></i>
|
|
|
|
|
+ <span class="u-hide-desktop"><?= _("Delete") ?></span>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <?php } ?>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="units-table-cell">
|
|
|
|
|
+ <span class="u-hide-desktop u-text-bold"><?= _("Accounts") ?>:</span>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ if ($data[$key]['ACCOUNTS']) {
|
|
|
|
|
+ $mail_accounts = htmlentities($data[$key]['ACCOUNTS']);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $mail_accounts = '0';
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <?= $mail_accounts ?>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="units-table-cell">
|
|
|
|
|
+ <span class="u-hide-desktop u-text-bold"><?= _("Disk") ?>:</span>
|
|
|
|
|
+ <span class="u-text-bold">
|
|
|
|
|
+ <?= humanize_usage_size($data[$key]['U_DISK']) ?>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <span class="u-text-small">
|
|
|
|
|
+ <?= humanize_usage_measure($data[$key]['U_DISK']) ?>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="units-table-cell">
|
|
|
|
|
+ <span class="u-hide-desktop u-text-bold"><?= _("Anti-Virus") ?>:</span>
|
|
|
|
|
+ <i class="fas <?= $antivirus_icon ?>" title="<?= $antivirus_title ?>"></i>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="units-table-cell">
|
|
|
|
|
+ <span class="u-hide-desktop u-text-bold"><?= _("Spam Filter") ?>:</span>
|
|
|
|
|
+ <i class="fas <?= $antispam_icon ?>" title="<?= $antispam_title ?>"></i>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="units-table-cell">
|
|
|
|
|
+ <span class="u-hide-desktop u-text-bold"><?= _("DKIM") ?>:</span>
|
|
|
|
|
+ <i class="fas <?= $dkim_icon ?>" title="<?= $dkim_title ?>"></i>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="units-table-cell">
|
|
|
|
|
+ <span class="u-hide-desktop u-text-bold"><?= _("SSL") ?>:</span>
|
|
|
|
|
+ <i class="fas <?= $ssl_icon ?>" title="<?= $ssl_title ?>"></i>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<?php } ?>
|
|
<?php } ?>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="app-footer">
|
|
<footer class="app-footer">
|