index.php 343 B

123456789101112131415161718
  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. verify_csrf($_GET);
  9. if ($_SESSION['userContext'] === 'admin') {
  10. exec(HESTIA_CMD."v-delete-cron-hestia-autoupdate", $output, $return_var);
  11. unset($output);
  12. }
  13. header("Location: /list/updates/");
  14. exit;