forked from earth-faucet/faucet
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.php
More file actions
98 lines (76 loc) · 3.25 KB
/
config.php
File metadata and controls
98 lines (76 loc) · 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
error_reporting(0);
// Database Config
// You will need to import the SQL file (structure.sql) first and create a MySQL database and user
$sqlHost = "localhost"; //Unless your MySQL server is on another server, leave it as localhost
$sqlUser = "root"; //Your MySQL username with permissions to modify the new database you created
$sqlPassword = "Xadsl3612"; //Your MySQL password
$sqlDatabase = "faucet"; //The MySQL database you created and imported
$mysqli = new mysqli($sqlHost, $sqlUser, $sqlPassword, $sqlDatabase);
if($mysqli->connect_errno){
echo "SQL error: " . $mysqli->connect_error;
exit;
}
// Site Config
$siteName = "EarthFaucet";
// Coin type
// Valid types are:
// - BTC: bitcoin
// - LTC: litecoin
// - NMC: namecoin
// - BTCTEST: bitcoin testnet
// - NVC: novacoin
// - PPC: peercoin
// - DOGE: dogecoin
// - WDC: worldcoin
$coinType = "EAC";
// Array of 8 rewards in satoshis. 100,000,000 satoshis = 1 BTC
// 1 mBTC = 100,000 Satoshis
// 1 μBTC (microbitcoin) = 100 Satoshis
$rewards = array(1000, 1500, 2000, 2500, 3000, 3500, 4000, 5000);
$minReward = min($rewards);
$maxReward = max($rewards);
$dispenseTime = 3600; // how long per dispense (in seconds)
$dispenseTimeText = relative_time(time() + $dispenseTime);
// Having time issues? Your MySQL time zone is different from your PHP time zone.
// Contact your web hosting provider in that case.
$cashout = 20000; //min cashout. must be at least 10,000 satoshi
$cashoutMessage = "Cashout from $siteName - thanks for using!"; // note sent with cash out
// Security code for admin page
$adminSeccode = "";
// transaction fee in satoshis
$fee = 20000;
// Allowed address types
$allowEmail = false; // allow coinbase email addresses (we can't verify that it is exists
$allowCoin = true; // allow bitcoin addresses
// MiniFaucet automatic detect which online wallet do you use:
// If Coinbase api key is set then the site will use that
// If you set the Blockchain's guid, then that will be used
// Coinbase Account
// You need to make a NEW Coinbase account and generate an API key in the security tab
$apiKey = "";
// Blockchain Account
// Enable double-encryption on your wallet. guid is your MyWallet identifier.
//
// If you will be accessing the API from a server with a static ip address is recommended you
// enable the IP Lock found in the Security Section of your My Wallet account
$guid = "";
$firstpassword = "";
$secondpassword = "";
// bitcoind Account
// If you run a bitcoind, enable the JSON-RPC commands
$rpchost = "127.0.0.1";
$rpcssl = false;
$rpcport = 15678;
$rpcuser = "wfuller";
$rpcpassword = "Xadsl3612";
// Make sure you have added balance to it!
$referPercent = 15; //referral percentage
$forcewait = 5; //seconds a user is forced to wait before cashing out.
// Recaptcha API keys
// You need GET YOUR OWN. Here https://www.google.com/recaptcha/admin/create
$recaptchaPub = "6LcTSOwSAAAAAObc3D1eR5YY3RqiqFFuuLlIhnrS";
$recaptchaPrv = "6LcTSOwSAAAAAPZzf7E--C_C2zleVIgDnWd97yXG";
$links = "<a href='example.org' target='_blank'>Adds links to your favorite Earthcoin faucets here</a><br /><a href='example.org' target='_blank'>Adds links to your favorite Earthcoin faucets here</a><br />";
// Advertisement Codes
// All ads rotate. There are 3 types: square, text, and banner. Add HTML code to the array