index.php 549 B

12345678910111213141516171819202122232425
  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. }
  13. check_return_code($return_var,$output);
  14. unset($output);
  15. }
  16. $back = $_SESSION['back'];
  17. if (!empty($back)) {
  18. header("Location: ".$back);
  19. exit;
  20. }
  21. header("Location: /list/user/");
  22. exit;