Oppaitime'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 820B

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