5 // You will need to import the SQL file (structure.sql) first and create a MySQL database and user
6 $sqlHost = "localhost"; //Unless your MySQL server is on another server, leave it as localhost
7 $sqlUser = "your_user"; //Your MySQL username with permissions to modify the new database you created
8 $sqlPassword = "your_pass"; //Your MySQL password
9 $sqlDatabase = "myfaucet"; //The MySQL database you created and imported
11 $mysqli = new mysqli($sqlHost, $sqlUser, $sqlPassword, $sqlDatabase);
12 if($mysqli->connect_errno){
13 echo "SQL error: " . $mysqli->connect_error;
18 $siteName = "MiniFaucet";
24 // - BTCTEST: bitcoin testnet
32 // Array of 8 rewards in satoshis. 100,000,000 satoshis = 1 BTC
33 // 1 mBTC = 100,000 Satoshis
34 // 1 μBTC (microbitcoin) = 100 Satoshis
35 $rewards = array(1000, 1500, 2000, 2500, 3000, 3500, 4000, 5000);
36 $minReward = min($rewards);
37 $maxReward = max($rewards);
39 $dispenseTime = 3600; // how long per dispense (in seconds)
40 $dispenseTimeText = relative_time(time() + $dispenseTime);
42 // Having time issues? Your MySQL time zone is different from your PHP time zone.
43 // Contact your web hosting provider in that case.
45 $cashout = 20000; //min cashout. must be at least 10,000 satoshi
46 $cashoutMessage = "Cashout from $siteName - thanks for using!"; // note sent with cash out
48 // Security code for admin page
51 // transaction fee in satoshis
54 // Allowed address types
55 $allowEmail = false; // allow coinbase email addresses (we can't verify that it is exists
56 $allowCoin = true; // allow bitcoin addresses
58 // MiniFaucet automatic detect which online wallet do you use:
59 // If Coinbase api key is set then the site will use that
60 // If you set the Blockchain's guid, then that will be used
63 // You need to make a NEW Coinbase account and generate an API key in the security tab
67 // Enable double-encryption on your wallet. guid is your MyWallet identifier.
69 // If you will be accessing the API from a server with a static ip address is recommended you
70 // enable the IP Lock found in the Security Section of your My Wallet account
76 // If you run a bitcoind, enable the JSON-RPC commands
83 // Make sure you have added balance to it!
85 $referPercent = 15; //referral percentage
87 $forcewait = 5; //seconds a user is forced to wait before cashing out.
90 // Place your Web Property ID for the Google Web Property you wish to track. (eg: UA-XXXX-Y)
91 // More info: https://developers.google.com/analytics/devguides/collection/analyticsjs/
93 $googleAnalyticsId = "";
96 // You need GET YOUR OWN. Here https://www.google.com/recaptcha/admin/create
98 $recaptchaPub = " PUBLIC KEY";
99 $recaptchaPrv = " PRIVATE KEY";
101 $links = "<a href='example.org' target='_blank'>Adds links to your favorite Bitcoin faucets here</a><br /><a href='example.org' target='_blank'>Adds links to your favorite Bitcoin faucets here</a><br />";
103 // Advertisement Codes
104 // All ads rotate. There are 3 types: square, text, and banner. Add HTML code to the array
106 $squareAds = array('<iframe scrolling="no" style="border: 0; width: 250px; height: 250px;" src="http://coinurl.com/get.php?id=18045"></iframe>');
108 $textAds = array('<p><strong><a href="http://coinchat.org.">CoinChat</a></strong> - get free Bitcoins chatting!</p>', '<p><strong>Get your own faucet!</strong> <a href="https://gitorious.org/elbandi/minifaucet">MiniFaucet PHP script - free!</a></p>');
110 $bannerAds = array('<iframe scrolling="no" style="border: 0; width: 468px; height: 60px;" src="http://coinurl.com/get.php?id=18056"></iframe>');