mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-14 03:16:25 +00:00
6273679d49
fix typo I introduced in schedule.php Print to LAB_CHAN if sphinx connection fails nice bitcoin display Corrects [#] tag for Mono [hateradio] bitcoin donation Fix torrent unbookmarking upgraded sphinxapi.php to r2876 as the site is running r2902 Added options to block Tor, Opera Turbo and Opera Mini check for stale cache vanity house [clone00] bookmark almost anything [patapper] new torrent edit flags [rattvis] permissions stuff from patappatch c [BBCode] new [important] tag [DutchDude] Fixed images flowing past their boxes [hateradio] [BBCode] Tag for ordered lists. [hateradio] finally fixed that annoying textarea-resizing thing renamed temporary tables fixes http://what.cd/forums.php?action=viewthread&threadid=137432&page=1#post3408738 implements http://what.cd/forums.php?action=viewthread&threadid=122832 fixes http://what.cd/forums.php?action=viewthread&threadid=136553 fixes http://what.cd/forums.php?action=viewthread&threadid=112967 implements http://what.cd/forums.php?action=viewthread&threadid=110395
55 lines
1.6 KiB
PHP
55 lines
1.6 KiB
PHP
<?
|
|
enforce_login();
|
|
include(SERVER_ROOT.'/sections/bookmarks/functions.php');
|
|
|
|
// Number of users per page
|
|
define('BOOKMARKS_PER_PAGE', '20');
|
|
|
|
if (empty($_REQUEST['action'])) { $_REQUEST['action'] = 'view'; }
|
|
switch($_REQUEST['action']) {
|
|
case 'add':
|
|
require(SERVER_ROOT.'/sections/bookmarks/add.php');
|
|
break;
|
|
|
|
|
|
case 'remove':
|
|
require(SERVER_ROOT.'/sections/bookmarks/remove.php');
|
|
break;
|
|
|
|
case 'remove_snatched':
|
|
error(0); // disable this for now as it's the heaviest part of the entire site
|
|
authorize();
|
|
$DB->query("DELETE b FROM bookmarks_torrents AS b WHERE b.UserID='".$LoggedUser['ID']."' AND b.GroupID IN(SELECT DISTINCT t.GroupID FROM torrents AS t INNER JOIN xbt_snatched AS s ON s.fid=t.ID AND s.uid='".$LoggedUser['ID']."')");
|
|
$Cache->delete_value('bookmarks_torrents_'.$UserID);
|
|
$Cache->delete_value('bookmarks_torrents_'.$UserID.'_full');
|
|
header('Location: bookmarks.php');
|
|
die();
|
|
break;
|
|
|
|
case 'view':
|
|
if (empty($_REQUEST['type'])) { $_REQUEST['type'] = 'torrents'; }
|
|
switch ($_REQUEST['type']) {
|
|
case 'torrents':
|
|
require(SERVER_ROOT.'/sections/bookmarks/torrents.php');
|
|
break;
|
|
case 'artists':
|
|
require(SERVER_ROOT.'/sections/bookmarks/artists.php');
|
|
break;
|
|
case 'collages':
|
|
$_GET['bookmarks'] = 1;
|
|
require(SERVER_ROOT.'/sections/collages/browse.php');
|
|
break;
|
|
case 'requests':
|
|
include(SERVER_ROOT.'/sections/requests/functions.php');
|
|
$_GET['type'] = 'bookmarks';
|
|
require(SERVER_ROOT.'/sections/requests/requests.php');
|
|
break;
|
|
default:
|
|
error(404);
|
|
}
|
|
break;
|
|
default:
|
|
error(404);
|
|
}
|
|
?>
|