index.php 470 B

12345678910111213141516171819
  1. <?php
  2. // Init
  3. error_reporting(NULL);
  4. ob_start();
  5. session_start();
  6. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  7. // Check token
  8. if ((!isset($_GET['token'])) || ($_SESSION['token'] != $_GET['token'])) {
  9. header('location: /login/');
  10. exit();
  11. }
  12. exec (VESTA_CMD."v-delete-cron-reports ".$user, $output, $return_var);
  13. $_SESSION['error_msg'] = __('Cronjob email reporting has been successfully disabled');
  14. unset($output);
  15. header("Location: /list/cron/");
  16. exit;