index.php 294 B

123456789101112131415
  1. <?php
  2. ob_start();
  3. include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php";
  4. // Check token
  5. verify_csrf($_GET);
  6. if ($_SESSION["userContext"] === "admin") {
  7. exec(HESTIA_CMD . "v-delete-cron-hestia-autoupdate", $output, $return_var);
  8. unset($output);
  9. }
  10. header("Location: /list/updates/");
  11. exit();