index.php 387 B

1234567891011121314
  1. <?php
  2. error_reporting(NULL);
  3. session_start();
  4. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  5. $v_section = $_REQUEST['v_section'];
  6. $v_unit_id = $_REQUEST['v_unit_id'];
  7. unset($_SESSION['favourites'][strtoupper((string)$v_section)][(string)$v_unit_id]);
  8. v_exec('v-delete-user-favourites', [$_SESSION['user'], $v_section, $v_unit_id], false/*true*/);
  9. ?>