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