index.php 508 B

1234567891011121314151617181920212223
  1. <?php
  2. ob_start();
  3. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  4. // Check token
  5. verify_csrf($_GET);
  6. if (!empty($_GET['job'])) {
  7. $v_username = escapeshellarg($user);
  8. $v_job = escapeshellarg($_GET['job']);
  9. exec(HESTIA_CMD."v-suspend-cron-job ".$v_username." ".$v_job, $output, $return_var);
  10. check_return_code($return_var, $output);
  11. unset($output);
  12. }
  13. $back = $_SESSION['back'];
  14. if (!empty($back)) {
  15. header("Location: ".$back);
  16. exit;
  17. }
  18. header("Location: /list/cron/");
  19. exit;