Bitcoin Forum
May 05, 2024, 05:58:22 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 [60] 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 ... 156 »
  Print  
Author Topic: FaucetBOX.com Discussion  (Read 236938 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.
btc4
Full Member
***
Offline Offline

Activity: 176
Merit: 100



View Profile
November 17, 2015, 09:31:28 AM
 #1181

ever since I changed my hosting,I am not able to change admin panel,when i make changes , nothing happend!

The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714888702
Hero Member
*
Offline Offline

Posts: 1714888702

View Profile Personal Message (Offline)

Ignore
1714888702
Reply with quote  #2

1714888702
Report to moderator
1714888702
Hero Member
*
Offline Offline

Posts: 1714888702

View Profile Personal Message (Offline)

Ignore
1714888702
Reply with quote  #2

1714888702
Report to moderator
1714888702
Hero Member
*
Offline Offline

Posts: 1714888702

View Profile Personal Message (Offline)

Ignore
1714888702
Reply with quote  #2

1714888702
Report to moderator
Kazuldur (OP)
Legendary
*
Offline Offline

Activity: 971
Merit: 1000


View Profile
November 17, 2015, 09:51:57 AM
 #1182

ever since I changed my hosting,I am not able to change admin panel,when i make changes , nothing happend!

Well... if it worked before then it sounds like there's something wrong with the new hosting, don't you think? Smiley
Try setting $display_errors = true; in your config.php file and check if there are any errors shown when changing things in admin panel.

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

Activity: 176
Merit: 100



View Profile
November 17, 2015, 10:46:05 AM
 #1183

ever since I changed my hosting,I am not able to change admin panel,when i make changes , nothing happend!

Well... if it worked before then it sounds like there's something wrong with the new hosting, don't you think? Smiley
Try setting $display_errors = true; in your config.php file and check if there are any errors shown when changing things in admin panel.
yes thats right,now i got this error:
PHP Notice:  Array to string conversion in /home/greenbit/public_html/index.php on line 1566

FaucetWorld
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
November 17, 2015, 01:27:22 PM
 #1184

Sorry, but in my settings I found new:
Send limits
Limits of how much this faucet can payout in a 30 minute window.

What is it? What a "30 minute window"?

How much your faucet can send in 30 minutes. For example if you set it to 0.001 BTC, that's how much the faucet will be able to spend between 12:00 and 12:30. The amount that faucet has spent resets every 30 minutes. If your faucet tries to spend more than that, API will return:

Code:
{"status": 450, "message": "This faucet exceeded it's safety limits!"}

We also plan adding email notifications to that and optional "paranoid mode" that will reset the API kay if the limit is hit.

It's meant to be a protection from hackers stealing all coins if they get the API key in their hands and mass attacks of bots.

I really like this idea! Thanks for the introduction of new tools to fight with bots.

One more idea:
If captcha will be in a pop-up window would not be helpful?
misterbit
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250



View Profile
November 17, 2015, 01:41:12 PM
 #1185

Where does this configuration?
alex2014
Full Member
***
Offline Offline

Activity: 235
Merit: 250


View Profile
November 17, 2015, 04:34:06 PM
 #1186


Try setting $display_errors = true; in your config.php file and check if there are any errors shown when changing things in admin panel.



what to do with this error   $display_errors = true

Notice: Post request, but session is invalid. in  /www/domen.in/index.php on line 2061

what do with it Angry Angry Angry Sad Sad... help to solve .. Sad Sad Sad



Kazuldur (OP)
Legendary
*
Offline Offline

Activity: 971
Merit: 1000


View Profile
November 18, 2015, 11:27:04 AM
 #1187

yes thats right,now i got this error:
PHP Notice:  Array to string conversion in /home/greenbit/public_html/index.php on line 1566

Which version do you use? Did you modify index.php anyway? This error doesn't make sense on this line...
If you modified the script please tell me what's on line 1566 in your index.php file.

One more idea:
If captcha will be in a pop-up window would not be helpful?

Against bots? No, it wouldn't change anything. That's the same as anti-bot links.

Where does this configuration?


On the manage page of your faucet in your FaucetBOX.com Dashboard.


Try setting $display_errors = true; in your config.php file and check if there are any errors shown when changing things in admin panel.

what to do with this error   $display_errors = true

Notice: Post request, but session is invalid. in  /www/domen.in/index.php on line 2061

what do with it Angry Angry Angry Sad Sad... help to solve .. Sad Sad Sad

If that's the only error then I must say I'm puzzled and I don't know what may be causing that except for really bad hosting. Maybe it's some obscure bug in the script. Try adding:

Code:
echo "<pre>";
var_dump($_POST);
var_dump($_SESSION);
echo "</pre>";
die();

between lines 2060 and 2061. You want it to look like this after change:

Code:
             if($display_errors && $_SERVER['REQUEST_METHOD'] == "POST") {
                 if(array_key_exists('address_input_name', $_SESSION)) {
echo "<pre>";
var_dump($_POST);
var_dump($_SESSION);
echo "</pre>";
die();
                     trigger_error("Post request, but session is invalid.");
                 } else {
                     trigger_error("Post request, but invalid address input name.");
                 }
             }

That will break payouts completely, so just add it, test it yourself, copy what's shown and revert the change. Then tell us what did you see.

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

Activity: 235
Merit: 250


View Profile
November 18, 2015, 05:01:01 PM
 #1188



If that's the only error then I must say I'm puzzled and I don't know what may be causing that except for really bad hosting. Maybe it's some obscure bug in the script. Try adding:

Code:
echo "<pre>";
var_dump($_POST);
var_dump($_SESSION);
echo "</pre>";
die();

between lines 2060 and 2061. You want it to look like this after change:

Code:
             if($display_errors && $_SERVER['REQUEST_METHOD'] == "POST") {
                 if(array_key_exists('address_input_name', $_SESSION)) {
echo "<pre>";
var_dump($_POST);
var_dump($_SESSION);
echo "</pre>";
die();
                     trigger_error("Post request, but session is invalid.");
                 } else {
                     trigger_error("Post request, but invalid address input name.");
                 }
             }

That will break payouts completely, so just add it, test it yourself, copy what's shown and revert the change. Then tell us what did you see.


I wrote the code


echo "<pre>";
var_dump($_POST);
var_dump($_SESSION);
echo "</pre>";
die();

$display_errors = true
result

array(3) {
  ["address"]=>
  string(0) ""
  ["IfPUHNULtVxj5Mqo7nvvxy67YcJ7Ho60SwO"]=>
  string(34) "D58WzPrBpewR8byeETEVkewpZBRwdogtxi"
  ["g-recaptcha-response"]=>
  string(910) "03AHJ_Vuv15FMSsjsjNavYNSOLm9zfyJsPrCzfmGiuMWxy9hshbwQzH1yuSo8pMs04ujvFlWogAtKdI 6K4t-60ZivnsKg_SLdCwh31m4JFCZpi_GQyEdQApDI5ve65QGUgMUx0XVmmvyRWSdSFjFrG5m-5HOLjlmfmRJhz4EJl-UlUVHpVm6gPKg23wwlQvZ5tG3DG8eWeo5XIvFQroRvm6qT_Sdjj7sg3JcKcQN049-RB4pgM89PP_lCjpS8y8JkqD-tQ-YPprZ8J9E-1piowJX_YZKuX4mPUpFp-BIabmLKxc4w9_bh4JGWEKwRkLKrFk--ai-o0N_ln0jZiSvm-fss2bqehRhp7h5o7PazjCQ5ynwVahMyDKec44bXP52RDTq9k9orwl19xXVWuftrIMTrTwQe18g0Rd5yD1liTJlI6wzLKs-rNB7K3d0RfFm9CI2lgY8Cr5c8IKQdQ2qBCHdWHNtnWoETri4UQ_RRWk7GGu44P1-y2p5JirzVXrerLLs7oxjpwJzK2RQduZPsjpGZ2RoflLxWnBK251Daf_6UaKTpT8yWAGBHrKW5qHI6iVsrc_akyjJc3IUV0Mu9FHlyJgZcepQpwp-Nq-7vd8TITyHUyEd2LLRGArQykfLSUgzA4N2lDa-UE1dYPFk8oa8ot9C2atD3TEnFYFrnEZ30XF_pgQ4SAMgqwDGyrYQWWzVtEypmbyqW5Ms6daHP2Ne_P7ELYRT3dzXvdEtfcbjO-nGoGDm3qCnPe0R6Nn5e1AV2cnobM8VgafP_45B9Zitmh0DkuDLTuzP7ianhgD5EdUIBW8-PGuZbU0tUBrCSln_C-AQa_24BGweG_ckBHd1BYC52lYrhl9Ye0FSl6xgdEqDXiz3pbm4msfIk197Un02fFjmXrmNNB"
}
array(3) {
  ["2750454417-logged_in"]=>
  bool(true)
  ["address_input_name"]=>
  string(28) "EkDgeSOAqzRclKv4VZr5NVpjHamI"
  ["mouse_movement_detected"]=>
  bool(true)
}


 Angry Angry 
Kazuldur (OP)
Legendary
*
Offline Offline

Activity: 971
Merit: 1000


View Profile
November 18, 2015, 05:30:49 PM
 #1189

Hmm... it's possible that a second request after loading the faucet (done for example by AJAX) could be causing this. Can you tell me what's the URL of your faucet? I'll check that.

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

Activity: 235
Merit: 250


View Profile
November 18, 2015, 06:14:57 PM
 #1190

Hmm... it's possible that a second request after loading the faucet (done for example by AJAX) could be causing this. Can you tell me what's the URL of your faucet? I'll check that.


roll back to the 50 version, all worked fine  freecoin.in.ua
Kazuldur (OP)
Legendary
*
Offline Offline

Activity: 971
Merit: 1000


View Profile
November 18, 2015, 09:37:22 PM
 #1191

Hmm... it's possible that a second request after loading the faucet (done for example by AJAX) could be causing this. Can you tell me what's the URL of your faucet? I'll check that.


roll back to the 50 version, all worked fine  freecoin.in.ua

Bad idea. The problem here is an CSRF protection introduced in r52 (or r51, I'm not sure) that also makes it harder for simple bots to raid the faucet. You should really try to find out why it doesn't work for you. At freecoin.in.ua the problem is a feedjit.com that for some dumb reason makes a test connection to the site in backgroud, which generates a new token that isn't updated in the form. Removing feedjit.com should be enough to fix this issue.

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

Activity: 350
Merit: 250



View Profile
November 18, 2015, 10:43:38 PM
 #1192

Sorry, but in my settings I found new:
Send limits
Limits of how much this faucet can payout in a 30 minute window.

What is it? What a "30 minute window"?

How much your faucet can send in 30 minutes. For example if you set it to 0.001 BTC, that's how much the faucet will be able to spend between 12:00 and 12:30. The amount that faucet has spent resets every 30 minutes. If your faucet tries to spend more than that, API will return:

Code:
{"status": 450, "message": "This faucet exceeded it's safety limits!"}

We also plan adding email notifications to that and optional "paranoid mode" that will reset the API kay if the limit is hit.

It's meant to be a protection from hackers stealing all coins if they get the API key in their hands and mass attacks of bots.
It seems great to me! Is there any way to change that message?
For example
Code:
This site has a maximum of x satoshi every half an hour.
Kazuldur (OP)
Legendary
*
Offline Offline

Activity: 971
Merit: 1000


View Profile
November 18, 2015, 11:00:11 PM
 #1193

Sorry, but in my settings I found new:
Send limits
Limits of how much this faucet can payout in a 30 minute window.

What is it? What a "30 minute window"?

How much your faucet can send in 30 minutes. For example if you set it to 0.001 BTC, that's how much the faucet will be able to spend between 12:00 and 12:30. The amount that faucet has spent resets every 30 minutes. If your faucet tries to spend more than that, API will return:

Code:
{"status": 450, "message": "This faucet exceeded it's safety limits!"}

We also plan adding email notifications to that and optional "paranoid mode" that will reset the API kay if the limit is hit.

It's meant to be a protection from hackers stealing all coins if they get the API key in their hands and mass attacks of bots.
It seems great to me! Is there any way to change that message?
For example
Code:
This site has a maximum of x satoshi every half an hour.

Currently you have to do that in the code of your faucet. Checking the error code and changing $ret['html'] around line 2355 in index.php should work.
However I think that customizing error messages is quite a nice idea, we'll think about implementing this in next version.

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

Activity: 350
Merit: 250



View Profile
November 18, 2015, 11:20:22 PM
 #1194

Sorry, but in my settings I found new:
Send limits
Limits of how much this faucet can payout in a 30 minute window.

What is it? What a "30 minute window"?

How much your faucet can send in 30 minutes. For example if you set it to 0.001 BTC, that's how much the faucet will be able to spend between 12:00 and 12:30. The amount that faucet has spent resets every 30 minutes. If your faucet tries to spend more than that, API will return:

Code:
{"status": 450, "message": "This faucet exceeded it's safety limits!"}

We also plan adding email notifications to that and optional "paranoid mode" that will reset the API kay if the limit is hit.

It's meant to be a protection from hackers stealing all coins if they get the API key in their hands and mass attacks of bots.
It seems great to me! Is there any way to change that message?
For example
Code:
This site has a maximum of x satoshi every half an hour.

Currently you have to do that in the code of your faucet. Checking the error code and changing $ret['html'] around line 2355 in index.php should work.
However I think that customizing error messages is quite a nice idea, we'll think about implementing this in next version.
I found it, but what change?
Thank you
Code:
} else {
                        if($data['unit'] == 'satoshi')
                            $data['paid'] = $ret['html'];
                        else
                            $data['paid'] = $ret['html_coin'];
                    }
                } else {
btc4
Full Member
***
Offline Offline

Activity: 176
Merit: 100



View Profile
November 19, 2015, 07:41:21 AM
 #1195

yes thats right,now i got this error:
PHP Notice:  Array to string conversion in /home/greenbit/public_html/index.php on line 1566
[quote
Which version do you use? Did you modify index.php anyway? This error doesn't make sense on this line...
If you modified the script please tell me what's on line 1566 in your index.php file.

no,im using r56 version.

nawaraj
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
November 19, 2015, 09:53:28 AM
 #1196

Hi Kazuldur, can you add some feature on faucet or on faucetbox account, which will show us , for how many user this current balance is enough.
alex2014
Full Member
***
Offline Offline

Activity: 235
Merit: 250


View Profile
November 19, 2015, 10:49:26 AM
 #1197


Bad idea. The problem here is an CSRF protection introduced in r52 (or r51, I'm not sure) that also makes it harder for simple bots to raid the faucet. You should really try to find out why it doesn't work for you. At freecoin.in.ua the problem is a feedjit.com that for some dumb reason makes a test connection to the site in backgroud, which generates a new token that isn't updated in the form. Removing feedjit.com should be enough to fix this issue.


ok .. trys .. thanks for the advice .... write result
dart vader
Full Member
***
Offline Offline

Activity: 182
Merit: 100



View Profile
November 19, 2015, 10:49:34 AM
 #1198

I'd like a new stats feature which allow us to see what  countries make more claims, like a list of countries sorted by number of claims made.
Kazuldur (OP)
Legendary
*
Offline Offline

Activity: 971
Merit: 1000


View Profile
November 19, 2015, 12:06:06 PM
 #1199

I'd like a new stats feature which allow us to see what  countries make more claims, like a list of countries sorted by number of claims made.

You should use Google Analytics or something similar for that.

Hi Kazuldur, can you add some feature on faucet or on faucetbox account, which will show us , for how many user this current balance is enough.

It depends on too many factors, it can't be easily calculated. Specifically it depends on how you advertise your faucet and what kind of users visit it, which is something that FaucetBOX.com can't know.

yes thats right,now i got this error:
PHP Notice:  Array to string conversion in /home/greenbit/public_html/index.php on line 1566
[quote
Which version do you use? Did you modify index.php anyway? This error doesn't make sense on this line...
If you modified the script please tell me what's on line 1566 in your index.php file.

no,im using r56 version.

It still doesn't make sense, line 1566 in r56 only has a bracket in it. Can you send me lines 1560-1570 from your index.php?

Currently you have to do that in the code of your faucet. Checking the error code and changing $ret['html'] around line 2355 in index.php should work.
However I think that customizing error messages is quite a nice idea, we'll think about implementing this in next version.
I found it, but what change?
Thank you
Code:
} else {
                        if($data['unit'] == 'satoshi')
                            $data['paid'] = $ret['html'];
                        else
                            $data['paid'] = $ret['html_coin'];
                    }
                } else {

That's not it. This snippet handles successful payout, you want to catch error. You want to find this part (line numbers from r62 added):
Code:
 2352                     }       
 2353                 } else {
 2354                     $data['error'] = $ret['html'];
 2355                 }
 2356                 if($ret['success'] || $fb->communication_error) {
and change it to something like this (not tested):
Code:
 2352                     }
 2353                 } else {
 2354                     if($ret['message'] == "This faucet exceeded it's safety limits!") {
 2355                         $ret["html"] = "<div class=\"alert alert-danger\">YOUR CUSTOM MESSAGE HERE</div>"
 2356                     }   
 2357                     $data['error'] = $ret['html'];
 2358                 }   
 2359                 if($ret['success'] || $fb->communication_error) {

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
November 19, 2015, 12:24:34 PM
 #1200

It depends on too many factors, it can't be easily calculated. Specifically it depends on how you advertise your faucet and what kind of users visit it, which is something that FaucetBOX.com can't know.
You could probably calculate the average spending per day and divide that by the balance. That would show how many days the faucet could be funded for at current rates. You could then probably divide that by the average amount sent to see how many users it could send to on average. It would be somewhat inaccurate, though I think it's similar to what narawaj wants.

I'd like a new stats feature which allow us to see what  countries make more claims, like a list of countries sorted by number of claims made.
You could probably add this in yourself with an external API and some databases. It sounds like it would be fairly simple to code in.
Pages: « 1 ... 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 [60] 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 ... 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!