backup pages

This commit is contained in:
Serghey Rodin 2012-06-28 14:11:35 +03:00
commit 7a99bd4ad0
7 changed files with 153 additions and 4 deletions

View 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/");