Author

Topic: OpenSource PHP Faucet for bitcoin and altcoins (Read 10040 times)

legendary
Activity: 1524
Merit: 1001
NOBT - WNOBT your saving bank◕◡◕
Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'u766577606'@'10.2.1.20' (using password: NO) in /home/u766577606/public_html/faucet-master/includes/dbconnector.class.php on line 14
Unable to connect to database [Access denied for user 'u766577606'@'10.2.1.20' (using password: NO)]

How  can i fix this. Help me
Add mysql password in faucet-master/includes/dbconnector.class.php
newbie
Activity: 15
Merit: 0
Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'u766577606'@'10.2.1.20' (using password: NO) in /home/u766577606/public_html/faucet-master/includes/dbconnector.class.php on line 14
Unable to connect to database [Access denied for user 'u766577606'@'10.2.1.20' (using password: NO)]

How  can i fix this. Help me
member
Activity: 72
Merit: 10
Good job! This is what I've been looking for. Thank you very much. Smiley
hero member
Activity: 1162
Merit: 547
CryptoTalk.Org - Get Paid for every Post!
Nice design and thanks for making such script.
The Admin area reminds me of epay.info faucet page.
newbie
Activity: 1
Merit: 0
Hi phpfaucet,

I want to send payments manually, how can I do that? How can I change pending to Complete if I successfully send the payment?
newbie
Activity: 28
Merit: 0
I have began to test this script for my faucet, on a subdomain first.
Everything seems to be working okay, all but the cron_withdrawal script.

When I run it manually, it only shows a blank page. No errors in the logs, nothing.

Anyone knows why is that?

I must mention I have added the AsMoney API's and everything else.

Anything to do with my host? Do I need to edit my php.ini ?

Please enable error logs and send me the page address via PM.
tyz
legendary
Activity: 3360
Merit: 1533
Okay thanks, I did get something wrong.
Then I will test your script when I got some more time. I am currently running a faucetbox Faucet but I am looking for a good alternative.

I don't want to run a bitcoin node extra for the faucet. Is there a way to request the API of an exchange (e.g. Cryptsy) in order to withdraw the bitcoins or alts over it?

You don't need to run a bitcoin node for faucet, payment hanldle by AsMoney for bitcoin and altcoins.


sr. member
Activity: 308
Merit: 250
i started to test your script install works but now on the register page i see only a blank page


http://yannik.biz/faucet/register.php



can you help me wats wrong?
full member
Activity: 186
Merit: 100
I have began to test this script for my faucet, on a subdomain first.
Everything seems to be working okay, all but the cron_withdrawal script.

When I run it manually, it only shows a blank page. No errors in the logs, nothing.

Anyone knows why is that?

I must mention I have added the AsMoney API's and everything else.

Anything to do with my host? Do I need to edit my php.ini ?
legendary
Activity: 1524
Merit: 1001
NOBT - WNOBT your saving bank◕◡◕
I make backup for files and DB.

our server was under maintenance. I uploaded these backups when maintenance completed but got these errors.

logo for this site http://getdogecoin.ga Show for a sec then disappears.


error message for this site http://getdogecoin.ml

Code:
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "template/header.tpl" on line 1 " in /var/www/virtual/getdogecoin.ml/htdocs/includes/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 1

I deleted Smarty folder and re-uploaded it, but same error.
member
Activity: 294
Merit: 11
This is something like what I have been looking for. Thanks very much. I will be sure to download and check this out.
newbie
Activity: 28
Merit: 0
Some notes :

- AsMoney Password and AsMoney Password SCI not Hashed at mysql

- Everytime I add GoogleAnalytics script before and after Head tag  got many error

- There error with ads shown

- Why user can't buy links ads direct from his balance , set text beside his links and a period for this ads

- To be all this available at admin panel Smiley
 

Sorry for delay, I am so busy in these days.

I will encrypt passwords in next version but if you use secure web server don't worry about this.

use tag  for add javascript like google analytics. enter javascript code

What error exist in ads ? may be your ads is in javascript and you didn't use literal tag.
legendary
Activity: 1524
Merit: 1001
NOBT - WNOBT your saving bank◕◡◕
Some notes :

- AsMoney Password and AsMoney Password SCI not Hashed at mysql

- Everytime I add GoogleAnalytics script before and after Head tag  got many error

- There error with ads shown

- Why user can't buy links ads direct from his balance , set text beside his links and a period for this ads

- To be all this available at admin panel Smiley
 
newbie
Activity: 28
Merit: 0
New Update


I added a form validator to check currency account and crypto address. please pay attention set minimum withdrawal from admin area for both AsMoney and crypticoins.


A new website that using my faucet

let me introduce a new website that use phpfaucet script :

http://getfreecoin.com

this is a good pattern for creating an online faucet.
newbie
Activity: 28
Merit: 0
Hi, do you have any idea what could be causing it?
http://faucet.firstforbitcoin.com/register.php

Whats the php version of you are using?
newbie
Activity: 38
Merit: 0
Hi, do you have any idea what could be causing it?
http://faucet.firstforbitcoin.com/register.php
newbie
Activity: 28
Merit: 0
Thanks, I uploaded the new files. My admin area works fine.

When I try to register from the index.php page, I get the following error:

Parse error: syntax error, unexpected '"header.php"' (T_CONSTANT_ENCAPSED_STRING) in /home/firstbuk/public_html/faucet-master/register.php on line 1

any ideas?


I didn't have such problem in remote machine and my local machine too, what version of PHP you are using?
tyz
legendary
Activity: 3360
Merit: 1533
I downloaded the script and gonna install it on my server. I'll implement a API to an exchange with low fees in order to pay the BTC from there.

Thanks, I uploaded the new files. My admin area works fine.

When I try to register from the index.php page, I get the following error:

Parse error: syntax error, unexpected '"header.php"' (T_CONSTANT_ENCAPSED_STRING) in /home/firstbuk/public_html/faucet-master/register.php on line 1

any ideas?
newbie
Activity: 38
Merit: 0
Thanks, I uploaded the new files. My admin area works fine.

When I try to register from the index.php page, I get the following error:

Parse error: syntax error, unexpected '"header.php"' (T_CONSTANT_ENCAPSED_STRING) in /home/firstbuk/public_html/faucet-master/register.php on line 1

any ideas?
newbie
Activity: 28
Merit: 0
Hi,

I ran the SQL on my db.

Where do I get updated versions of the PHP files please?

I am trying to test your faucet script on my domain.

Thanks.


new files published in github, https://github.com/phpfaucet/faucet
newbie
Activity: 38
Merit: 0
Important Update

I made some changes for bitcoin faucets, to prevent from paying high fees for send to bitcoin addresses. admin can set minimum queue in setting and whenever number of withdrawal requests reached to this number. cron_withdrawal.php send payments to bitcoin addresses.

This feature allow you to pay one miner fee for multiple payments. also the fees will not deducted when user want to withdrawal.


I see you're creating a very good script, I'll give you a try and install the code in local and do some tests to verify if it works better than my actual on microwallet.

Hi,

I ran the SQL on my db.

Where do I get updated versions of the PHP files please?

I am trying to test your faucet script on my domain.

Thanks.
newbie
Activity: 28
Merit: 0
Great project, thank you very much!

I am running into a problem installing on my server.

Running: /faucet-master/install.php

There was an error running the query [Duplicate entry '1' for key 'PRIMARY']

Can I contact you via pm please?

I answered your PM.
newbie
Activity: 28
Merit: 0
I don't want to run a bitcoin node extra for the faucet. Is there a way to request the API of an exchange (e.g. Cryptsy) in order to withdraw the bitcoins or alts over it?

You don't need to run a bitcoin node for faucet, payment hanldle by AsMoney for bitcoin and altcoins.

newbie
Activity: 38
Merit: 0
Great project, thank you very much!

I am running into a problem installing on my server.

Running: /faucet-master/install.php

There was an error running the query [Duplicate entry '1' for key 'PRIMARY']

Can I contact you via pm please?
tyz
legendary
Activity: 3360
Merit: 1533
I don't want to run a bitcoin node extra for the faucet. Is there a way to request the API of an exchange (e.g. Cryptsy) in order to withdraw the bitcoins or alts over it?
legendary
Activity: 1524
Merit: 1001
NOBT - WNOBT your saving bank◕◡◕
@ phpfaucet.org please reply my pm Smiley
sr. member
Activity: 490
Merit: 250
Important Update

I made some changes for bitcoin faucets, to prevent from paying high fees for send to bitcoin addresses. admin can set minimum queue in setting and whenever number of withdrawal requests reached to this number. cron_withdrawal.php send payments to bitcoin addresses.

This feature allow you to pay one miner fee for multiple payments. also the fees will not deducted when user want to withdrawal.


I see you're creating a very good script, I'll give you a try and install the code in local and do some tests to verify if it works better than my actual on microwallet.
newbie
Activity: 28
Merit: 0
Important Update

I made some changes for bitcoin faucets, to prevent from paying high fees for send to bitcoin addresses. admin can set minimum queue in setting and whenever number of withdrawal requests reached to this number. cron_withdrawal.php send payments to bitcoin addresses.

This feature allow you to pay one miner fee for multiple payments. also the fees will not deducted when user want to withdrawal.

you can download project from github and make a fresh installation but if your script is running now, follow the update instruction :

How to update

1. Run this query on your database
Code:
INSERT INTO 'tbl_config' (
'config_id' ,
'header' ,
'value'
)
VALUES (
NULL , 'requestcount', '10'
);

2. Update these files.

Code:
admcenter/setting.php
cron_withdrawal.php
includes/AsmoneyAPI.php
withdrawal.php


newbie
Activity: 28
Merit: 0
Good day, phpfaucet.org,

The first thing we noticed, while were looking through your code is that you use "SELECT *" sql statement, which is considered to be the bad practice. We have also mentioned that your DB class isn't a singleton, do you use any design patterns?

Sorry for delay, you are right. design pattern can be useful for script performance but I didn't use it. I worked on necessary features. its an opensource project dude, join me and participate in development.
full member
Activity: 124
Merit: 100
Good day, phpfaucet.org,

The first thing we noticed, while were looking through your code is that you use "SELECT *" sql statement, which is considered to be the bad practice. We have also mentioned that your DB class isn't a singleton, do you use any design patterns?
sr. member
Activity: 490
Merit: 250
Hi there,
this is a fantastic poroject, maybe if you could improve the version with our suggestion could be a very perfect one, and you could receive some bounties.

i've some suggestions:

1)demo login/password for user are is not "Demo" but "demo" correct your homepage
2)If you could add some more altcoins in your platform you could receive lot of bunties from the developers (i could donate you as a birdcoin dev team)
3)Please set up a cronjob setable directly in the backoffice.

Templates/Plugins updater is the limit of microwallet OLD script..

you could attrack lot of people keeping the code update by our suggestions.

I'll follow the thread waiting for a new version

Hi bro,

1) You are right, account login is demo and fixed on homepage.
2) I don't add want to involve in payments, payments handle by AsMoney and I will add more coins if they add coins.
3) I will setup a programatically cronjob in next verion.


2)Sorry i thought you were also the Asmoney owner
hero member
Activity: 896
Merit: 527
₿₿₿₿₿₿₿
Looks great. Are there any faucets already using it?
newbie
Activity: 28
Merit: 0
its a very good script, is it possible to use this with an alt, thanks for sharing this.

Thanks, Yes, PHPFaucet support dogecoin, peercoin, litecoin , darkcoin too.
full member
Activity: 182
Merit: 100
DaDice! Next Generation Dice Game
its a very good script, is it possible to use this with an alt, thanks for sharing this.
newbie
Activity: 28
Merit: 0
Hi there,
this is a fantastic poroject, maybe if you could improve the version with our suggestion could be a very perfect one, and you could receive some bounties.

i've some suggestions:

1)demo login/password for user are is not "Demo" but "demo" correct your homepage
2)If you could add some more altcoins in your platform you could receive lot of bunties from the developers (i could donate you as a birdcoin dev team)
3)Please set up a cronjob setable directly in the backoffice.

Templates/Plugins updater is the limit of microwallet OLD script..

you could attrack lot of people keeping the code update by our suggestions.

I'll follow the thread waiting for a new version

Hi bro,

