mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
delete backup exclusions
This commit is contained in:
parent
5edb660eb9
commit
a85aa52b22
5 changed files with 132 additions and 4 deletions
27
web/delete/backup/exclusion/index.php
Normal file
27
web/delete/backup/exclusion/index.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
ob_start();
|
||||
session_start();
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
if (($_SESSION['user'] == 'admin') && (!empty($_GET['user']))) {
|
||||
$user=$_GET['user'];
|
||||
}
|
||||
|
||||
if (!empty($_GET['system'])) {
|
||||
$v_username = escapeshellarg($user);
|
||||
$v_system = escapeshellarg($_GET['system']);
|
||||
exec (VESTA_CMD."v-delete-user-backup-exclusions ".$v_username." ".$v_system, $output, $return_var);
|
||||
}
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
|
||||
$back = $_SESSION['back'];
|
||||
if (!empty($back)) {
|
||||
header("Location: ".$back);
|
||||
exit;
|
||||
}
|
||||
|
||||
header("Location: /list/backup/exclusions/");
|
||||
exit;
|
Loading…
Add table
Add a link
Reference in a new issue