forked from Rui-Santos/BitLuck
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.inc.php
45 lines (34 loc) · 1.2 KB
/
config.inc.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
<?php
/**
* @author John "JohnMaguire2013" Maguire <john@leftforliving.com>
* @package BitLuck
* @version 0.3
* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public License
*/
// Set to true for development, false for production
$debug = true;
/* Configuration variables for the JSON-RPC server */
$rpc_host = '127.0.0.1';
$rpc_port = '80';
$rpc_user = 'username';
$rpc_pass = 'password';
/* Configuration variables for the MySQL server */
$sql_host = 'localhost';
$sql_user = 'username';
$sql_pass = 'password';
$sql_db = 'database';
/* Owner's key for fee to be sent to */
$owner_key = '1B7aTxrcaEVopuqrqidTQMxE9mpDUZRwAb';
/* Percentage to send, in decimal */
$owner_fee = .01;
/* Time cron is set to run give_prize.php, (format suggested: 8:30pm UTC-5) */
$draw_time = "8:30pm UTC-5";
/* Ticket cost, in FRK */
$ticket_cost = 0.01;
/* Set error reporting level */
if($debug) error_reporting(E_ERROR);
else error_reporting(0);
/* Include the JSON-RPC library, and connect to the server */
require_once('classes/jsonRPCClient.php');
$bc = new jsonRPCClient('http://' . $rpc_user . ':' . $rpc_pass . '@' . $rpc_host . ':' . $rpc_port);
?>