added backup/cron/db/ip/package bulk operations

This commit is contained in:
Serghey Rodin 2012-09-27 23:20:37 +03:00
commit cfd8bb297b
16 changed files with 272 additions and 106 deletions

23
web/bulk/backup/index.php Normal file
View 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/");