Files
VestaCP/web/delete/user/index.php

17 lines
384 B
PHP
Raw Normal View History

2012-05-23 16:52:52 +03:00
<?php
// Init
2012-06-19 18:23:14 +03:00
error_reporting(NULL);
2012-05-23 16:52:52 +03:00
ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
if ($_SESSION['user'] == 'admin') {
if (!empty($_GET['user'])) {
$v_username = escapeshellarg($_GET['user']);
exec (VESTA_CMD."v_delete_user ".$v_username, $output, $return_var);
unset($output);
}
}
2012-06-19 18:23:14 +03:00
header("Location: /list/user/");