BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.php 805B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. // Number of users per page
  3. define('BOOKMARKS_PER_PAGE', '20');
  4. if (empty($_REQUEST['type'])) {
  5. $_REQUEST['type'] = 'torrents';
  6. }
  7. switch ($_REQUEST['type']) {
  8. case 'torrents':
  9. require SERVER_ROOT.'/sections/ajax/bookmarks/torrents.php';
  10. break;
  11. case 'artists':
  12. require SERVER_ROOT.'/sections/ajax/bookmarks/artists.php';
  13. break;
  14. /*
  15. case 'collages':
  16. $_GET['bookmarks'] = 1;
  17. require SERVER_ROOT.'/sections/ajax/collages/browse.php';
  18. break;
  19. */
  20. /*
  21. case 'requests':
  22. $_GET['type'] = 'bookmarks';
  23. require SERVER_ROOT.'/sections/ajax/requests/requests.php';
  24. break;
  25. */
  26. default:
  27. json_die('failure');
  28. break;
  29. /*
  30. print
  31. json_encode(
  32. array(
  33. 'status' => 'failure'
  34. )
  35. );
  36. error();
  37. */
  38. }