A GR8 Faucet is being made, come back soon!', 'warning'); goto faucet; } ## Check Faucet Disabled if($settings['status'] == 'N'){ $error = alert(' Sorry our faucet is not active, please come back later.', 'danger'); goto faucet; } ## Check JS Enabled if($_GET['e'] == 'nojs'){ exit('

Sorry '.$settings['name'].' requires Javascript
Please enabled it and try again.

'); } ## Check Proxy if( isProxy() ){ $error = alert(' Access Denied: '.getIP(). ' blocked by Proxy Detection','danger'); goto faucet; } ## Check if User is logged in if(!$error && !$_SESSION[$faucetID]['user'] && !$_POST){ $_SESSION[$faucetID]['status'] = 'login'; goto faucet; } ## User Login if(!$error && $_POST['address']){ // Verify Session if(!checkToken()){ $error = alert(' Session invalid, try again','danger'); goto faucet; } // Check AntiBot if(!checkAntibot()){ $error = alert(' Antibotlinks were not in correct order, try again','danger'); goto faucet; } // Check Captcha if(!checkCaptcha()){ $error = alert(' Captcha was invaild, try again','danger'); goto faucet; } // Check UserAddress if(!checkAddress($message)){ $error = alert(' '.$message,'danger'); goto faucet; } // Change Claim Status if(!$error){ $_SESSION[$faucetID]['status'] = ($settings['shortlinks'] && $settings['shortlinks'] != 'null')? 'shortlink' : 'payout-ready'; redirect(getCurrentURL()); } } ## CHECK/SET SHORT LINK if(!$error && ($_SESSION[$faucetID]['status'] == 'shortlink')){ // Check IP Changed if(!IPchange($message)){ $error = alert(' '.$message,'danger'); goto faucet; } // Check Shortlink Verification if(!checkShortlink()){ $error = alert(' Sponsored link verification failed, please try again.','danger'); goto faucet; } ## Get Shortlink elseif($_GET['hash'] && $_SESSION[$faucetID]['hash'] == $_GET['hash']){ if(!getShortlink()){ $error = alert(' Failed to get a Sponsor\'s link, please try again.','danger'); goto faucet; } } } ## PAY USER if(!$error && ($_SESSION[$faucetID]['status'] == 'payout-ready')){ // Send Payout if(!sendPayout($message)){ #$_SESSION[$faucetID]['status'] = 'login'; $error = alert(' '.$message,'danger'); goto faucet; } } ## USER PAID if(!$error && ($_SESSION[$faucetID]['status'] == 'paid')){ // If paid if($_SESSION[$faucetID]['$message']){ $error = alert($_SESSION[$faucetID]['$message'],'success'); unset($_SESSION[$faucetID]['$message']); goto faucet; } // Check Last Claim elseif(!checkLastClaim($mins)){ $error = alert(' You have to wait '.(($mins > '1')? $mins.' minutes' : $mins.' minute'),'danger'); $_SESSION[$faucetID]['status'] = 'paid'; goto faucet; } // Reset Claim Process else{ $_SESSION[$faucetID]['status'] = 'login'; redirect(getCurrentURL()); } } ## Start Faucet template faucet: ## REQUIRE SITE TEMPLATE $template = ($_GET['template']) ?: 'default'; $file = ($page)? 'page.php' : 'index.php'; if(file_exists('templates/'.$template.'/'.$file)){ include 'templates/'.$template.'/'.$file; } else { die('Missing "'.$template.'" Faucet Template'); } #if(getIP() == '64.178.177.106') { print_pre($settings); } $db->close();