1) You are right, account login is demo and fixed on homepage.
2) I don't add want to involve in payments, payments handle by AsMoney and I will add more coins if they add coins.
3) I will setup a programatically cronjob in next verion.
sr. member
Activity: 490
Merit: 250
Hi there,
this is a fantastic poroject, maybe if you could improve the version with our suggestion could be a very perfect one, and you could receive some bounties.

i've some suggestions:

1)demo login/password for user are is not "Demo" but "demo" correct your homepage
2)If you could add some more altcoins in your platform you could receive lot of bunties from the developers (i could donate you as a birdcoin dev team)
3)Please set up a cronjob setable directly in the backoffice.

Templates/Plugins updater is the limit of microwallet OLD script..

you could attrack lot of people keeping the code update by our suggestions.

I'll follow the thread waiting for a new version
member
Activity: 106
Merit: 10
I am developing my own faucet, your script works perfectly, really thanks for great support
member
Activity: 183
Merit: 10
you have very important pm please answer
newbie
Activity: 28
Merit: 0
there is a big problem

when you login with your username

and go to register with another browser

its work with referal

and claim every time in same time

you should be make ip/fillter



Update header.php, I put a filter to prevent referral fraud.
member
Activity: 183
Merit: 10
there is a big problem

when you login with your username

and go to register with another browser

its work with referal

and claim every time in same time

you should be make ip/fillter

member
Activity: 183
Merit: 10
its work

thank you

but did you make transactions has expair???

if not it will be hard to save to much pages
newbie
Activity: 28
Merit: 0
sir the script work perfect

but some
issues

withdrawal page of admin center showing up 1 page

i have 100 transctions not show all only  1 page ex 10 transactions




update admcenter/withdrawal.php, it should work now. I didn't upload and test , please tell me if solved.
member
Activity: 183
Merit: 10
sir the script work perfect

but some
issues

withdrawal page of admin center showing up 1 page

i have 100 transctions not show all only  1 page ex 10 transactions

newbie
Activity: 28
Merit: 0
Nice project!

It would be great if you could implement a migration for microwallet etc. ;-)

Would that be possible?


I checked microwallet , there is nothing in database for migration. just a username without password. you can install phpfaucet and ask your users to register a new account.


newbie
Activity: 28
Merit: 0
Nice project!

It would be great if you could implement a migration for microwallet etc. ;-)

Would that be possible?

Good idea, I am not familiar with their script but I will test.
newbie
Activity: 28
Merit: 0
i will try today

thank you so much

if you can tell me how add java/script on site
like anti adblock its will be perfect

thank you a lot

Your welcome, in html template files open tag {literal} enter javascript code and close literal {/literal} OR put your javascript in a .js file and decleare on head.
member
Activity: 183
Merit: 10
i will try today

thank you so much

if you can tell me how add java/script on site
like anti adblock its will be perfect

thank you a lot
hero member
Activity: 560
Merit: 500
Nice project!

It would be great if you could implement a migration for microwallet etc. ;-)

Would that be possible?
newbie
Activity: 28
Merit: 0
thank you sir

but there is same problems

1-when you put your currency satoshi at admcenter you balance in dashboard will be (0).
2-when you send 10000 satoshi with AsMoney its will be( 1 mBTC)
3-when you send 10000 satoshi with BTC  address its show up( 0 pending)
4-when you send 10000 satoshi with Btc  address you will get in cron (Currency is not valid)
5-when you put your currency mBTC at dashboard setting and put prize 0.005 mBTC and go
to your withdrawal page you will get your balance is( 0).
6-Withdrawals & donate pages at admcenter showing 1 page only no more
7-Withdrawals & donate pages at user center showing 1 page of transactions only


thats all for now

im so sorry but i want to use your script really

thank your for your support


1- OK Now

2- Ok Now

3- All them goes for fee

4- like question 3, asmoney get fees for send money to address and 10000 satoshi will equal 0. you should set higher minimum balance for withdrawal to bitcoin address. and you can set any amount for send money to asmoney account.

5- Go to your database, and run this query, I updated installation sql script but you don't need to reinstall if you run the following sql code.

Code:
ALTER TABLE `tbl_user` CHANGE `credit` `credit` DECIMAL( 20, 8 ) NOT NULL ;

