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

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. // Already done in /sections/ajax/index.php
  3. //enforce_login();
  4. if (!check_perms('site_top10')) {
  5. echo json_encode(array('status' => 'failure'));
  6. error();
  7. }
  8. if (empty($_GET['type']) || $_GET['type'] === 'torrents') {
  9. include SERVER_ROOT.'/sections/ajax/top10/torrents.php';
  10. } else {
  11. switch ($_GET['type']) {
  12. case 'users':
  13. include SERVER_ROOT.'/sections/ajax/top10/users.php';
  14. break;
  15. case 'tags':
  16. include SERVER_ROOT.'/sections/ajax/top10/tags.php';
  17. break;
  18. case 'history':
  19. include SERVER_ROOT.'/sections/ajax/top10/history.php';
  20. break;
  21. default:
  22. echo json_encode(array('status' => 'failure'));
  23. break;
  24. }
  25. }