Gazelle/sections/bookmarks/mass_edit.php

16 lines
432 B
PHP
Raw Normal View History

2012-10-27 08:00:09 +00:00
<?php
authorize();
2013-03-29 08:00:08 +00:00
if ($UserID != $LoggedUser['ID'] || !Bookmarks::can_bookmark('torrent')) error(403);
2012-10-27 08:00:09 +00:00
if ($_POST['type'] === 'torrents') {
// require_once SERVER_ROOT.'/classes/class_mass_user_bookmarks_editor.php'; //Bookmark Updater Class
$BU = new MASS_USER_BOOKMARKS_EDITOR;
if ($_POST['delete'])
$BU->mass_remove();
else if ($_POST['update'])
$BU->mass_update();
}
header('Location: bookmarks.php?type=torrents');