mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
imroved favorites handler
This commit is contained in:
parent
cd437282b2
commit
a5efa885d8
4 changed files with 13 additions and 57 deletions
|
@ -1,19 +1,15 @@
|
|||
<?php
|
||||
|
||||
echo 'delete Favorites<br>';
|
||||
|
||||
|
||||
error_reporting(NULL);
|
||||
ob_start();
|
||||
session_start();
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
unset($_SESSION['favourites'][strtoupper($_REQUEST['v_section'])][$_REQUEST['v_unit_id']]);
|
||||
|
||||
$v_section = escapeshellarg($_REQUEST['v_section']);
|
||||
$v_unit_id = escapeshellarg($_REQUEST['v_unit_id']);
|
||||
|
||||
exec (VESTA_CMD."v-delete-user-favourites ".$_SESSION['user']." ".$v_section." ".$v_unit_id, $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
|
||||
|
||||
// check_return_code($return_var,$output);
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue