mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
delete user package
This commit is contained in:
parent
06c7b42204
commit
25a2926881
2 changed files with 70 additions and 0 deletions
16
web/delete/package/index.php
Normal file
16
web/delete/package/index.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
ob_start();
|
||||
session_start();
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
if (!empty($_GET['package'])) {
|
||||
$v_package = escapeshellarg($_GET['package']);
|
||||
exec (VESTA_CMD."v_delete_user_package ".$v_package, $output, $return_var);
|
||||
unset($output);
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: /list/package/");
|
Loading…
Add table
Add a link
Reference in a new issue