|
|
@@ -1,31 +1,35 @@
|
|
|
<!-- Begin toolbar -->
|
|
|
<div class="toolbar">
|
|
|
<div class="toolbar-inner">
|
|
|
- <div class="toolbar-buttons">
|
|
|
- <a class="button button-secondary button-back js-button-back" href="/list/backup/">
|
|
|
- <i class="fas fa-arrow-left icon-blue"></i><?= _("Back") ?>
|
|
|
- </a>
|
|
|
- <a href="/schedule/restore/?token=<?= $_SESSION["token"] ?>&backup=<?= htmlentities($_GET["backup"]) ?>" class="button button-secondary">
|
|
|
- <i class="fas fa-arrow-rotate-left icon-green"></i><?= _("Restore All") ?>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div class="toolbar-right">
|
|
|
- <form x-data x-bind="BulkEdit" action="/bulk/restore/" method="post">
|
|
|
- <input type="hidden" name="token" value="<?= $_SESSION["token"] ?>">
|
|
|
- <input type="hidden" name="backup" value="<?= htmlentities($_GET["backup"]) ?>">
|
|
|
- <select class="form-select" name="action">
|
|
|
- <option value=""><?= _("Apply to selected") ?></option>
|
|
|
- <option value="restore"><?= _("Restore") ?></option>
|
|
|
- </select>
|
|
|
- <button type="submit" class="toolbar-input-submit" title="<?= _("Apply to selected") ?>">
|
|
|
- <i class="fas fa-arrow-right"></i>
|
|
|
- </button>
|
|
|
- </form>
|
|
|
- <div class="toolbar-search">
|
|
|
+ <div class="toolbar-buttons">
|
|
|
+ <a class="button button-secondary button-back js-button-back" href="/list/backup/">
|
|
|
+ <i class="fas fa-arrow-left icon-blue"></i><?= tohtml( _("Back")) ?>
|
|
|
+ </a>
|
|
|
+ <?php if ($read_only !== "true") { ?>
|
|
|
+ <a href="/schedule/restore/?<?= tohtml(http_build_query(array("token" => $_SESSION["token"], "backup" => $_GET["backup"]))) ?>" class="button button-secondary">
|
|
|
+ <i class="fas fa-arrow-rotate-left icon-green"></i><?= tohtml( _("Restore All")) ?>
|
|
|
+ </a>
|
|
|
+ <?php } ?>
|
|
|
+ </div>
|
|
|
+ <div class="toolbar-right">
|
|
|
+ <?php if ($read_only !== "true") { ?>
|
|
|
+ <form x-data x-bind="BulkEdit" action="/bulk/restore/" method="post">
|
|
|
+ <input type="hidden" name="token" value="<?= tohtml($_SESSION["token"]) ?>">
|
|
|
+ <input type="hidden" name="backup" value="<?= tohtml($_GET["backup"]) ?>">
|
|
|
+ <select class="form-select" name="action">
|
|
|
+ <option value=""><?= tohtml( _("Apply to selected")) ?></option>
|
|
|
+ <option value="restore"><?= tohtml( _("Restore")) ?></option>
|
|
|
+ </select>
|
|
|
+ <button type="submit" class="toolbar-input-submit" title="<?= tohtml( _("Apply to selected")) ?>">
|
|
|
+ <i class="fas fa-arrow-right"></i>
|
|
|
+ </button>
|
|
|
+ </form>
|
|
|
+ <?php } ?>
|
|
|
+ <div class="toolbar-search">
|
|
|
<form action="/search/" method="get">
|
|
|
- <input type="hidden" name="token" value="<?= $_SESSION["token"] ?>">
|
|
|
- <input type="search" class="form-control js-search-input" name="q" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" title="<?= _("Search") ?>">
|
|
|
- <button type="submit" class="toolbar-input-submit" title="<?= _("Search") ?>">
|
|
|
+ <input type="hidden" name="token" value="<?= tohtml($_SESSION["token"]) ?>">
|
|
|
+ <input type="search" class="form-control js-search-input" name="q" value="<?= tohtml($_GET['q'] ?? '') ?>" title="<?= tohtml( _("Search")) ?>">
|
|
|
+ <button type="submit" class="toolbar-input-submit" title="<?= tohtml( _("Search")) ?>">
|
|
|
<i class="fas fa-magnifying-glass"></i>
|
|
|
</button>
|
|
|
</form>
|
|
|
@@ -37,53 +41,56 @@
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
- <h1 class="u-text-center u-hide-desktop u-mt20 u-pr30 u-mb20 u-pl30"><?= _("Backup Details") ?></h1>
|
|
|
+ <h1 class="u-text-center u-hide-desktop u-mt20 u-pr30 u-mb20 u-pl30"><?= tohtml( _("Backup Details")) ?></h1>
|
|
|
|
|
|
<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 ?>>
|
|
|
+ <input type="checkbox" class="js-toggle-all-checkbox" title="<?= tohtml( _("Select all")) ?>" <?= tohtml($display_mode) ?>>
|
|
|
</div>
|
|
|
- <div class="units-table-cell"><?= _("Type") ?></div>
|
|
|
- <div class="units-table-cell"><?= _("Details") ?></div>
|
|
|
- <div class="units-table-cell"><?= _("Restore") ?></div>
|
|
|
+ <div class="units-table-cell"><?= tohtml( _("Type")) ?></div>
|
|
|
+ <div class="units-table-cell"><?= tohtml( _("Details")) ?></div>
|
|
|
+ <div class="units-table-cell"><?= tohtml( _("Restore")) ?></div>
|
|
|
</div>
|
|
|
|
|
|
- <!-- List web domains -->
|
|
|
- <?php
|
|
|
- $backup = htmlentities($_GET['backup']);
|
|
|
- $web = explode(',',$data[$backup]['WEB']);
|
|
|
- foreach ($web as $key) {
|
|
|
- if (!empty($key)) {
|
|
|
- ++$i;
|
|
|
- ?>
|
|
|
- <div class="units-table-row js-unit">
|
|
|
- <div class="units-table-cell">
|
|
|
- <div>
|
|
|
- <input id="check<?= $i ?>" class="js-unit-checkbox" type="checkbox" name="web[]" value="<?= $key ?>">
|
|
|
- <label for="check<?= $i ?>" class="u-hide-desktop"><?= _("Select") ?></label>
|
|
|
+ <!-- List web domains -->
|
|
|
+ <?php
|
|
|
+ $item_count = 0;
|
|
|
+ $backup = $_GET['backup'];
|
|
|
+ $web_index = 0;
|
|
|
+ $web = explode(',',$data[$backup]['WEB']);
|
|
|
+ foreach ($web as $key) {
|
|
|
+ if (!empty($key)) {
|
|
|
+ ++$web_index;
|
|
|
+ ++$item_count;
|
|
|
+ ?>
|
|
|
+ <div class="units-table-row js-unit">
|
|
|
+ <div class="units-table-cell">
|
|
|
+ <div>
|
|
|
+ <input id="check-web<?= tohtml($web_index) ?>" class="js-unit-checkbox" type="checkbox" name="web[]" value="<?= tohtml($key) ?>">
|
|
|
+ <label for="check-web<?= tohtml($web_index) ?>" class="u-hide-desktop"><?= tohtml( _("Select")) ?></label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
<div class="units-table-cell units-table-heading-cell">
|
|
|
- <span class="u-hide-desktop u-text-bold"><?= _("Type") ?>:</span>
|
|
|
- <?= _("Web Domain") ?>
|
|
|
+ <span class="u-hide-desktop u-text-bold"><?= tohtml( _("Type")) ?>:</span>
|
|
|
+ <?= tohtml( _("Web Domain")) ?>
|
|
|
</div>
|
|
|
<div class="units-table-cell u-text-bold">
|
|
|
- <span class="u-hide-desktop"><?= _("Details") ?>:</span>
|
|
|
- <?= $key ?>
|
|
|
+ <span class="u-hide-desktop"><?= tohtml( _("Details")) ?>:</span>
|
|
|
+ <?= tohtml($key) ?>
|
|
|
</div>
|
|
|
<div class="units-table-cell">
|
|
|
<ul class="units-table-row-actions">
|
|
|
<li class="units-table-row-action shortcut-enter" data-key-action="href">
|
|
|
<a
|
|
|
class="units-table-row-action-link data-controls js-confirm-action"
|
|
|
- href="/schedule/restore/?backup=<?= $backup ?>&type=web&object=<?= $key ?>&token=<?= $_SESSION["token"] ?>"
|
|
|
- title="<?= _("Restore") ?>"
|
|
|
- data-confirm-title="<?= _("Restore") ?>"
|
|
|
- data-confirm-message="<?= sprintf(_("Are you sure you want to restore %s?"), $key) ?>"
|
|
|
+ href="/schedule/restore/?<?= tohtml(http_build_query(array("backup" => $backup, "type" => "web", "object" => $key, "token" => $_SESSION["token"]))) ?>"
|
|
|
+ title="<?= tohtml( _("Restore")) ?>"
|
|
|
+ data-confirm-title="<?= tohtml( _("Restore")) ?>"
|
|
|
+ data-confirm-message="<?= tohtml(sprintf(_("Are you sure you want to restore %s?"), $key)) ?>"
|
|
|
>
|
|
|
<i class="fas fa-arrow-rotate-left icon-green"></i>
|
|
|
- <span class="u-hide-desktop"><?= _("Restore") ?></span>
|
|
|
+ <span class="u-hide-desktop"><?= tohtml( _("Restore")) ?></span>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -92,38 +99,41 @@
|
|
|
<?php }} ?>
|
|
|
|
|
|
<!-- List mail domains -->
|
|
|
- <?php
|
|
|
- $mail = explode(',',$data[$backup]['MAIL']);
|
|
|
- foreach ($mail as $key) {
|
|
|
- if (!empty($key)) {
|
|
|
- ?>
|
|
|
- <div class="units-table-row js-unit">
|
|
|
- <div class="units-table-cell">
|
|
|
- <div>
|
|
|
- <input id="check2<?= $i ?>" class="js-unit-checkbox" type="checkbox" name="mail[]" value="<?= $key ?>">
|
|
|
- <label for="check2<?= $i ?>" class="u-hide-desktop"><?= _("Select") ?></label>
|
|
|
+ <?php
|
|
|
+ $mail_index = 0;
|
|
|
+ $mail = explode(',',$data[$backup]['MAIL']);
|
|
|
+ foreach ($mail as $key) {
|
|
|
+ if (!empty($key)) {
|
|
|
+ ++$mail_index;
|
|
|
+ ++$item_count;
|
|
|
+ ?>
|
|
|
+ <div class="units-table-row js-unit">
|
|
|
+ <div class="units-table-cell">
|
|
|
+ <div>
|
|
|
+ <input id="check-mail<?= tohtml($mail_index) ?>" class="js-unit-checkbox" type="checkbox" name="mail[]" value="<?= tohtml($key) ?>">
|
|
|
+ <label for="check-mail<?= tohtml($mail_index) ?>" class="u-hide-desktop"><?= tohtml( _("Select")) ?></label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
<div class="units-table-cell units-table-heading-cell">
|
|
|
- <span class="u-hide-desktop u-text-bold"><?= _("Type") ?>:</span>
|
|
|
- <?= _("Mail Domain") ?>
|
|
|
+ <span class="u-hide-desktop u-text-bold"><?= tohtml( _("Type")) ?>:</span>
|
|
|
+ <?= tohtml( _("Mail Domain")) ?>
|
|
|
</div>
|
|
|
<div class="units-table-cell u-text-bold">
|
|
|
- <span class="u-hide-desktop"><?= _("Details") ?>:</span>
|
|
|
- <?= $key ?>
|
|
|
+ <span class="u-hide-desktop"><?= tohtml( _("Details")) ?>:</span>
|
|
|
+ <?= tohtml($key) ?>
|
|
|
</div>
|
|
|
<div class="units-table-cell">
|
|
|
<ul class="units-table-row-actions">
|
|
|
<li class="units-table-row-action shortcut-enter" data-key-action="href">
|
|
|
<a
|
|
|
class="units-table-row-action-link data-controls js-confirm-action"
|
|
|
- href="/schedule/restore/?backup=<?= $backup ?>&type=mail&object=<?= $key ?>&token=<?= $_SESSION["token"] ?>"
|
|
|
- title="<?= _("Restore") ?>"
|
|
|
- data-confirm-title="<?= _("Restore") ?>"
|
|
|
- data-confirm-message="<?= sprintf(_("Are you sure you want to restore %s?"), $key) ?>"
|
|
|
+ href="/schedule/restore/?<?= tohtml(http_build_query(array("backup" => $backup, "type" => "mail", "object" => $key, "token" => $_SESSION["token"]))) ?>"
|
|
|
+ title="<?= tohtml( _("Restore")) ?>"
|
|
|
+ data-confirm-title="<?= tohtml( _("Restore")) ?>"
|
|
|
+ data-confirm-message="<?= tohtml(sprintf(_("Are you sure you want to restore %s?"), $key)) ?>"
|
|
|
>
|
|
|
<i class="fas fa-arrow-rotate-left icon-green"></i>
|
|
|
- <span class="u-hide-desktop"><?= _("Restore") ?></span>
|
|
|
+ <span class="u-hide-desktop"><?= tohtml( _("Restore")) ?></span>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -132,38 +142,41 @@
|
|
|
<?php }} ?>
|
|
|
|
|
|
<!-- List DNS zones -->
|
|
|
- <?php
|
|
|
- $dns = explode(',',$data[$backup]['DNS']);
|
|
|
- foreach ($dns as $key) {
|
|
|
- if (!empty($key)) {
|
|
|
- ?>
|
|
|
- <div class="units-table-row js-unit">
|
|
|
- <div class="units-table-cell">
|
|
|
- <div>
|
|
|
- <input id="check3<?= $i ?>" class="js-unit-checkbox" type="checkbox" name="dns[]" value="<?= $key ?>">
|
|
|
- <label for="check3<?= $i ?>" class="u-hide-desktop"><?= _("Select") ?></label>
|
|
|
+ <?php
|
|
|
+ $dns_index = 0;
|
|
|
+ $dns = explode(',',$data[$backup]['DNS']);
|
|
|
+ foreach ($dns as $key) {
|
|
|
+ if (!empty($key)) {
|
|
|
+ ++$dns_index;
|
|
|
+ ++$item_count;
|
|
|
+ ?>
|
|
|
+ <div class="units-table-row js-unit">
|
|
|
+ <div class="units-table-cell">
|
|
|
+ <div>
|
|
|
+ <input id="check-dns<?= tohtml($dns_index) ?>" class="js-unit-checkbox" type="checkbox" name="dns[]" value="<?= tohtml($key) ?>">
|
|
|
+ <label for="check-dns<?= tohtml($dns_index) ?>" class="u-hide-desktop"><?= tohtml( _("Select")) ?></label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
<div class="units-table-cell units-table-heading-cell">
|
|
|
- <span class="u-hide-desktop u-text-bold"><?= _("Type") ?>:</span>
|
|
|
- <?= _("DNS Zone") ?>
|
|
|
+ <span class="u-hide-desktop u-text-bold"><?= tohtml( _("Type")) ?>:</span>
|
|
|
+ <?= tohtml( _("DNS Zone")) ?>
|
|
|
</div>
|
|
|
<div class="units-table-cell u-text-bold">
|
|
|
- <span class="u-hide-desktop"><?= _("Details") ?>:</span>
|
|
|
- <?= $key ?>
|
|
|
+ <span class="u-hide-desktop"><?= tohtml( _("Details")) ?>:</span>
|
|
|
+ <?= tohtml($key) ?>
|
|
|
</div>
|
|
|
<div class="units-table-cell">
|
|
|
<ul class="units-table-row-actions">
|
|
|
<li class="units-table-row-action shortcut-enter" data-key-action="href">
|
|
|
<a
|
|
|
class="units-table-row-action-link data-controls js-confirm-action"
|
|
|
- href="/schedule/restore/?backup=<?= $backup ?>&type=dns&object=<?= $key ?>&token=<?= $_SESSION["token"] ?>"
|
|
|
- title="<?= _("Restore") ?>"
|
|
|
- data-confirm-title="<?= _("Restore") ?>"
|
|
|
- data-confirm-message="<?= sprintf(_("Are you sure you want to restore %s?"), $key) ?>"
|
|
|
+ href="/schedule/restore/?<?= tohtml(http_build_query(array("backup" => $backup, "type" => "dns", "object" => $key, "token" => $_SESSION["token"]))) ?>"
|
|
|
+ title="<?= tohtml( _("Restore")) ?>"
|
|
|
+ data-confirm-title="<?= tohtml( _("Restore")) ?>"
|
|
|
+ data-confirm-message="<?= tohtml(sprintf(_("Are you sure you want to restore %s?"), $key)) ?>"
|
|
|
>
|
|
|
<i class="fas fa-arrow-rotate-left icon-green"></i>
|
|
|
- <span class="u-hide-desktop"><?= _("Restore") ?></span>
|
|
|
+ <span class="u-hide-desktop"><?= tohtml( _("Restore")) ?></span>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -172,38 +185,41 @@
|
|
|
<?php }} ?>
|
|
|
|
|
|
<!-- List Databases -->
|
|
|
- <?php
|
|
|
- $db = explode(',',$data[$backup]['DB']);
|
|
|
- foreach ($db as $key) {
|
|
|
- if (!empty($key)) {
|
|
|
- ?>
|
|
|
- <div class="units-table-row js-unit">
|
|
|
- <div class="units-table-cell">
|
|
|
- <div>
|
|
|
- <input id="check4<?= $i ?>" class="js-unit-checkbox" type="checkbox" name="db[]" value="<?= $key ?>">
|
|
|
- <label for="check4<?= $i ?>" class="u-hide-desktop"><?= _("Select") ?></label>
|
|
|
+ <?php
|
|
|
+ $db_index = 0;
|
|
|
+ $db = explode(',',$data[$backup]['DB']);
|
|
|
+ foreach ($db as $key) {
|
|
|
+ if (!empty($key)) {
|
|
|
+ ++$db_index;
|
|
|
+ ++$item_count;
|
|
|
+ ?>
|
|
|
+ <div class="units-table-row js-unit">
|
|
|
+ <div class="units-table-cell">
|
|
|
+ <div>
|
|
|
+ <input id="check-db<?= tohtml($db_index) ?>" class="js-unit-checkbox" type="checkbox" name="db[]" value="<?= tohtml($key) ?>">
|
|
|
+ <label for="check-db<?= tohtml($db_index) ?>" class="u-hide-desktop"><?= tohtml( _("Select")) ?></label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
<div class="units-table-cell units-table-heading-cell">
|
|
|
- <span class="u-hide-desktop u-text-bold"><?= _("Type") ?>:</span>
|
|
|
- <?= _("Database") ?>
|
|
|
+ <span class="u-hide-desktop u-text-bold"><?= tohtml( _("Type")) ?>:</span>
|
|
|
+ <?= tohtml( _("Database")) ?>
|
|
|
</div>
|
|
|
<div class="units-table-cell u-text-bold">
|
|
|
- <span class="u-hide-desktop"><?= _("Details") ?>:</span>
|
|
|
- <?= $key ?>
|
|
|
+ <span class="u-hide-desktop"><?= tohtml( _("Details")) ?>:</span>
|
|
|
+ <?= tohtml($key) ?>
|
|
|
</div>
|
|
|
<div class="units-table-cell">
|
|
|
<ul class="units-table-row-actions">
|
|
|
<li class="units-table-row-action shortcut-enter" data-key-action="href">
|
|
|
<a
|
|
|
class="units-table-row-action-link data-controls js-confirm-action"
|
|
|
- href="/schedule/restore/?backup=<?= $backup ?>&type=db&object=<?= $key ?>&token=<?= $_SESSION["token"] ?>"
|
|
|
- title="<?= _("Restore") ?>"
|
|
|
- data-confirm-title="<?= _("Restore") ?>"
|
|
|
- data-confirm-message="<?= sprintf(_("Are you sure you want to restore %s?"), $key) ?>"
|
|
|
+ href="/schedule/restore/?<?= tohtml(http_build_query(array("backup" => $backup, "type" => "db", "object" => $key, "token" => $_SESSION["token"]))) ?>"
|
|
|
+ title="<?= tohtml( _("Restore")) ?>"
|
|
|
+ data-confirm-title="<?= tohtml( _("Restore")) ?>"
|
|
|
+ data-confirm-message="<?= tohtml(sprintf(_("Are you sure you want to restore %s?"), $key)) ?>"
|
|
|
>
|
|
|
<i class="fas fa-arrow-rotate-left icon-green"></i>
|
|
|
- <span class="u-hide-desktop"><?= _("Restore") ?></span>
|
|
|
+ <span class="u-hide-desktop"><?= tohtml( _("Restore")) ?></span>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -211,76 +227,83 @@
|
|
|
</div>
|
|
|
<?php }} ?>
|
|
|
|
|
|
- <!-- List Cron Jobs -->
|
|
|
- <?php if (!empty($data[$backup]["CRON"])) {
|
|
|
- if (!empty($key)) { ?>
|
|
|
- <div class="units-table-row js-unit">
|
|
|
- <div class="units-table-cell">
|
|
|
- <div>
|
|
|
- <input id="check5<?= $i ?>" class="js-unit-checkbox" type="checkbox" name="check" value="<?= $key ?>">
|
|
|
- <label for="check5<?= $i ?>" class="u-hide-desktop"><?= _("Select") ?></label>
|
|
|
+ <!-- List Cron Jobs -->
|
|
|
+ <?php
|
|
|
+ $cron_index = 0;
|
|
|
+ if (!empty($data[$backup]["CRON"])) {
|
|
|
+ ++$cron_index;
|
|
|
+ ++$item_count;
|
|
|
+ ?>
|
|
|
+ <div class="units-table-row js-unit">
|
|
|
+ <div class="units-table-cell">
|
|
|
+ <div>
|
|
|
+ <input id="check-cron<?= tohtml($cron_index) ?>" class="js-unit-checkbox" type="checkbox" name="cron" value="yes">
|
|
|
+ <label for="check-cron<?= tohtml($cron_index) ?>" class="u-hide-desktop"><?= tohtml( _("Select")) ?></label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
<div class="units-table-cell units-table-heading-cell">
|
|
|
- <span class="u-hide-desktop u-text-bold"><?= _("Type") ?>:</span>
|
|
|
- <?= _("Cron Jobs") ?>
|
|
|
+ <span class="u-hide-desktop u-text-bold"><?= tohtml( _("Type")) ?>:</span>
|
|
|
+ <?= tohtml( _("Cron Jobs")) ?>
|
|
|
</div>
|
|
|
<div class="units-table-cell u-text-bold">
|
|
|
- <span class="u-hide-desktop"><?= _("Details") ?>:</span>
|
|
|
- <?= _("Jobs") ?>
|
|
|
+ <span class="u-hide-desktop"><?= tohtml( _("Details")) ?>:</span>
|
|
|
+ <?= tohtml( _("Jobs")) ?>
|
|
|
</div>
|
|
|
<div class="units-table-cell">
|
|
|
<ul class="units-table-row-actions">
|
|
|
<li class="units-table-row-action shortcut-enter" data-key-action="href">
|
|
|
- <a
|
|
|
- class="units-table-row-action-link data-controls js-confirm-action"
|
|
|
- href="/schedule/restore/?backup=<?= $backup ?>&type=cron&object=records&token=<?= $_SESSION["token"] ?>"
|
|
|
- title="<?= _("Restore") ?>"
|
|
|
- data-confirm-title="<?= _("Restore") ?>"
|
|
|
- data-confirm-message="<?= sprintf(_("Are you sure you want to restore %s?"), $key) ?>"
|
|
|
- >
|
|
|
- <i class="fas fa-arrow-rotate-left icon-green"></i>
|
|
|
- <span class="u-hide-desktop"><?= _("Restore") ?></span>
|
|
|
+ <a
|
|
|
+ class="units-table-row-action-link data-controls js-confirm-action"
|
|
|
+ href="/schedule/restore/?<?= tohtml(http_build_query(array("backup" => $backup, "type" => "cron", "object" => "records", "token" => $_SESSION["token"]))) ?>"
|
|
|
+ title="<?= tohtml( _("Restore")) ?>"
|
|
|
+ data-confirm-title="<?= tohtml( _("Restore")) ?>"
|
|
|
+ data-confirm-message="<?= tohtml( _("Are you sure you want to restore cron jobs?")) ?>"
|
|
|
+ >
|
|
|
+ <i class="fas fa-arrow-rotate-left icon-green"></i>
|
|
|
+ <span class="u-hide-desktop"><?= tohtml( _("Restore")) ?></span>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <?php }} ?>
|
|
|
+ <?php } ?>
|
|
|
|
|
|
<!-- List user directories -->
|
|
|
- <?php
|
|
|
- $udir = explode(',',$data[$backup]['UDIR']);
|
|
|
- foreach ($udir as $key) {
|
|
|
- if (!empty($key)) {
|
|
|
- ?>
|
|
|
- <div class="units-table-row js-unit">
|
|
|
- <div class="units-table-cell">
|
|
|
- <div>
|
|
|
- <input id="check6<?= $i ?>" class="js-unit-checkbox" type="checkbox" name="udir[]" value="<?= $key ?>">
|
|
|
- <label for="check6<?= $i ?>" class="u-hide-desktop"><?= _("Select") ?></label>
|
|
|
+ <?php
|
|
|
+ $udir_index = 0;
|
|
|
+ $udir = explode(',',$data[$backup]['UDIR']);
|
|
|
+ foreach ($udir as $key) {
|
|
|
+ if (!empty($key)) {
|
|
|
+ ++$udir_index;
|
|
|
+ ++$item_count;
|
|
|
+ ?>
|
|
|
+ <div class="units-table-row js-unit">
|
|
|
+ <div class="units-table-cell">
|
|
|
+ <div>
|
|
|
+ <input id="check-udir<?= tohtml($udir_index) ?>" class="js-unit-checkbox" type="checkbox" name="udir[]" value="<?= tohtml($key) ?>">
|
|
|
+ <label for="check-udir<?= tohtml($udir_index) ?>" class="u-hide-desktop"><?= tohtml( _("Select")) ?></label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
<div class="units-table-cell units-table-heading-cell">
|
|
|
- <span class="u-hide-desktop u-text-bold"><?= _("Type") ?>:</span>
|
|
|
- <?= _("User Directory") ?>
|
|
|
+ <span class="u-hide-desktop u-text-bold"><?= tohtml( _("Type")) ?>:</span>
|
|
|
+ <?= tohtml( _("User Directory")) ?>
|
|
|
</div>
|
|
|
<div class="units-table-cell u-text-bold">
|
|
|
- <span class="u-hide-desktop"><?= _("Details") ?>:</span>
|
|
|
- <?= $key ?>
|
|
|
+ <span class="u-hide-desktop"><?= tohtml( _("Details")) ?>:</span>
|
|
|
+ <?= tohtml($key) ?>
|
|
|
</div>
|
|
|
<div class="units-table-cell">
|
|
|
<ul class="units-table-row-actions">
|
|
|
<li class="units-table-row-action shortcut-enter" data-key-action="href">
|
|
|
<a
|
|
|
class="units-table-row-action-link data-controls js-confirm-action"
|
|
|
- href="/schedule/restore/?backup=<?= $backup ?>&type=udir&object=<?= $key ?>&token=<?= $_SESSION["token"] ?>"
|
|
|
- title="<?= _("Restore") ?>"
|
|
|
- data-confirm-title="<?= _("Restore") ?>"
|
|
|
- data-confirm-message="<?= sprintf(_("Are you sure you want to restore %s?"), $key) ?>"
|
|
|
+ href="/schedule/restore/?<?= tohtml(http_build_query(array("backup" => $backup, "type" => "udir", "object" => $key, "token" => $_SESSION["token"]))) ?>"
|
|
|
+ title="<?= tohtml( _("Restore")) ?>"
|
|
|
+ data-confirm-title="<?= tohtml( _("Restore")) ?>"
|
|
|
+ data-confirm-message="<?= tohtml(sprintf(_("Are you sure you want to restore %s?"), $key)) ?>"
|
|
|
>
|
|
|
<i class="fas fa-arrow-rotate-left icon-green"></i>
|
|
|
- <span class="u-hide-desktop"><?= _("Restore") ?></span>
|
|
|
+ <span class="u-hide-desktop"><?= tohtml( _("Restore")) ?></span>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -291,8 +314,8 @@
|
|
|
|
|
|
<div class="units-table-footer">
|
|
|
<p>
|
|
|
- <?php printf(ngettext("%d item", "%d items", $i), $i); ?>
|
|
|
- </p>
|
|
|
- </div>
|
|
|
+ <?php printf(ngettext("%d item", "%d items", $item_count), $item_count); ?>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
|
|
|
</div>
|