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 831B

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