mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
user function
This commit is contained in:
parent
7bfebfff62
commit
e734d14637
43 changed files with 1280 additions and 54 deletions
|
@ -5,13 +5,13 @@ ob_start();
|
|||
session_start();
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
//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