mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-14 03:16:25 +00:00
6273679d49
fix typo I introduced in schedule.php Print to LAB_CHAN if sphinx connection fails nice bitcoin display Corrects [#] tag for Mono [hateradio] bitcoin donation Fix torrent unbookmarking upgraded sphinxapi.php to r2876 as the site is running r2902 Added options to block Tor, Opera Turbo and Opera Mini check for stale cache vanity house [clone00] bookmark almost anything [patapper] new torrent edit flags [rattvis] permissions stuff from patappatch c [BBCode] new [important] tag [DutchDude] Fixed images flowing past their boxes [hateradio] [BBCode] Tag for ordered lists. [hateradio] finally fixed that annoying textarea-resizing thing renamed temporary tables fixes http://what.cd/forums.php?action=viewthread&threadid=137432&page=1#post3408738 implements http://what.cd/forums.php?action=viewthread&threadid=122832 fixes http://what.cd/forums.php?action=viewthread&threadid=136553 fixes http://what.cd/forums.php?action=viewthread&threadid=112967 implements http://what.cd/forums.php?action=viewthread&threadid=110395
32 lines
740 B
PHP
32 lines
740 B
PHP
<?
|
|
define('PAYPAL_ADDRESS','whatcdbill@gmail.com');
|
|
define('PAYPAL_CURRENCY','EUR');
|
|
define('PAYPAL_SYMBOL','€');
|
|
define('PAYPAL_MINIMUM',5);
|
|
|
|
function btc_received() {
|
|
|
|
}
|
|
|
|
function btc_balance() {
|
|
|
|
}
|
|
|
|
// This will be rarely called, so let's go directly to the database
|
|
function btc_address($UserID, $GenAddress = false) {
|
|
global $DB;
|
|
$UserID = (int)$UserID;
|
|
$DB->query("SELECT BitcoinAddress FROM users_info WHERE UserID = '$UserID'");
|
|
list($Addr) = $DB->next_record();
|
|
|
|
if (!empty($Addr)) { return $Addr; }
|
|
elseif ($GenAddress) {
|
|
|
|
$DB->query("UPDATE users_info SET BitcoinAddress = '".db_string($NewAddr)."' WHERE UserID = '".$UserID."' AND BitcoinAddress IS NULL");
|
|
return $NewAddr;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
?>
|