6 & 7- admin center paging work for me, please explain more about this.

download updates and publish again,  Thanks for testing my script.
member
Activity: 183
Merit: 10
thank you sir

but there is same problems

1-when you put your currency satoshi at admcenter you balance in dashboard will be (0).
2-when you send 10000 satoshi with AsMoney its will be( 1 mBTC)
3-when you send 10000 satoshi with BTC  address its show up( 0 pending)
4-when you send 10000 satoshi with Btc  address you will get in cron (Currency is not valid)
5-when you put your currency mBTC at dashboard setting and put prize 0.005 mBTC and go
to your withdrawal page you will get your balance is( 0).
6-Withdrawals & donate pages at admcenter showing 1 page only no more
7-Withdrawals & donate pages at user center showing 1 page of transactions only


thats all for now

im so sorry but i want to use your script really

thank your for your support

yeah i get it now *Bitcoin :  1% + 0.1

bug number 3 its ok
member
Activity: 183
Merit: 10
thank you sir

but there is same problems

1-when you put your currency satoshi at admcenter you balance in dashboard will be (0).
2-when you send 10000 satoshi with AsMoney its will be( 1 mBTC)
3-when you send 10000 satoshi with BTC  address its show up( 0 pending)
4-when you send 10000 satoshi with Btc  address you will get in cron (Currency is not valid)
5-when you put your currency mBTC at dashboard setting and put prize 0.005 mBTC and go
to your withdrawal page you will get your balance is( 0).
6-Withdrawals & donate pages at admcenter showing 1 page only no more
7-Withdrawals & donate pages at user center showing 1 page of transactions only


thats all for now

im so sorry but i want to use your script really

thank your for your support
newbie
Activity: 28
Merit: 0
when you use satoshi with asmoney

and browse corn

you get

Currency is not valid

-----
when select currency nothing you get
-----
when you put mBTC and put prize 0.5 mBTC
its get in balance 1mBTC

if you put 0.05mBTC
ITS GET balance 0.0

 


problems solved, download cron_withdrawal.php and update your script. withdrawal should work fine now. I solved some bug in following files.

Quote
withdrawal.php
cron_withdrawal.php
register.php
templates/register.tpl
templates/withdrawal.tpl



member
Activity: 183
Merit: 10
when you use satoshi with asmoney

and browse corn

you get

Currency is not valid

-----
when select currency nothing you get
-----
when you put mBTC and put prize 0.5 mBTC
its get in balance 1mBTC

if you put 0.05mBTC
ITS GET balance 0.0

 
newbie
Activity: 28
Merit: 0
Thanks for sharing this, Your script is so great, better than all of other faucet codes. I installed it and I want to know about withdrawal, how can I pay withdrawal automatically?

Thanks, you can pay withdrawal manually or set a cronjob on your hosting to browse cron_withdrawal.php after each specified time.



howcan i set cornjob?

not all people have experience with php

 

there is no need to php knowledge for running cronjob, If you are using control panel like CPANEL:

http://www.youtube.com/watch?v=ZAbefcWLxrw

just change path according to your hosting. other control panel has same process. if you are using terminal :

Code:
$ crontab -e
$ 0 * * * * /usr/bin/php /www/virtual/username/faucetscript/cron_withdrawal.php > /dev/null 2>&1

This cron job will run at minute zero, every hour . attention to change this path "/www/virtual/username/faucetscript/cron_withdrawal.php"

Take a look to this link for set different time : http://code.tutsplus.com/tutorials/scheduling-tasks-with-cron-jobs--net-8800


newbie
Activity: 28
Merit: 0
how user can reset his password? in same time don't loss his balance.
migrate from other script

I didn't make a reset password for faucet yet, I didn't want to ask email address. I will make a reset password page and update script soon.
member
Activity: 183
Merit: 10
Thanks for sharing this, Your script is so great, better than all of other faucet codes. I installed it and I want to know about withdrawal, how can I pay withdrawal automatically?

Thanks, you can pay withdrawal manually or set a cronjob on your hosting to browse cron_withdrawal.php after each specified time.



howcan i set cornjob?

