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 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?
  2. declare(strict_types=1);
  3. enforce_login();
  4. // fix old links
  5. if ($_REQUEST['action'] === 'artists') {
  6. $_REQUEST['action'] = 'artist';
  7. } elseif ($_REQUEST['action'] === 'my_torrents') {
  8. $_REQUEST['action'] = 'torrents';
  9. $_REQUEST['type'] = 'uploaded';
  10. }
  11. $Action = '';
  12. if (!empty($_REQUEST['action'])) {
  13. $Action = $_REQUEST['action'];
  14. }
  15. switch ($Action) {
  16. case 'take_post':
  17. require SERVER_ROOT . '/sections/comments/take_post.php';
  18. break;
  19. case 'take_edit':
  20. require SERVER_ROOT . '/sections/comments/take_edit.php';
  21. break;
  22. case 'take_delete':
  23. require SERVER_ROOT . '/sections/comments/take_delete.php';
  24. break;
  25. case 'warn':
  26. require SERVER_ROOT . '/sections/comments/warn.php';
  27. break;
  28. case 'take_warn':
  29. require SERVER_ROOT . '/sections/comments/take_warn.php';
  30. break;
  31. case 'get':
  32. require SERVER_ROOT . '/sections/comments/get.php';
  33. break;
  34. case 'jump':
  35. require SERVER_ROOT . '/sections/comments/jump.php';
  36. break;
  37. case 'artist':
  38. case 'collages':
  39. case 'requests':
  40. case 'torrents':
  41. default:
  42. require SERVER_ROOT . '/sections/comments/comments.php';
  43. break;
  44. }