forked from jfm-so/piWallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.php
More file actions
40 lines (31 loc) · 1.14 KB
/
common.php
File metadata and controls
40 lines (31 loc) · 1.14 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
<?php
session_start();
define("WITHDRAWALS_ENABLED", true); //Disable withdrawals during maintenance
include('jsonRPCClient.php');
include('classes/Client.php');
include('classes/User.php');
// function by zelles to modify the number to bitcoin format ex. 0.00120000
function satoshitize($satoshitize) {
return sprintf("%.8f", $satoshitize);
}
// function by zelles to trim trailing zeroes and decimal if need
function satoshitrim($satoshitrim) {
return rtrim(rtrim($satoshitrim, "0"), ".");
}
$server_url = "/"; // website url
$db_host = "localhost";
$db_user = "root";
$db_pass = "password";
$db_name = "wallet";
$rpc_host = "localhost";
$rpc_port = "8332";
$rpc_user = "bitcoinrpc";
$rpc_pass = "Cp68nBkCAADKkskaKSskaDKdmSYLtLJ";
$fullname = "Bitcoin"; //Website Title (Do Not include 'wallet')
$short = "BTC"; //Coin Short (BTC)
$blockchain_url = "http://blockchain.info/tx/"; //Blockchain Url
$support = "support@yourwebsite.com"; //Your support eMail
$hide_ids = array(1); //Hide account from admin dashboard
$donation_address = "13jy6rHB7HMgQBoYxQQXSM7TFTZZ6CDAAZ"; //Donation Address
$fee = "0.001"; //Set a fee to prevent negitive balances
?>