forked from hilmysyarif/Cryptocurrency-faucet-script
-
Notifications
You must be signed in to change notification settings - Fork 2
/
chc_config.php
110 lines (81 loc) · 4.61 KB
/
chc_config.php
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
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
/*
// Cryptocurrency faucet script
The MIT License (MIT)
Copyright (c) [2014] [Christian Grieger]
Copyright (c) [2018] [Chao Han]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
// Modify these settings to suit your needs.
$config = array(
// e.g. Chaincoin
"coinname" => "CHC",
// RPC settings:
// These are the settings you put into e.g. chaincoin.conf. They allow the faucet to interact with your wallet
"rpc_user" => "chainuser",
"rpc_password" => "xxxx",
"rpc_host" => "localhost",
"rpc_port" => "11995",
// MySQL settings:
"mysql_user" => "faucetuser",
"mysql_password" => "xxxx",
"mysql_host" => "localhost",
"mysql_database" => "faucet", // faucet database name
"mysql_table_prefix" => "sf_", // table prefix to use
// Coin values:
"minimum_payout" => 0.1, // minimum coins to be awarded
"maximum_payout" => 0.1, // maximum coins to be awarded
"payout_threshold" => 1, // payout threshold, if the faucet contains less coins than this, display the 'dry_faucet' message
"payout_interval" => "2h", // payout interval, the wait time for a user between payouts. Type any numerical value with either a "m" (minutes), "h" (hours), or "d" (days), attached. Examples: 50m for a 50 minute delay, 7h for a 7 hour delay, etc.
// Payment system:
"stage_payments" => true, // stage payments in the database, to be executed later
"stage_payment_account_name" => "faucet", // account name to send transactions with, needs to be valid // you also can leave it empty
"staged_payment_threshold" => 100, // staged payment threshold, all staged payments are executed when this number is reached
"staged_payment_cron_only" => false, // ignore the stage_amount counter, only execute staged payments when the cron script is called
// this option has 3 possible values: "ip_address", "coin_address", and "both". It defines what to check for when a user enters a coin address in order to decide whether or not to award coins to this user.
// "ip_address": checks the user IP address in the payout history.
// "coin_address": checks the user coins address in the payout history.
// "both": check both the IP and coins address in the payout history.
"user_check" => "both",
"use_captcha" => true, // require the user to enter a captcha
"captcha" => "recaptcha2", // valid options: recaptcha, recaptcha2
"captcha_https" => true, // use https (only for recaptcha2) valid options: true, false
// enter your private and public reCAPTCHA key here:
"captcha_config" => array(
"private_key" => "",
"public_key" => ""
),
// proxy filter:
"filter_proxies" => true, // whether to filter proxies or not. It's up to you to fill the proxy ban table. (see also the tor node cron job in ./lib/proxy_filter/cron/tor.php)
"proxy_filter_use_faucet_database" => false, // whether the proxy filter should use the faucet database connection or not. (if set to false, the proxy filter will connect to the database set in ./lib/proxy_filter/config.php)
// promo codes:
"use_promo_codes" => true, // accept promo codes
// if the wallet is encrypted, enter the PASSPHRASE here. Leave it blank otherwise!
"wallet_passphrase" => "",
// Donation address:
"donation_address" => "", // donation address to display
// Faucet look and feel:
"title" => "SocialSend Faucet", // page title, may be used by the template too
"template" => "default", // template to use (see the templates directory)
//code for advertisements:
"ads" => "<b>Referrrals:</b><br> <b>
|<a href='https://wallet.crypto-bridge.org/?r=chaoabunga'>Crypto-Bridge</a>
<br> *<a href='https://chaincoin.org/'>Chaincoin Wallet Download</a></b>*"
);
// Do not change this.
defined("SIMPLE_FAUCET") || header(".");
?>