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