mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
added backup/cron/db/ip/package bulk operations
This commit is contained in:
parent
daea2394cc
commit
cfd8bb297b
16 changed files with 272 additions and 106 deletions
23
web/bulk/backup/index.php
Normal file
23
web/bulk/backup/index.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
ob_start();
|
||||
session_start();
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
$backup = $_POST['backup'];
|
||||
$action = $_POST['action'];
|
||||
|
||||
switch ($action) {
|
||||
case 'delete': $cmd='v_delete_user_backup';
|
||||
break;
|
||||
default: header("Location: /list/backup/"); exit;
|
||||
}
|
||||
|
||||
foreach ($backup as $value) {
|
||||
$value = escapeshellarg($value);
|
||||
exec (VESTA_CMD.$cmd." ".$user." ".$value, $output, $return_var);
|
||||
}
|
||||
|
||||
header("Location: /list/backup/");
|
Loading…
Add table
Add a link
Reference in a new issue