Add Google Analytics tracking code
[elbandi:minifaucet.git] / config.php
1 <?php
2 error_reporting(0);
3
4 // Database Config
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
10
11 $mysqli = new mysqli($sqlHost, $sqlUser, $sqlPassword, $sqlDatabase);
12 if($mysqli->connect_errno){
13         echo "SQL error: " . $mysqli->connect_error;
14         exit;
15 }
16
17 // Site Config
18 $siteName = "MiniFaucet";
19 // Coin type
20 // Valid types are:
21 // - BTC: bitcoin
22 // - LTC: litecoin
23 // - NMC: namecoin
24 // - BTCTEST: bitcoin testnet
25 // - NVC: novacoin
26 // - PPC: peercoin
27 // - DOGE: dogecoin
28 // - WDC: worldcoin
29 // - MOON: mooncoin
30 $coinType = "BTC";
31
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);
38
39 $dispenseTime = 3600; // how long per dispense (in seconds)
40 $dispenseTimeText = relative_time(time() + $dispenseTime);
41
42 // Having time issues? Your MySQL time zone is different from your PHP time zone.
43 // Contact your web hosting provider in that case.
44
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
47
48 // Security code for admin page
49 $adminSeccode = "";
50
51 // transaction fee in satoshis
52 $fee = 20000;
53
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
57
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
61
62 // Coinbase Account
63 // You need to make a NEW Coinbase account and generate an API key in the security tab
64 $apiKey = "";
65
66 // Blockchain Account
67 // Enable double-encryption on your wallet. guid is your MyWallet identifier.
68 //
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
71 $guid = "";
72 $firstpassword = "";
73 $secondpassword = "";
74
75 // bitcoind Account
76 // If you run a bitcoind, enable the JSON-RPC commands
77 $rpchost = "";
78 $rpcssl = false;
79 $rpcport = 8332;
80 $rpcuser = "";
81 $rpcpassword = "";
82
83 // Make sure you have added balance to it!
84
85 $referPercent = 15; //referral percentage
86
87 $forcewait = 5; //seconds a user is forced to wait before cashing out.
88
89 // Google Analytics
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/
92
93 $googleAnalyticsId = "";
94
95 // Recaptcha API keys
96 // You need GET YOUR OWN. Here https://www.google.com/recaptcha/admin/create
97
98 $recaptchaPub = " PUBLIC KEY";
99 $recaptchaPrv = " PRIVATE KEY";
100
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 />";
102
103 // Advertisement Codes
104 // All ads rotate. There are 3 types: square, text, and banner. Add HTML code to the array
105
106 $squareAds = array('<iframe scrolling="no" style="border: 0; width: 250px; height: 250px;" src="http://coinurl.com/get.php?id=18045"></iframe>');
107
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>');
109
110 $bannerAds = array('<iframe scrolling="no" style="border: 0; width: 468px; height: 60px;" src="http://coinurl.com/get.php?id=18056"></iframe>');