not all people have experience with php

 
newbie
Activity: 28
Merit: 0
Thanks for sharing this, Your script is so great, better than all of other faucet codes. I installed it and I want to know about withdrawal, how can I pay withdrawal automatically?

Thanks, you can pay withdrawal manually or set a cronjob on your hosting to browse cron_withdrawal.php after each specified time.

legendary
Activity: 1524
Merit: 1001
NOBT - WNOBT your saving bank◕◡◕
how user can reset his password? in same time don't loss his balance.
migrate from other script
member
Activity: 106
Merit: 10
Thanks for sharing this, Your script is so great, better than all of other faucet codes. I installed it and I want to know about withdrawal, how can I pay withdrawal automatically?
legendary
Activity: 1526
Merit: 1014
Interesting project guys, i've been testing the demo and admin panel is very intuitive and easy to use. You doing an amazing job, thank you very much.
hero member
Activity: 910
Merit: 1000
Looks very handy. Will be useful to anyone who wants to set up a faucet on PHP hosting. The only thing I've never heard of is asmoney.com - that could be my fault. Great work!
newbie
Activity: 28
Merit: 0
may i ask you, how user can reset his password? no email address on Register page.

usually faucets doesn't ask email address of players. I didn't get email address too. If someone forget his password, he can create a new account in 3 seconds.


what about his balance.
also Doge missing just mDoge

Thanks for attention, update admcenter/setting.php
legendary
Activity: 1524
Merit: 1001
NOBT - WNOBT your saving bank◕◡◕
may i ask you, how user can reset his password? no email address on Register page.

usually faucets doesn't ask email address of players. I didn't get email address too. If someone forget his password, he can create a new account in 3 seconds.


what about his balance.
also Doge missing just mDoge
newbie
Activity: 28
Merit: 0
may i ask you, how user can reset his password? no email address on Register page.

usually faucets doesn't ask email address of players. I didn't get email address too. If someone forget his password, he can create a new account in 3 seconds.

legendary
Activity: 1524
Merit: 1001
NOBT - WNOBT your saving bank◕◡◕
may i ask you, how user can reset his password? no email address on Register page.
newbie
Activity: 28
Merit: 0
Really nice domain you got there: phpfaucet.org

I dug through a few of the pages and code quality looks solid and secure using prepared statements and mysqli. Nice job!  I'll have to test it out when I have more time.

no offence to OP, that's a really nice move to create stuff open-source but this kind of things should be managed from config files, not hardcoded.

https://github.com/phpfaucet/faucet/blob/master/cron_withdrawal.php#L7


Thanks coinableS, I tried to create usable software.

Dear emrebey, Its not hardcoded, API data read from database. Just currencies has been hardcoded because I haven't plan to add more currencies. if asmoney add a new currency, I will change it in next version.
sr. member
Activity: 476
Merit: 250
Really nice domain you got there: phpfaucet.org

I dug through a few of the pages and code quality looks solid and secure using prepared statements and mysqli. Nice job!  I'll have to test it out when I have more time.

no offence to OP, that's a really nice move to create stuff open-source but this kind of things should be managed from config files, not hardcoded.

https://github.com/phpfaucet/faucet/blob/master/cron_withdrawal.php#L7
legendary
Activity: 1442
Merit: 1188
Really nice domain you got there: phpfaucet.org

I dug through a few of the pages and code quality looks solid and secure using prepared statements and mysqli. Nice job!  I'll have to test it out when I have more time.
newbie
Activity: 28
Merit: 0

I developed an open source php script, everybody can run his own own faucet easily.

Faucet payments handle through https://www.asmoney.com , so you can create a Bitcoin faucet, dogecoin faucet, darkcoin faucet, peercoin faucet and litecoin faucet by changing currency in website setting.


Support Solvemedia captcha
No daemon required - payments handle by AsMoney
Support Referral Program
Template and PHP files are separated and changing template is easy
Support multiple admin
Accept donate
Manual/automatic withdrawal


I am working on it to create new updates and improve the software, if you are a webmaster use this software and enjoy, if you are PHP programmer, join me and participate in development.


Project published on github : https://github.com/phpfaucet/faucet

Official site : http://phpfaucet.org
Jump to: