Advertisement
Guest User

Untitled

a guest
Nov 12th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.85 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.  
  5. $ip = $_SERVER['REMOTE_ADDR'];
  6.  
  7. $user_password = 'huh ?';
  8. $sent_pw = $_REQUEST['pwd'];
  9. $credited = intval($_REQUEST['c']);
  10. $credituser = trim($_REQUEST['usr']);
  11. $refgo = trim($_REQUEST['ref']);
  12. $userip = trim($_REQUEST['userip']);
  13. $rate = trim($_REQUEST['r']);
  14. $type  = intval($_REQUEST['t']);
  15. $transaction  = trim($_REQUEST['none']);
  16. $allowed_ip = array('199.193.247.113');
  17. require_once('libs/faucetbox.php');
  18. $ref = $_REQUEST['ref'];
  19. $ref_rate = $rate/10;
  20. $api_key = "API";
  21. $currency = "BTC";
  22. $faucetbox = new FaucetBOX($api_key, $currency);
  23. include "dbconnect.php";
  24. $tablae = mysqli_query("SELECT * FROM referrals WHERE id=1;");
  25. $revbo=mysqli_fetch_array($tablae);
  26. $refv1 = $revbo['ref'];
  27. if(in_array($ip, $allowed_ip) && $sent_pw == $user_password)
  28. {
  29.     if($credited == '1')
  30.     {
  31.         if($type == '1')
  32.         {
  33.          
  34.         exit('ok');
  35.          
  36.        
  37.         }elseif($type == '2'){       
  38.        
  39.                                      $result = $faucetbox->send($refv1, $rate);
  40.                       $result = $faucetbox->send($credituser, $rate);
  41.                                      
  42.                                    
  43.                                        
  44.                                      
  45.                                    
  46. $result["html"];
  47.  
  48. if($result["success"] === true) {
  49.  
  50. echo $result["html"];
  51.      
  52.  
  53.  
  54. } else {                        
  55.    
  56.     echo $result["html"];          
  57.  
  58. }
  59.  
  60.         exit('ok');
  61.          
  62.         }
  63.        
  64.     }elseif($credited == '2')
  65.     {
  66.         if($type == '1')
  67.         {
  68.             /* This is a DEBIT Transaction, and is DEBITING  cash*/
  69.        
  70.         /* RUN YOUR QUERY  HERE */
  71.        
  72.         /* IF SUCCESS, MUST RETURN OK
  73.         exit('ok');
  74.         */
  75.         }elseif($type == '2'){
  76.            
  77.             /* This is a DEBIT Transaction, and is DEBITING cash*/
  78.        
  79.         /* RUN YOUR QUERY  HERE */
  80.        
  81.         /* IF SUCCESS, MUST RETURN OK
  82.         exit('ok');
  83.         */
  84.         }
  85.     }
  86. }
  87. else{
  88.     die();
  89. }
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement