delete user package

This commit is contained in:
Serghey Rodin 2012-07-31 15:32:26 +03:00
commit 25a2926881
2 changed files with 70 additions and 0 deletions

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