index.php 335 B

1234567891011121314
  1. <?php
  2. // Init
  3. error_reporting(NULL);
  4. ob_start();
  5. session_start();
  6. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  7. if ($_SESSION['user'] == 'admin') {
  8. v_exec('v-delete-cron-vesta-autoupdate', [], false);
  9. $_SESSION['error_msg'] = __('Autoupdate has been successfully disabled');
  10. }
  11. header("Location: /list/updates/");
  12. exit;