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.

config.php 894B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. define('PAYPAL_ADDRESS', '');
  3. define('PAYPAL_CURRENCY', 'EUR');
  4. define('PAYPAL_SYMBOL', '&#8364;');
  5. define('PAYPAL_MINIMUM', 5);
  6. function btc_received()
  7. {
  8. }
  9. function btc_balance()
  10. {
  11. }
  12. // This will be rarely called, so let's go directly to the database
  13. function btc_address($UserID, $GenAddress = false)
  14. {
  15. global $DB;
  16. $UserID = (int)$UserID;
  17. $DB->query("
  18. SELECT BitcoinAddress
  19. FROM users_info
  20. WHERE UserID = '$UserID'");
  21. list($Addr) = $DB->next_record();
  22. if (!empty($Addr)) {
  23. return $Addr;
  24. } elseif ($GenAddress) {
  25. if (empty($NewAddr)) {
  26. error(0);
  27. }
  28. $DB->query("
  29. UPDATE users_info
  30. SET BitcoinAddress = '".db_string($NewAddr)."'
  31. WHERE UserID = '$UserID'
  32. AND BitcoinAddress IS NULL");
  33. return $NewAddr;
  34. } else {
  35. return false;
  36. }
  37. }