mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 04:01:35 +00:00
Empty commit
This commit is contained in:
parent
9251320939
commit
2fd2945f63
@ -8,7 +8,7 @@
|
||||
|*************************************************************************/
|
||||
|
||||
if (!extension_loaded('mcrypt')) {
|
||||
error('Mcrypt Extension not loaded.');
|
||||
die('Mcrypt Extension not loaded.');
|
||||
}
|
||||
|
||||
class CRYPT {
|
||||
|
@ -139,7 +139,7 @@ function ValidateForm($ValidateArray) {
|
||||
$MinLength = 1;
|
||||
}
|
||||
|
||||
if (!preg_match('/^'.USERNAME_REGEX.'$/i', $ValidateVar)) {
|
||||
if (!preg_match(USERNAME_REGEX, $ValidateVar)) {
|
||||
return $Field['ErrorMessage'];
|
||||
} elseif (strlen($ValidateVar) > $MaxLength) {
|
||||
return $Field['ErrorMessage'];
|
||||
|
@ -1442,7 +1442,7 @@ CREATE TABLE `users_info` (
|
||||
`ResetExpires` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`JoinDate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`Inviter` int(10) DEFAULT NULL,
|
||||
`BitcoinAddress` tinytext,
|
||||
`BitcoinAddress` varchar(34) DEFAULT NULL,
|
||||
`WarnedTimes` int(2) NOT NULL DEFAULT '0',
|
||||
`DisableAvatar` enum('0','1') NOT NULL DEFAULT '0',
|
||||
`DisableInvites` enum('0','1') NOT NULL DEFAULT '0',
|
||||
@ -1478,7 +1478,6 @@ CREATE TABLE `users_info` (
|
||||
KEY `RatioWatchEnds` (`RatioWatchEnds`),
|
||||
KEY `RatioWatchDownload` (`RatioWatchDownload`),
|
||||
KEY `BitcoinAddress` (`BitcoinAddress`(4)),
|
||||
KEY `BitcoinAddress_2` (`BitcoinAddress`(4)),
|
||||
KEY `AuthKey` (`AuthKey`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
@ -8,7 +8,9 @@
|
||||
View::show_header('Bitcoin donation balance');
|
||||
|
||||
$Balance = btc_balance() . ' BTC';
|
||||
$Receiveds = btc_received();
|
||||
$BitcoinAddresses = btc_received();
|
||||
|
||||
$Debug->log_var($BitcoinAddresses, 'Bitcoin addresses');
|
||||
$DB->query("
|
||||
SELECT i.UserID, i.BitcoinAddress
|
||||
FROM users_info AS i
|
||||
@ -27,21 +29,15 @@
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
<?
|
||||
while ($row = $DB->next_record()) {
|
||||
$amount = false;
|
||||
foreach ($Receiveds as $R) {
|
||||
if ($R->address == $row['BitcoinAddress']) {
|
||||
$amount = $R->amount . ' BTC';
|
||||
}
|
||||
}
|
||||
if ($amount === false) {
|
||||
while (list($UserID, $BitcoinAddress) = $DB->next_record(MYSQLI_NUM, false)) {
|
||||
if (!$BitcoinAddresses[$BitcoinAddress]) {
|
||||
continue;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<tr>
|
||||
<td><?=Users::format_username($row['UserID'], true, false, false, false)?></td>
|
||||
<td><tt><?=$row['BitcoinAddress']?></tt></td>
|
||||
<td><?=$amount?></td>
|
||||
<td><?=Users::format_username($UserID, true, false, false, false)?></td>
|
||||
<td><tt><?=$BitcoinAddress?></tt></td>
|
||||
<td><?=$BitcoinAddresses[$BitcoinAddress]?> BTC</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user