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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. #declare(strict_types=1);
  3. enforce_login();
  4. if ($LoggedUser['DisablePoints']) {
  5. View::show_header('Store'); ?>
  6. <div>
  7. <h2>Denied</h2>
  8. <div class="box">
  9. <p>You are not allowed to spend <?=BONUS_POINTS?>.</p>
  10. </div>
  11. </div>
  12. <?php
  13. View::show_footer();
  14. } else {
  15. if (isset($_REQUEST['item'])) {
  16. switch ($_REQUEST['item']) {
  17. case 'upload_1':
  18. include SERVER_ROOT.'/sections/store/upload_1.php';
  19. break;
  20. case 'upload_10':
  21. include SERVER_ROOT.'/sections/store/upload_10.php';
  22. break;
  23. case 'upload_100':
  24. include SERVER_ROOT.'/sections/store/upload_100.php';
  25. break;
  26. case 'upload_1000':
  27. include SERVER_ROOT.'/sections/store/upload_1000.php';
  28. break;
  29. case 'points_1':
  30. include SERVER_ROOT.'/sections/store/points_1.php';
  31. break;
  32. case 'points_10':
  33. include SERVER_ROOT.'/sections/store/points_10.php';
  34. break;
  35. case 'points_100':
  36. include SERVER_ROOT.'/sections/store/points_100.php';
  37. break;
  38. case 'points_1000':
  39. include SERVER_ROOT.'/sections/store/points_1000.php';
  40. break;
  41. case 'token':
  42. include SERVER_ROOT.'/sections/store/token.php';
  43. break;
  44. case 'freeleechize':
  45. include SERVER_ROOT.'/sections/store/freeleechize.php';
  46. break;
  47. case 'freeleechpool':
  48. include SERVER_ROOT.'/sections/store/freeleechpool.php';
  49. break;
  50. case 'invite':
  51. include SERVER_ROOT.'/sections/store/invite.php';
  52. break;
  53. case 'title':
  54. include SERVER_ROOT.'/sections/store/title.php';
  55. break;
  56. case 'promotion':
  57. include SERVER_ROOT.'/sections/store/promotion.php';
  58. break;
  59. case 'become_admin':
  60. include SERVER_ROOT.'/sections/store/become_admin.php';
  61. break;
  62. case 'badge':
  63. include SERVER_ROOT.'/sections/store/badge.php';
  64. break;
  65. case 'coinbadge':
  66. include SERVER_ROOT.'/sections/store/coinbadge.php';
  67. break;
  68. case 'capture_user':
  69. include SERVER_ROOT.'/sections/store/capture_user.php';
  70. break;
  71. default:
  72. error(404);
  73. break;
  74. }
  75. } else {
  76. include SERVER_ROOT.'/sections/store/store.php';
  77. }
  78. }