Bitcoin Forum
June 17, 2024, 12:46:56 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: « 1 ... 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 [138] 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 »
  Print  
Author Topic: FaucetBOX.com Discussion  (Read 236941 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
dpapaemc
Sr. Member
****
Offline Offline

Activity: 255
Merit: 260


View Profile
September 02, 2016, 06:41:14 PM
 #2741


  Have you reached the minimum payout? If so, it can take up to 48hrs. If it is still a problem then it is best to open a support ticket.

examplens
Legendary
*
Online Online

Activity: 3318
Merit: 3266


Crypto Swap Exchange


View Profile WWW
September 02, 2016, 06:51:59 PM
 #2742

Now i try to create one faucet. I remember that was the problem with timer and reverse proxy with cloudflare.
whether the problem is solved in r64 script, or if not, where i can find instruction how to solve
thanks

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Swagtoshi
Full Member
***
Offline Offline

Activity: 261
Merit: 102


View Profile
September 02, 2016, 08:42:29 PM
 #2743

Where is the file that has the variable $data["paid"] because when I try changing it in the index.php file, it doesn't show up in the website (using inspector). I've tried clearing cookies and cache already.

Thanks in advance.
Kazuldur (OP)
Legendary
*
Offline Offline

Activity: 971
Merit: 1000


View Profile
September 02, 2016, 10:12:31 PM
 #2744

Now i try to create one faucet. I remember that was the problem with timer and reverse proxy with cloudflare.
whether the problem is solved in r64 script, or if not, where i can find instruction how to solve
thanks

This was solved long time ago, but it requires proper configuration. Read the advanced tab in faucet's admin panel.

Where is the file that has the variable $data["paid"] because when I try changing it in the index.php file, it doesn't show up in the website (using inspector). I've tried clearing cookies and cache already.

Thanks in advance.

libs/faucetbox.php I think.

Unless stated otherwise, all opinions are of my own, not FaucetBOX.com's.
minifrij
Legendary
*
Offline Offline

Activity: 2324
Merit: 1267


In Memory of Zepher


View Profile WWW
September 02, 2016, 10:43:40 PM
 #2745

Where is the file that has the variable $data["paid"] because when I try changing it in the index.php file, it doesn't show up in the website (using inspector). I've tried clearing cookies and cache already.
Thanks in advance.
libs/faucetbox.php I think.
It depends.
If the variable $refbalance is greater than 0, $data['paid'] is initialized on index.php at line 384.
Otherwise, if the faucet is paying out in Bitcoin then it uses the 'html' data from libs/faucetbox.php at line 115. If your faucet is another currency, then it uses the 'html_coin' data from line 116.
AGBQJX
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
September 03, 2016, 12:41:41 AM
 #2746

  Go to address checker page, enter the coin address you are using, and adjust the payout threshold to the desired amount above the minimum payout. From there you can also lock it so that nobody can change your threshold except you for that address.


withdrawn automatically sent today ! no problem !thanks!
Swagtoshi
Full Member
***
Offline Offline

Activity: 261
Merit: 102


View Profile
September 05, 2016, 02:29:28 PM
 #2747

Where is the file that has the variable $data["paid"] because when I try changing it in the index.php file, it doesn't show up in the website (using inspector). I've tried clearing cookies and cache already.
Thanks in advance.
libs/faucetbox.php I think.
It depends.
If the variable $refbalance is greater than 0, $data['paid'] is initialized on index.php at line 384.
Otherwise, if the faucet is paying out in Bitcoin then it uses the 'html' data from libs/faucetbox.php at line 115. If your faucet is another currency, then it uses the 'html_coin' data from line 116.
Thanks for the info.


Is there way just to find the number for the amount you get paid. I think its $amount or $reward, but I'm not sure where it would be exactly.
sabotag3x
Legendary
*
Offline Offline

Activity: 2548
Merit: 2180


Crypto Swap Exchange


View Profile
September 05, 2016, 03:27:23 PM
 #2748

Where is the file that has the variable $data["paid"] because when I try changing it in the index.php file, it doesn't show up in the website (using inspector). I've tried clearing cookies and cache already.
Thanks in advance.
libs/faucetbox.php I think.
It depends.
If the variable $refbalance is greater than 0, $data['paid'] is initialized on index.php at line 384.
Otherwise, if the faucet is paying out in Bitcoin then it uses the 'html' data from libs/faucetbox.php at line 115. If your faucet is another currency, then it uses the 'html_coin' data from line 116.
Thanks for the info.


Is there way just to find the number for the amount you get paid. I think its $amount or $reward, but I'm not sure where it would be exactly.

are you trying to make a scam faucet? lol
hope not
here's the code
Code:
[url]'html' => '<div class="alert alert-success">' . htmlspecialchars($amount) . ' satoshi was sent to <a target="_blank" href="https://faucetbox.com/check/' . rawurlencode($to) . '">your FaucetBOX.com address</a>.</div>',[/url]

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
tungaqhd
Hero Member
*****
Offline Offline

Activity: 1540
Merit: 508


View Profile
September 05, 2016, 03:37:52 PM
 #2749

Is there any guide how to add faucetbox as payout method?  Huh
dpapaemc
Sr. Member
****
Offline Offline

Activity: 255
Merit: 260


View Profile
September 05, 2016, 03:43:27 PM
 #2750

Is there any guide how to add faucetbox as payout method?  Huh

   What do you mean add as payout method? Add to what?
Kazuldur (OP)
Legendary
*
Offline Offline

Activity: 971
Merit: 1000


View Profile
September 05, 2016, 03:53:03 PM
 #2751

Is there any guide how to add faucetbox as payout method?  Huh

Maybe this is what you're looking for: https://faucetbox.com/en/api

Unless stated otherwise, all opinions are of my own, not FaucetBOX.com's.
Swagtoshi
Full Member
***
Offline Offline

Activity: 261
Merit: 102


View Profile
September 05, 2016, 06:33:35 PM
 #2752

Where is the file that has the variable $data["paid"] because when I try changing it in the index.php file, it doesn't show up in the website (using inspector). I've tried clearing cookies and cache already.
Thanks in advance.
libs/faucetbox.php I think.
It depends.
If the variable $refbalance is greater than 0, $data['paid'] is initialized on index.php at line 384.
Otherwise, if the faucet is paying out in Bitcoin then it uses the 'html' data from libs/faucetbox.php at line 115. If your faucet is another currency, then it uses the 'html_coin' data from line 116.
Thanks for the info.


Is there way just to find the number for the amount you get paid. I think its $amount or $reward, but I'm not sure where it would be exactly.

are you trying to make a scam faucet? lol
hope not
here's the code
Code:
[url]'html' => '<div class="alert alert-success">' . htmlspecialchars($amount) . ' satoshi was sent to <a target="_blank" href="https://faucetbox.com/check/' . rawurlencode($to) . '">your FaucetBOX.com address</a>.</div>',[/url]

LOL  Grin Not trying to make a scam faucet, but I am trying to add a lottery card with the reward appearing after the card is scratched. Anyways, thanks for the help.
dpapaemc
Sr. Member
****
Offline Offline

Activity: 255
Merit: 260


View Profile
September 05, 2016, 06:41:09 PM
 #2753


  That is an awesome idea. Like to see how that works out.

badbitboy
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
September 06, 2016, 06:08:57 AM
 #2754

Hello, i am not good at php
How to make this work after i change amount= satoshi want to send and to= address, input api key and currency
Code:
 <?php

class FaucetBOX
{
    protected 
$api_key;
    protected 
$currency;
    public 
$last_status null;
    protected 
$api_base "https://faucetbox.com/api/v1/";

    public function 
__construct($api_key$currency "BTC"$disable_curl false$verify_peer true) {
        
$this->api_key $api_key;
        
$this->currency $currency;
        
$this->disable_curl $disable_curl;
        
$this->verify_peer $verify_peer;
        
$this->curl_warning false;
    }

    public function 
__execPHP($method$params = array()) {
        
$params array_merge($params, array("api_key" => $this->api_key"currency" => $this->currency));
        
$opts = array(
            
"http" => array(
                
"method" => "POST",
                
"header" => "Content-type: application/x-www-form-urlencoded\r\n",
                
"content" => http_build_query($params)
            ),
            
"ssl" => array(
                
"verify_peer" => $this->verify_peer
            
)
        );
        
$ctx stream_context_create($opts);
        
$fp fopen($this->api_base $method'rb'null$ctx);
        
$response stream_get_contents($fp);
        if(
$response && !$this->disable_curl) {
            
$this->curl_warning true;
        }
        
fclose($fp);
        return 
$response;
    }

    public function 
__exec($method$params = array()) {
        
$this->last_status null;
        if(
$this->disable_curl) {
            
$response $this->__execPHP($method$params);
        } else {
            
$response $this->__execCURL($method$params);
        }
        
$response json_decode($responsetrue);
        if(
$response) {
            
$this->last_status $response['status'];
        } else {
            
$this->last_status null;
        }
        return 
$response;
    }

    public function 
__execCURL($method$params = array()) {
        
$params array_merge($params, array("api_key" => $this->api_key"currency" => $this->currency));

        
$ch curl_init($this->api_base $method);
        
curl_setopt($chCURLOPT_POSTtrue);
        
curl_setopt($chCURLOPT_POSTFIELDS$params);
        
curl_setopt($chCURLOPT_SSL_VERIFYPEER$this->verify_peer);
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);

        
$response curl_exec($ch);
        if(!
$response) {
            
$response $this->__execPHP($method$params);
        }
        
curl_close($ch);

        return 
$response;
    }

    public function 
send($to$amount$referral "false") {
        
$r $this->__exec("send", array("to" => $to"amount" => $amount"referral" => $referral));
        if (
array_key_exists("status"$r) && $r["status"] == 200) {
            return array(
                
'success' => true,
                
'message' => 'Payment sent to your address using FaucetBOX.com',
                
'html' => '<div class="alert alert-success">' htmlspecialchars($amount) . ' satoshi was sent to <a target="_blank" href="https://faucetbox.com/check/' rawurlencode($to) . '">your FaucetBOX.com address</a>.</div>',
                
'html_coin' => '<div class="alert alert-success">' htmlspecialchars(rtrim(rtrim(sprintf("%.8f"$amount/100000000), '0'), '.')) . ' '.$this->currency.' was sent to <a target="_blank" href="https://faucetbox.com/check/' rawurlencode($to) . '">your FaucetBOX.com address</a>.</div>',
                
'balance' => $r["balance"],
                
'balance_bitcoin' => $r["balance_bitcoin"],
                
'response' => json_encode($r)
            );
        }

        if (
array_key_exists("message"$r)) {
            return array(
                
'success' => false,
                
'message' => $r["message"],
                
'html' => '<div class="alert alert-danger">' htmlspecialchars($r["message"]) . '</div>',
                
'response' => json_encode($r)
            );
        }

        return array(
            
'success' => false,
            
'message' => 'Unknown error.',
            
'html' => '<div class="alert alert-danger">Unknown error.</div>',
            
'response' => json_encode($r)
        );
    }

    public function 
sendReferralEarnings($to$amount) {
        return 
$this->send($to$amount"true");
    }

    public function 
getPayouts($count) {
        
$r $this->__exec("payouts", array("count" => $count) );
        return 
$r;
    }

    public function 
getCurrencies() {
        
$r $this->__exec("currencies");
        return 
$r['currencies'];
    }

    public function 
getBalance() {
        
$r $this->__exec("balance");
        return 
$r;
    }
}
  
