mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-02-02 20:49:28 +01:00
18 lines
454 B
PHP
18 lines
454 B
PHP
<?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/");
|