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

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. #declare(strict_types=1);
  3. enforce_login();
  4. if (!check_perms('site_top10')) {
  5. error(403);
  6. }
  7. include SERVER_ROOT.'/sections/torrents/functions.php'; //Has get_reports($TorrentID);
  8. if (empty($_GET['type']) || $_GET['type'] === 'torrents') {
  9. include SERVER_ROOT.'/sections/top10/torrents.php';
  10. } else {
  11. switch ($_GET['type']) {
  12. case 'users':
  13. include SERVER_ROOT.'/sections/top10/users.php';
  14. break;
  15. case 'tags':
  16. include SERVER_ROOT.'/sections/top10/tags.php';
  17. break;
  18. case 'history':
  19. include SERVER_ROOT.'/sections/top10/history.php';
  20. break;
  21. case 'donors':
  22. include SERVER_ROOT.'/sections/top10/donors.php';
  23. break;
  24. default:
  25. error(404);
  26. break;
  27. }
  28. }