tungaqhd
Hero Member
*****
Offline Offline

Activity: 1540
Merit: 508


View Profile
September 06, 2016, 06:13:01 AM
 #2755

Is there any guide how to add faucetbox as payout method?  Huh

   What do you mean add as payout method? Add to what?

Hi, i have a small ptp site, it count 1 view =2 satoshi and paid via paypal, i font like it and want to use faucetbox instead
Salmen
Legendary
*
Offline Offline

Activity: 1059
Merit: 1020


View Profile WWW
September 06, 2016, 12:37:45 PM
 #2756

Is there any guide how to add faucetbox as payout method?  Huh

   What do you mean add as payout method? Add to what?

Hi, i have a small ptp site, it count 1 view =2 satoshi and paid via paypal, i font like it and want to use faucetbox instead
You can download and receive infos regarding the original Faucetbox PHP Library from the site.

1. Download the 'Standard Script' from the site. (Link: https://faucetbox.com/en/php-library#Downloads)
2. Include the 'faucetbox.php' in your script.
3. To pay a user to the FaucetBox account, use the following code:

Code:
<?php

$api_key 
"YOUR_API_KEY";
$currency "BTC"# or LTC or any other supported by FaucetBOX
$faucetbox = new FaucetBOX($api_key$currency);

# To send 500 satoshi to address
$result $faucetbox->send("1asdbitcoinaddressheredsa"500);

if(
$result["success"] === true) {   # you can check if it was successful
    
echo $result["html"];           # there's example html ready for you
} else {                            # something went wrong :(
    
log_error($result["response"]); # you can log whole response from server
    
echo $result["html"];           # and display error message to user
}

?>

For more information, visit the site Faucetbox.com.

Young Developer amidst Europe. Specialized in Web Programming and Creating Telegram Bots. Looking for a developer? Feel free to drop a mail to me.
Running JaguarBitcoin - Your Place For Scripts
tungaqhd
Hero Member
*****
Offline Offline

Activity: 1540
Merit: 508


View Profile
September 06, 2016, 01:43:43 PM
 #2757

Is there any guide how to add faucetbox as payout method?  Huh

   What do you mean add as payout method? Add to what?

Hi, i have a small ptp site, it count 1 view =2 satoshi and paid via paypal, i font like it and want to use faucetbox instead
You can download and receive infos regarding the original Faucetbox PHP Library from the site.

1. Download the 'Standard Script' from the site. (Link: https://faucetbox.com/en/php-library#Downloads)
2. Include the 'faucetbox.php' in your script.
3. To pay a user to the FaucetBox account, use the following code:

Code:
<?php

$api_key 
"YOUR_API_KEY";
$currency "BTC"# or LTC or any other supported by FaucetBOX
$faucetbox = new FaucetBOX($api_key$currency);

# To send 500 satoshi to address
$result $faucetbox->send("1asdbitcoinaddressheredsa"500);

if(
$result["success"] === true) {   # you can check if it was successful
    
echo $result["html"];           # there's example html ready for you
} else {                            # something went wrong :(
    
log_error($result["response"]); # you can log whole response from server
    
echo $result["html"];           # and display error message to user
}

?>

For more information, visit the site Faucetbox.com.
Uploaded faucetbox.php to host, then i creat a php file ,
Code:
<?php
$api_key 
"Dp*************uc";
$currency "BTC"# or LTC or any other supported by FaucetBOX
$faucetbox = new FaucetBOX($api_key$currency);

# To send 500 satoshi to address
$result $faucetbox->send("1Le*********3FUf"500);

if(
$result["success"] === true) {   # you can check if it was successful
    
echo $result["html"];           # there's example html ready for you
} else {                            # something went wrong :(
    
log_error($result["response"]); # you can log whole response from server
    
echo $result["html"];           # and display error message to user
}
?>
 
and named in.php , when i load mysite.com/in.php it show
Code:
 
Fatal error: Class 'FaucetBOX' not found in /home/u650662239/public_html/in.php on line 4
Sorry because my php isd bad
tungaqhd
Hero Member
*****
Offline Offline

Activity: 1540
Merit: 508


View Profile
September 06, 2016, 02:49:27 PM
 #2758

The problem is i miss this
Code:
 require 'faucetbox.php'; 
Superhitech
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile
September 07, 2016, 04:25:52 AM
 #2759

I seem to be missing some things in my phpmyadmin; for example, in my Faucetinabox_Settings file, there is no asn_ban_list, which other users seem to have.

Is this normal? If not, how can I get it fixed?
catcatcatcaty
Full Member
***
Offline Offline

Activity: 152
Merit: 100


View Profile
September 07, 2016, 07:38:08 AM
 #2760

I seem to be missing some things in my phpmyadmin; for example, in my Faucetinabox_Settings file, there is no asn_ban_list, which other users seem to have.

Is this normal? If not, how can I get it fixed?

update to the latest version of the faucetbox script.
Pages: « 1 ... 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 [138] 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!