mirror of
https://github.com/myvesta/vesta.git
synced 2024-12-11 14:50:50 -08:00
395 lines
14 KiB
HTML
395 lines
14 KiB
HTML
<style>
|
|
input[type="checkbox"] {
|
|
display: block;
|
|
margin-top: 26px;
|
|
}
|
|
</style>
|
|
<br /><br />
|
|
<form action="/bulk/restore/" method="post" id="objects">
|
|
<div class="l-center" style="margin-left: 240px; padding-right: 270px;">
|
|
<div class="l-sort clearfix noselect">
|
|
<a href="/schedule/restore/?backup=<?=htmlentities($_GET['backup'])?>" class="l-sort__create-btn restore" style="bottom: 14px;" title="<?=__('Restore All')?>"><div id="add-icon"></div><div id="tooltip"><?=__('Restore All')?></div></a>
|
|
<div class="l-sort-toolbar clearfix">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
|
<input type="hidden" name="backup" value="<?=htmlentities($_GET['backup']); ?>">
|
|
<div style="display: none;">
|
|
<select name="action">
|
|
<option value=""><?=__('apply to selected')?></option>
|
|
<option selected="selected" value="restore"><?php print __('restore') ?></option>
|
|
</select>
|
|
</div>
|
|
<input type="submit" value="<?php print __('restore selected') ?>" style="width: 150px; height:30px; background-color: #a8cb1c; color: white;" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!-- /.l-sort -->
|
|
</div>
|
|
|
|
<div class="l-separator"></div>
|
|
<!-- /.l-separator -->
|
|
|
|
|
|
<div class="l-center units" style="margin-left: 240px; padding-right: 270px;">
|
|
<div class="l-unit header">
|
|
<div class="subtitle" style="color: black;"><?=__('Listing')?> <?=htmlentities($_GET['backup'])?></div>
|
|
<div class="subtitle"><?=__('First select what to restore')?>:</div>
|
|
</div>
|
|
|
|
<?
|
|
$backup = $_GET['backup'];
|
|
$web = explode(',',$data[$backup]['WEB']);
|
|
foreach ($web as $key) {
|
|
if (!empty($key)) {
|
|
++$i;
|
|
?>
|
|
|
|
<div class="backup-items">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left" style="margin-left: 15px;">
|
|
<input id="check<?=$i?>" class="ch-toggle" type="checkbox" name="web[]" value="<?=$key?>">
|
|
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=web&object=<?=$key?>&token=<?=$_SESSION['token']?>"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<!-- div class="l-unit__name separate">
|
|
<?=$key?>
|
|
</div -->
|
|
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?='WEB ' . __('domain')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b><?=$key?></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!--div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<? }} ?>
|
|
|
|
|
|
|
|
<?
|
|
$mail = explode(',',$data[$backup]['MAIL']);
|
|
foreach ($mail as $key) {
|
|
if (!empty($key)) {
|
|
?>
|
|
|
|
<div class="backup-items">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left" style="margin-left: 15px;">
|
|
<input id="check2<?=$i?>" type="checkbox" name="mail[]" value="<?=$key?>">
|
|
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=mail&object=<?=$key?>"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?='MAIL ' . __('domain')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b><?=$key?></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!--div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<? }} ?>
|
|
|
|
|
|
|
|
|
|
<?
|
|
$dns = explode(',',$data[$backup]['DNS']);
|
|
foreach ($dns as $key) {
|
|
if (!empty($key)) {
|
|
?>
|
|
|
|
<div class="backup-items">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left" style="margin-left: 15px;">
|
|
<input id="check3<?=$i?>" type="checkbox" name="dns[]" value="<?=$key?>">
|
|
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=dns&object=<?=$key?>"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?='DNS ' . __('domain')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b><?=$key?></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!--div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<? }} ?>
|
|
|
|
|
|
|
|
<?
|
|
$db = explode(',',$data[$backup]['DB']);
|
|
foreach ($db as $key) {
|
|
if (!empty($key)) {
|
|
?>
|
|
|
|
<div class="backup-items">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left" style="margin-left: 15px;">
|
|
<input id="check4<?=$i?>" type="checkbox" name="db[]" value="<?=$key?>">
|
|
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=db&object=<?=$key?>"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?=__('database')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b><?=$key?></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!--div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<? }} ?>
|
|
|
|
|
|
|
|
|
|
<?
|
|
$backup = $_GET['backup'];
|
|
if (!empty($data[$backup]['CRON'])) {
|
|
if (!empty($key)) {
|
|
?>
|
|
|
|
<div class="backup-items">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left" style="margin-left: 15px;">
|
|
<input id="check5<?=$i?>" type="checkbox" name="check" value="<?=$key?>">
|
|
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=cron&object=records"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?=__('cron')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b><?='cron '.__('records')?></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!--div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<? }} ?>
|
|
|
|
|
|
|
|
|
|
<?
|
|
$udir = explode(',',$data[$backup]['UDIR']);
|
|
foreach ($udir as $key) {
|
|
if (!empty($key)) {
|
|
?>
|
|
|
|
<div class="backup-items">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left" style="margin-left: 15px;">
|
|
<input id="check6<?=$i?>" type="checkbox" name="udir[]" value="<?=$key?>">
|
|
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=udir&object=<?=$key?>"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?=__('user dir')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b><?=$key?></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!-- div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
<? }} ?>
|
|
|
|
<div class="backup-items">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left" style="margin-left: 15px;">
|
|
<input id="check7<?=$i?>" type="checkbox" name="cron" value="<?=$i?>">
|
|
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--right">
|
|
<div class="actions-panel__col actions-panel__update shortcut-r" key-action="href"><a href="/schedule/restore/?backup=<?=$backup?>&type=cron"><?=__('restore')?> <i></i></a><span class="shortcut"> R</span></div>
|
|
<!-- /.actiona-panel -->
|
|
</div>
|
|
<!-- l-unit-toolbar__col -->
|
|
</div>
|
|
<!-- /.l-unit-toolbar -->
|
|
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left uppercase"><?=__('cron')?></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--left wide-3"><b></b></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<!-- /.l-unit__stats -->
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
</div>
|
|
<!-- /.l-unit -->
|
|
<!-- div class="l-separator"></div-->
|
|
<!-- /.l-separator -->
|
|
</div>
|
|
|
|
|
|
|
|
<div id="vstobjects">
|
|
<div class="l-separator"></div>
|
|
<div class="l-center">
|
|
<div class="l-unit-ft">
|
|
<table class='data'></table>
|
|
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
|
<div class="data-count l-unit__col l-unit__col--right total clearfix">
|
|
<?php
|
|
if ( $i == 1) {
|
|
echo __('1 item');
|
|
} else {
|
|
echo __('%s items',$i);
|
|
}
|
|
?>
|
|
</div>
|
|
<div class="data-count l-unit__col l-unit__col--right back clearfix">
|
|
<a class="button cancel" href="/list/backup/"><?=__('Back')?></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|