forked from Someguy123/-Coin
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.php
44 lines (37 loc) · 1.06 KB
/
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
<?php
/**
* @author Chris S - AKA Someguy123
* @version 0.01 (ALPHA!)
* @license PUBLIC DOMAIN http://unlicense.org
* @package +Coin - Bitcoin & forks Web Interface
* This is the config file for +Coin
* You MUST add your daemon host information to this
* file, or it won't work.
*
*/
session_start();
$wallets = array();
$wallets['wallet 1'] = array("user" => "bitcoin",
"pass" => "password",
"host" => "localhost",
"port" => 8330,
"protocol" => "http");
/*
$wallets['wallet 2'] = array("user" => "username",
"pass" => "password",
"host" => "localhost",
"port" => 5000,
"protocol" => "https");
*/
if (isset($_POST['currentWallet']))
$_SESSION['currentWallet'] = $_POST['currentWallet'];
if (isset($_SESSION['currentWallet']))
$currentWallet = $_SESSION['currentWallet'];
else
{
$keys = array_keys($wallets);
$currentWallet = $keys[0];
$_SESSION['currentWallet'] = $currentWallet;
}
$nmcu = $wallets[$currentWallet];
?>