index.php 384 B

12345678910111213141516
  1. <?php
  2. // Init
  3. error_reporting(NULL);
  4. ob_start();
  5. session_start();
  6. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  7. if ($_SESSION['user'] == 'admin') {
  8. if (!empty($_GET['user'])) {
  9. $v_username = escapeshellarg($_GET['user']);
  10. exec (VESTA_CMD."v_delete_user ".$v_username, $output, $return_var);
  11. unset($output);
  12. }
  13. }
  14. header("Location: /list/user/");