2012-01-19 08:00:18 +00:00
|
|
|
<?
|
2013-03-29 08:00:08 +00:00
|
|
|
|
2012-01-19 08:00:18 +00:00
|
|
|
|
2013-02-22 08:00:24 +00:00
|
|
|
// Number of users per page
|
2012-01-19 08:00:18 +00:00
|
|
|
define('BOOKMARKS_PER_PAGE', '20');
|
|
|
|
|
|
|
|
if (empty($_REQUEST['type'])) { $_REQUEST['type'] = 'torrents'; }
|
|
|
|
switch ($_REQUEST['type']) {
|
|
|
|
case 'torrents':
|
|
|
|
require(SERVER_ROOT.'/sections/ajax/bookmarks/torrents.php');
|
|
|
|
break;
|
|
|
|
case 'artists':
|
|
|
|
require(SERVER_ROOT.'/sections/ajax/bookmarks/artists.php');
|
|
|
|
break;
|
|
|
|
case 'collages':
|
|
|
|
$_GET['bookmarks'] = 1;
|
|
|
|
require(SERVER_ROOT.'/sections/ajax/collages/browse.php');
|
|
|
|
break;
|
|
|
|
case 'requests':
|
|
|
|
$_GET['type'] = 'bookmarks';
|
|
|
|
require(SERVER_ROOT.'/sections/ajax/requests/requests.php');
|
|
|
|
break;
|
|
|
|
default:
|
2013-02-22 08:00:24 +00:00
|
|
|
print
|
2012-01-19 08:00:18 +00:00
|
|
|
json_encode(
|
|
|
|
array(
|
|
|
|
'status' => 'failure'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|