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

29
web/bulk/ip/index.php Normal file
View file

@ -0,0 +1,29 @@
<?php
// Init
error_reporting(NULL);
ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
$ip = $_POST['ip'];
$action = $_POST['action'];
if ($_SESSION['user'] == 'admin') {
switch ($action) {
case 'delete': $cmd='v_delete_sys_ip';
break;
default: header("Location: /list/ip/"); exit;
}
} else {
header("Location: /list/ip/");
exit;
}
foreach ($ip as $value) {
$value = escapeshellarg($value);
exec (VESTA_CMD.$cmd." ".$value, $output, $return_var);
}
header("Location: /list/ip/");