$debugtmp .= ", NAME: " . $username . ", ID: " . $identifier . ", CREATED AT: " . $user["created_at"]; // Is user qualified for a reward? if ($checkQualification == false || $qualified) { // Check, if Cookie check is enabled if ($checkCookie == false || cookieExists() == false) { $rewardmanager = new RewardManager(); // Check IP if ($checkHost == false || ($reward = $rewardmanager->getRewardByIp()) == null) { // Check user id and authentication method if ($checkAuthMethod == false || ($reward = $rewardmanager->lookupRewardByUser($identifier, $referrer)) == null) { $formid = generateUid(); $registred = $rewardmanager->registerRequest($formid, $identifier, $referrer, $username); // Last query successful and claim registred? if ($registred) { // Register new session id registerUid($formid); $result = "STATE_VALID"; } // Debug info $debugtmp .= ", FORMID: " . $formid; } else { $txid = $reward->txid; // Debug info $debugtmp .= ", REQUESTID: " . $reward->requestid . ", TXID VIA REWARD: " . $txid; $result = "STATE_ALREADY_CLAIMED"; } } else { $txid = $reward->txid; // Debug info $debugtmp .= ", REQUESTID: " . $reward->requestid . ", TXID VIA IP: " . $txid; $result = "STATE_ALREADY_CLAIMED";
<?php include "header.php"; ?> <!-- Bitcointalk intro --> <?php require_once "inc/config.php"; require_once "inc/security.php"; require_once "inc/balance.php"; $uid = generateUid(); registerUid($uid); registerReferrer("bitcointalk"); ?> <h3>Awesome, you chose the authentication via bitcointalk.org!</h3> <br /> <div class="description"> <p>Receive <strong><?php echo getAmountLabelLong("bitcointalk"); ?> </strong> with this method.</p> <p>To <strong>redeem</strong> this reward you need an <strong>activity score above 10</strong> as well as <strong>at least 10 posts</strong> and furthermore your account must be <strong>created before August 1, 2013</strong>.</p> <p>Here comes the tricky part, you need to do three things. At first, you have to find a link to your <strong>user profile</strong>. Paste the link to your profile in the <strong>first box</strong>