btc4
|
|
November 17, 2015, 09:31:28 AM |
|
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.
|
|
|
|
Kazuldur (OP)
Legendary
Offline
Activity: 971
Merit: 1000
|
|
November 17, 2015, 09:51:57 AM |
|
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? 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
|
|
November 17, 2015, 10:46:05 AM |
|
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? 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
|
|
November 17, 2015, 01:27:22 PM |
|
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: {"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
|
|
November 17, 2015, 01:41:12 PM |
|
Where does this configuration?
|
|
|
|
|
Kazuldur (OP)
Legendary
Offline
Activity: 971
Merit: 1000
|
|
November 18, 2015, 11:27:04 AM |
|
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. 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: 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: 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
|
|
November 18, 2015, 05:01:01 PM |
|
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: 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: 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) }
|
|
|
|
Kazuldur (OP)
Legendary
Offline
Activity: 971
Merit: 1000
|
|
November 18, 2015, 05:30:49 PM |
|
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
|
|
November 18, 2015, 06:14:57 PM |
|
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
Activity: 971
Merit: 1000
|
|
November 18, 2015, 09:37:22 PM |
|
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
|
|
November 18, 2015, 10:43:38 PM |
|
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: {"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 This site has a maximum of x satoshi every half an hour.
|
|
|
|
Kazuldur (OP)
Legendary
Offline
Activity: 971
Merit: 1000
|
|
November 18, 2015, 11:00:11 PM |
|
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: {"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 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
|
|
November 18, 2015, 11:20:22 PM |
|
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: {"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 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 } else { if($data['unit'] == 'satoshi') $data['paid'] = $ret['html']; else $data['paid'] = $ret['html_coin']; } } else {
|
|
|
|
btc4
|
|
November 19, 2015, 07:41:21 AM |
|
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
|
|
November 19, 2015, 09:53:28 AM |
|
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
|
|
November 19, 2015, 10:49:26 AM |
|
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
|
|
November 19, 2015, 10:49:34 AM |
|
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
Activity: 971
Merit: 1000
|
|
November 19, 2015, 12:06:06 PM |
|
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 } 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): 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): 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
Activity: 2324
Merit: 1267
In Memory of Zepher
|
|
November 19, 2015, 12:24:34 PM |
|
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.
|
|
|
|
|