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.2KB

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