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.

donate_gpal.php 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php
  2. /*
  3. // todo: Developer, add resend last donation when available AND add missing headers to Test IPN
  4. enforce_login();
  5. // Include the header
  6. if ($LoggedUser['RatioWatch']) {
  7. error('Due to the high volume of payment disputes, we do not accept donations from users on ratio watch. Sorry.');
  8. }
  9. if (!$UserCount = $Cache->get_value('stats_user_count')) {
  10. $DB->query("
  11. SELECT COUNT(ID)
  12. FROM users_main
  13. WHERE Enabled = '1'");
  14. list($UserCount) = $DB->next_record();
  15. $Cache->cache_value('stats_user_count', $UserCount, 0); //inf cache
  16. }
  17. $DonorPerms = Permissions::get_permissions(DONOR);
  18. View::show_header('Donate');
  19. ?>
  20. <!-- Donate -->
  21. <div>
  22. <?php if (check_perms('site_debug')) { ?>
  23. <div class="header">
  24. <h2>Test IPN</h2>
  25. </div>
  26. <div class="box pad">
  27. <form class="donate_form" name="test_paypal" method="post" action="donate.php">
  28. <input type="hidden" name="action" value="ipn" />
  29. <input type="hidden" name="auth"
  30. value="<?=$LoggedUser['AuthKey']?>" />
  31. <?=PAYPAL_SYMBOL?> <input type="text" name="mc_gross"
  32. value="<?=number_format(PAYPAL_MINIMUM, 2)?>" />
  33. <input type="hidden" name="custom"
  34. value="<?=$LoggedUser['ID']?>" />
  35. <input type="hidden" name="payment_status" value="Completed" />
  36. <input type="hidden" name="mc_fee" value="0.45" />
  37. <input type="hidden" name="business"
  38. value="<?=PAYPAL_ADDRESS?>" />
  39. <input type="hidden" name="txn_id" value="0" />
  40. <input type="hidden" name="payment_type" value="instant" />
  41. <input type="text" name="payer_email"
  42. value="<?=$LoggedUser['Username']?>@<?=SITE_DOMAIN?>" />
  43. <input type="hidden" name="mc_currency"
  44. value="<?=PAYPAL_CURRENCY?>" />
  45. <input name="test" type="submit" value="Donate" />
  46. </form>
  47. </div>
  48. <?php
  49. }
  50. ?>
  51. <div class="header">
  52. <h2>Donate</h2>
  53. </div>
  54. <div class="box">
  55. <p>We accept donations to cover the costs associated with running the site and tracker. These costs come from the
  56. rental and purchase of the hardware the site runs on (servers, components, etc.), in addition to operating
  57. expenses (bandwidth, power, etc.).</p>
  58. <p>Because we do not have any advertisements or sponsorships and this service is provided free of charge, we are
  59. entirely reliant upon user donations. If you are financially able, please consider making a donation to help us
  60. pay the bills!</p>
  61. <p>We currently only accept one payment method: PayPal. Because of the fees they charge, there is a <strong>minimum
  62. donation amount of <?=PAYPAL_SYMBOL?> <?=PAYPAL_MINIMUM?></strong> (Please note, this is only a minimum
  63. amount and we greatly appreciate any extra you can afford.).</p>
  64. <p>You don't have to be a PayPal member to make a donation, you can simply donate with your credit or debit card. If
  65. you do not have a credit or debit card, you should be able to donate from your bank account, but you will need to
  66. make an account with them to do this.</p>
  67. <form class="donate_form" name="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
  68. <input type="hidden" name="rm" value="2" />
  69. <input type="hidden" name="cmd" value="_donations" />
  70. <input type="hidden" name="business"
  71. value="<?=PAYPAL_ADDRESS?>" />
  72. <input type="hidden" name="return"
  73. value="<?=site_url()?>donate.php?action=complete" />
  74. <input type="hidden" name="cancel_return"
  75. value="<?=site_url()?>donate.php?action=cancel" />
  76. <input type="hidden" name="notify_url"
  77. value="<?=site_url()?>donate.php?action=ipn" />
  78. <input type="hidden" name="item_name" value="Donation" />
  79. <input type="hidden" name="amount" value="" />
  80. <input type="hidden" name="custom"
  81. value="<?=$LoggedUser['ID']?>" />
  82. <input type="hidden" name="no_shipping" value="0" />
  83. <input type="hidden" name="no_note" value="1" />
  84. <input type="hidden" name="currency_code"
  85. value="<?=PAYPAL_CURRENCY?>" />
  86. <input type="hidden" name="tax" value="0" />
  87. <input type="hidden" name="bn" value="PP-DonationsBF" />
  88. <input type="submit" value="PayPal Donate" />
  89. </form>
  90. </div>
  91. ?>
  92. <h3>What you will receive for a 5&euro; minimum donation</h3>
  93. <div class="box">
  94. <ul>
  95. <?php if ($LoggedUser['Donor']) { ?>
  96. <li>Even more love! (You will not get multiple hearts.)</li>
  97. <li>A warmer, fuzzier feeling than before!</li>
  98. <?php } else { ?>
  99. <li>Our eternal love, as represented by the <img
  100. src="<?=STATIC_SERVER?>common/symbols/donor.png"
  101. alt="Donor" /> you get next to your name.</li>
  102. <li>Two invitations to invite 2 good friends to use this tracker.</li>
  103. <?php
  104. if (USER_LIMIT != 0 && $UserCount >= USER_LIMIT && !check_perms('site_can_invite_always') && !isset($DonorPerms['site_can_invite_always'])) {
  105. ?>
  106. <li class="warning">Note: Because the user limit has been reached, you will be unable to use the invites received
  107. until a later date.</li>
  108. <?php
  109. } ?>
  110. <li>Immunity to inactivity pruning.</li>
  111. <li>Access to an ever growing list of exclusive features, including the ability to submit requests and personal
  112. collages.</li>
  113. <li>A warm, fuzzy feeling.</li>
  114. <?php } ?>
  115. </ul>
  116. </div>
  117. <h3>What you will <strong>not</strong> receive</h3>
  118. <div class="box">
  119. <ul>
  120. <?php if ($LoggedUser['Donor']) { ?>
  121. <li>Two more invitations; these are one time only.</li>
  122. <?php } ?>
  123. <li>Immunity from the rules.</li>
  124. <li>Additional upload credit.</li>
  125. </ul>
  126. </div>
  127. </div>
  128. <!-- END Donate -->
  129. <?php View::show_footer();
  130. */