index.php 410 B

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