Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ip = $_SERVER['REMOTE_ADDR'];
- $user_password = 'PW';
- $sent_pw = $_REQUEST['pwd'];
- $credited = intval($_REQUEST['c']);
- $credituser = trim($_REQUEST['usr']);
- $rate = trim($_REQUEST['r']);
- $type = intval($_REQUEST['t']);
- $transaction = trim($_REQUEST['none']);
- $allowed_ip = array('199.193.247.113');
- require_once('libs/faucetbox.php');
- $ref = $_COOKIE['ref'];
- $ref_rate = $rate/10;
- $api_key = "API";
- $currency = "BTC";
- $faucetbox = new FaucetBOX($api_key, $currency);
- if(in_array($ip, $allowed_ip) && $sent_pw == $user_password)
- {
- if($credited == '1')
- {
- if($type == '1')
- {
- exit('ok');
- }elseif($type == '2'){
- $result = $faucetbox->send($ref, $rate_rate);
- $result["html"];
- if($result["success"] === true) {
- echo $result["html"];
- } else {
- echo $result["html"];
- }
- exit('ok');
- }
- }elseif($credited == '2')
- {
- if($type == '1')
- {
- /* This is a DEBIT Transaction, and is DEBITING cash*/
- /* RUN YOUR QUERY HERE */
- /* IF SUCCESS, MUST RETURN OK
- exit('ok');
- */
- }elseif($type == '2'){
- /* This is a DEBIT Transaction, and is DEBITING cash*/
- /* RUN YOUR QUERY HERE */
- /* IF SUCCESS, MUST RETURN OK
- exit('ok');
- */
- }
- }
- }
- else{
- die();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement