index.php 492 B

123456789101112131415161718192021222324
  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') && (!empty($_GET['user']))) {
  8. $user = $_GET['user'];
  9. }
  10. if (!empty($_GET['system'])) {
  11. $v_system = $_GET['system'];
  12. v_exec('v-delete-user-backup-exclusions', [$user, $v_system]);
  13. }
  14. $back = $_SESSION['back'];
  15. if (!empty($back)) {
  16. header("Location: $back");
  17. exit;
  18. }
  19. header("Location: /list/backup/exclusions/");
  20. exit;