Code Monkey home page Code Monkey logo

btc-faucet's Introduction

BTC-faucet

Bitcoin faucet full CMS (also known as "Waddow Faucet")

Features

  • Faucet
  • Referrals
  • Withdraw to faucetpay.io
  • Administration (admin dashboard)
  • Advanced Support Ticket system
  • Bonuses, multipliers
  • Leveling system (w/ bonuses)
  • Dice Game
  • Auto Dice game (with an advanced config)
  • Secured

How does it look?

Front page The Dice Dashboard

Configuration

Making the website work is pretty simple, you just need a databse, where you import the database.sql file, and you need to link the database to the website in the src/config/pdo.php file, for example:

/* Connexion à une base MySQL avec l'invocation de pilote */
$dsn = 'host=localhost;dbname=test';
$user = 'root';
$password = '';

And it should work! It's that easy, but now you need to configure the captcha, and it also is really easy! Just go to https://hcaptcha.com, create a new website and take get secret key, you now need to paste it in these files: client\login.php and client\ajax\claimFaucet.php It should look something like that:

    // Check captcha
    $data = array(
        'secret' => "YOUR hCAPTAHCA SECRET KEY" // Your hCaptcha secret here,
        'response' => $_POST['h-captcha-response']
    );

Now the captcha work, so you can register and claim the faucet.. but for the website to work at 100%, you need to create a faucethub.io faucet, just go to https://faucethub.io, then go to "Faucet Owner Dashboard", create a new faucet and get your secret key, then, just past it multiple times in this file: src\components\faucethub.php like this:

    curl_setopt($ch, CURLOPT_URL,"https://faucetpay.io/api/v1/balance");
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, "api_key=YOUR_API_KEY&currency=$currency");

(NOTE: you have to do this 3 times, in the 3 functions, just replace every "YOUR_API_KEY" with your secret faucethub.io API key).

btc-faucet's People

Contributors

urbainn avatar xznt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

btc-faucet's Issues

An account is not created when registering on the site.

For some reason, an account is not created when registering on the site. No registration data is displayed in the database. When you register, you simply redirect to the next section of the site without authorization. Everything else seems to work, but it is the authorization itself that does not. I can easily walk through the rest of the site, but without authorization. Where the captcha is in the code, I changed it, but it's not about it. What's wrong?

I found an error during install

PDOExeption error, could not connect to database. We are working on the issue, please come back later..
Une erreur est survenue lors de la connexion avec la base de données; nous travaillons sur le problème. Merci de revenir plus tard. PDOException: invalid data source name in /home/vol9_8/epizy.com/epiz_32592631/htdocs/src/config/pdo.php:12 Stack trace: #0 /home/vol9_8/epizy.com/epiz_32592631/htdocs/src/config/pdo.php(12): PDO->__construct('host=sql204.epi...', 'epiz_32592631', '2hgeX0yJXoSb3') #1 /home/vol9_8/epizy.com/epiz_32592631/htdocs/src/components/header.php(16): include_once('/home/vol9_8/ep...') #2 /home/vol9_8/epizy.com/epiz_32592631/htdocs/index.php(7): include_once('/home/vol9_8/ep...') #3 {main}

I've followed the install method through your tutorial, but it still doesn't work

Not Working

When I Register Or Login A Blank Screen Appears Saying Webpage Not Working.

Error with captcha

Hi! Many thanks for this script, I was trying to install it and I am having a few issues.
The PDO script works fine and the website deployed properly (kaitain.xyz), but I am running into several problems that may be related to the PHP version.

For instance, on the login.php this error started to appear (The system gave error 500 when trying to login)

[Sun May 08 00:26:09.079796 2022] [fcgid:warn] [pid 2002205:tid 140427973814016] [client 190.151.63.122:55326] mod_fcgid: stderr: PHP Parse error: syntax error, unexpected ''response'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /var/www/clients/client1/web1/web/client/login.php on line 12, referer: http://kaitain.xyz/login.php?a=register
The solution was to insert a comma.

Then I tried to register the first account, but the captcha fails, it says "Whoops! Please complete the reCaptcha.." and everything I try fails to solve the error.

By the way, on PHP MY ADMIN, the database has this warning:

Notice in ./libraries/classes/Display/Results.php#1224
 Trying to access array offset on value of type bool

I don´t know if it is related.

I think maybe the problem is related to the PHP version, what PHP version needs to be installed for it to work properly?

Many thanks for your help, you did a nice job writing this and I really want to use this for my website.

Error on connecting PDO

PDO wont connect even with assigned correct sql database,

Notice: Undefined variable: pdo in C:\xampp\htdocs-\components\header.php on line 22

Fatal error: Uncaught Error: Call to a member function query() on null in C:\xampp\htdocs-\src\components\functions.php:6 Stack trace: #0 C:\xampp\htdocs-\src\components\header.php(22): getUserInfos(NULL) #1 C:\xampp\htdocs-\index.php(7): include_once('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs-\src\components\functions.php on line 6

not conecting

pdo worksPDOExeption error, could not connect to database. We are working on the issue, please come back later..
Une erreur est survenue lors de la connexion avec la base de données; nous travaillons sur le problème. Merci de revenir plus tard. PDOException: invalid data source name in /home/kalea/test.betfilm.net/src/config/pdo.php:12 Stack trace: #0 /home/kalea/test.betfilm.net/src/config/pdo.php(12): PDO->__construct('host=localhost;...', '', '') #1 /home/kalea/test.betfilm.net/src/components/header.php(16): include_once('/home/kalea/...') #2 /home/kalea/test.betfilm.net/index.php(7): include_once('/home/kalea/...') #3 {main}

i setup all fine and is not working, on this errors i deleted db detalies

Registration errors

Upon registration the user is left with error 500,

client/login.php?a=register

Does not give any logs or informations of errors even with

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

Even tried creating a .htaccess file with

RewriteEngine On
# Force the use of HTTPS
# RewriteCond %{HTTPS} off
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Enable pretty URLs for clean navigation
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
php_flag display_errors on php_value error_reporting E_ALL

The page is still blank, i suggest separating the login page from the register page and its functions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.