mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -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
30
web/bulk/package/index.php
Normal file
30
web/bulk/package/index.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
ob_start();
|
||||
session_start();
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
$package = $_POST['package'];
|
||||
$action = $_POST['action'];
|
||||
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
switch ($action) {
|
||||
case 'delete': $cmd='v_delete_user_package';
|
||||
break;
|
||||
default: header("Location: /list/package/"); exit;
|
||||
}
|
||||
} else {
|
||||
header("Location: /list/package/");
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach ($package as $value) {
|
||||
$value = escapeshellarg($value);
|
||||
exec (VESTA_CMD.$cmd." ".$value, $output, $return_var);
|
||||
$restart = 'yes';
|
||||
}
|
||||
|
||||
|
||||
header("Location: /list/package/");
|
Loading…
Add table
Add a link
Reference in a new issue