|
|
@@ -31,12 +31,12 @@
|
|
|
<span class="name <?php if ($_SESSION['userSortOrder'] === 'name') { echo 'active'; } ?>"><?= _("Name") ?> <i class="fas fa-arrow-down-a-z"></i></span><span class="up"><i class="fas fa-arrow-up-a-z"></i></span>
|
|
|
</li>
|
|
|
</ul>
|
|
|
- <?php if ($read_only !== 'true') { ?>
|
|
|
+ <?php if ($read_only !== "true") { ?>
|
|
|
<form x-data x-bind="BulkEdit" action="/bulk/mail/" method="post">
|
|
|
- <input type="hidden" name="token" value="<?= $_SESSION['token'] ?>">
|
|
|
+ <input type="hidden" name="token" value="<?= $_SESSION["token"] ?>">
|
|
|
<select class="form-select" name="action">
|
|
|
<option value=""><?= _("Apply to selected") ?></option>
|
|
|
- <?php if ($_SESSION['userContext'] === 'admin') { ?>
|
|
|
+ <?php if ($_SESSION["userContext"] === "admin") { ?>
|
|
|
<option value="rebuild"><?= _("Rebuild All") ?></option>
|
|
|
<?php } ?>
|
|
|
<option value="suspend"><?= _("Suspend") ?></option>
|
|
|
@@ -167,8 +167,8 @@
|
|
|
<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-name="<?= $key ?>"
|
|
|
- data-sort-disk="<?= $data[$key]['U_DISK'] ?>"
|
|
|
- data-sort-accounts="<?= $data[$key]['ACCOUNTS'] ?>">
|
|
|
+ data-sort-disk="<?= $data[$key]["U_DISK"] ?>"
|
|
|
+ data-sort-accounts="<?= $data[$key]["ACCOUNTS"] ?>">
|
|
|
<div class="units-table-cell">
|
|
|
<div>
|
|
|
<input id="check<?= $i ?>" class="js-unit-checkbox" type="checkbox" title="<?= _("Select") ?>" name="domain[]" value="<?= $key ?>" <?= $display_mode ?>>
|
|
|
@@ -177,17 +177,17 @@
|
|
|
</div>
|
|
|
<div class="units-table-cell units-table-heading-cell u-text-bold">
|
|
|
<span class="u-hide-desktop"><?= _("Name") ?>:</span>
|
|
|
- <a href="?domain=<?= $key ?>&token=<?= $_SESSION['token'] ?>" title="<?= _("Mail Accounts") ?>: <?= $key ?>">
|
|
|
+ <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') { ?>
|
|
|
+ <?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'] ?>"
|
|
|
+ href="?domain=<?= $key ?>&token=<?= $_SESSION["token"] ?>"
|
|
|
title="<?= _("Mail Accounts") ?>"
|
|
|
>
|
|
|
<i class="fas fa-users icon-blue"></i>
|
|
|
@@ -197,18 +197,18 @@
|
|
|
<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'] ?>"
|
|
|
+ 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') { ?>
|
|
|
+ <?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 ?>/"
|
|
|
+ href="http://<?= $webmail ?>.<?= $key ?>/"
|
|
|
target="_blank"
|
|
|
title="<?= _("Open Webmail") ?>"
|
|
|
>
|
|
|
@@ -218,23 +218,23 @@
|
|
|
</li>
|
|
|
<?php } ?>
|
|
|
<?php } else { ?>
|
|
|
- <?php if ($data[$key]['SUSPENDED'] == 'no') { ?>
|
|
|
+ <?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'] ?>"
|
|
|
+ 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'])) { ?>
|
|
|
+ <?php if ($_SESSION["WEBMAIL_SYSTEM"]) { ?>
|
|
|
+ <?php if (!empty($data[$key]["WEBMAIL"])) { ?>
|
|
|
<li class="units-table-row-action" data-key-action="href">
|
|
|
<a
|
|
|
class="units-table-row-action-link"
|
|
|
- href="http://<?= $webmail;?>.<?= $key ?>/"
|
|
|
+ href="http://<?= $webmail ?>.<?= $key ?>/"
|
|
|
target="_blank"
|
|
|
title="<?= _("Open Webmail") ?>"
|
|
|
>
|
|
|
@@ -247,7 +247,7 @@
|
|
|
<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'] ?>"
|
|
|
+ href="/edit/mail/?domain=<?= $key ?>&token=<?= $_SESSION["token"] ?>"
|
|
|
title="<?= _("Edit Mail Domain") ?>"
|
|
|
>
|
|
|
<i class="fas fa-pencil icon-orange"></i>
|
|
|
@@ -258,7 +258,7 @@
|
|
|
<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'] ?>"
|
|
|
+ href="?domain=<?= $key ?>&dns=1&token=<?= $_SESSION["token"] ?>"
|
|
|
title="<?= _("DNS Records") ?>"
|
|
|
>
|
|
|
<i class="fas fa-book-atlas icon-blue"></i>
|
|
|
@@ -268,7 +268,7 @@
|
|
|
<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'] ?>"
|
|
|
+ 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) ?>"
|
|
|
@@ -280,10 +280,10 @@
|
|
|
<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'] ?>"
|
|
|
+ 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) ?>"
|
|
|
+ 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>
|
|
|
@@ -306,10 +306,10 @@
|
|
|
<div class="units-table-cell u-text-center-desktop">
|
|
|
<span class="u-hide-desktop u-text-bold"><?= _("Disk") ?>:</span>
|
|
|
<span class="u-text-bold">
|
|
|
- <?= humanize_usage_size($data[$key]['U_DISK']) ?>
|
|
|
+ <?= humanize_usage_size($data[$key]["U_DISK"]) ?>
|
|
|
</span>
|
|
|
<span class="u-text-small">
|
|
|
- <?= humanize_usage_measure($data[$key]['U_DISK']) ?>
|
|
|
+ <?= humanize_usage_measure($data[$key]["U_DISK"]) ?>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="units-table-cell u-text-center-desktop">
|
|
|
@@ -337,7 +337,7 @@
|
|
|
<footer class="app-footer">
|
|
|
<div class="container app-footer-inner">
|
|
|
<p>
|
|
|
- <?php printf(ngettext('%d mail domain', '%d mail domains', $i),$i); ?>
|
|
|
+ <?php printf(ngettext("%d mail domain", "%d mail domains", $i), $i); ?>
|
|
|
</p>
|
|
|
</div>
|
|
|
</footer>
|