?> <table class="border" width="100%"> <tr class="colhead"> <td>Bitcoin Address</td> <td>User</td> <td>Unprocessed Amount (Total: <?php echo $TotalUnproc ?: '0'; ?> )</td> <td>Total Amount</td> <td>Donor Rank</td> <td>Special Rank</td> </tr> <?php if (!empty($NewDonations)) { foreach (DonationsBitcoin::get_userids(array_keys($NewDonations)) as $Address => $UserID) { $DonationEUR = Donations::currency_exchange($NewDonations[$Address], 'BTC'); ?> <tr> <td><?php echo $Address; ?> </td> <td><?php echo Users::format_username($UserID, true, false, false); ?> </td> <td><?php echo $NewDonations[$Address]; ?> (<?php
public static function schedule() { self::$IsSchedule = true; DonationsBitcoin::find_new_donations(); self::expire_ranks(); self::get_new_conversion_rates(); }
<div class="header"> <h3><?php echo $Balance; ?> </h3> </div> <?php if (empty($_GET['list'])) { ?> <a href="?action=<?php echo $_GET['action']; ?> &list=1" class="brackets">Show donor list</a> <?php } else { $BitcoinAddresses = DonationsBitcoin::get_received(); $DB->query("\n\t\tSELECT i.UserID, i.BitcoinAddress\n\t\tFROM users_info AS i\n\t\t\tJOIN users_main AS m ON m.ID = i.UserID\n\t\tWHERE BitcoinAddress != ''\n\t\tORDER BY m.Username ASC"); ?> <table> <tr class="colhead"> <th>Username</th> <th>Receiving Bitcoin Address</th> <th>Amount</th> </tr> <?php while (list($UserID, $BitcoinAddress) = $DB->next_record(MYSQLI_NUM, false)) { if (!isset($BitcoinAddresses[$BitcoinAddress])) { continue; } ?> <tr>