Skip to content

Commit

Permalink
Merge pull request #46 from mrtremendous/mr-t-ideas
Browse files Browse the repository at this point in the history
Mr t ideas
  • Loading branch information
jfm-so authored Feb 3, 2018
2 parents 9d2e2f5 + 0b068fe commit 4dc777b
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 27 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
settings.php
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ piWallet is a secure opensource online altcoin wallet that works with practicall

Setup: https://github.com/johnathanmartin/piWallet/wiki/Installation

TODO: Add a step in the wiki explaining to copy settings-example.php into a new file settings.php and then change the values.

TODO: Add a step in the wiki explaining to delete users.sql.

Bitcoin Talk: https://bitcointalk.org/index.php?topic=911212

Please be cautious when paying others to install piWallet for you, I'd be willing to install for a negotiable fee. Please send me an email. [email protected]
Expand Down
21 changes: 1 addition & 20 deletions common.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,7 @@ function satoshitrim($satoshitrim) {
return rtrim(rtrim($satoshitrim, "0"), ".");
}

$server_url = "/"; // ENTER WEBSITE URL ALONG WITH A TRAILING SLASH

$db_host = "localhost";
$db_user = "root";
$db_pass = "password";
$db_name = "wallet";

$rpc_host = "127.0.0.1";
$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 = "[email protected]"; //Your support eMail
$hide_ids = array(1); //Hide account from admin dashboard
$donation_address = "13jy6rHB7HMgQBoYxQQXSM7TFTZZ6CDAAZ"; //Donation Address

$reserve = "0"; //This fee acts as a reserve. The users balance will display as the balance in the daemon minus the reserve. We don't reccomend setting this more than the Fee the daemon charges.
require('settings.php');

if(isSet($_GET['lang']))
{
Expand Down
24 changes: 24 additions & 0 deletions settings-example.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

$server_url = "/"; // ENTER WEBSITE URL ALONG WITH A TRAILING SLASH

$db_host = "localhost";
$db_user = "root";
$db_pass = "password";
$db_name = "wallet";

$rpc_host = "127.0.0.1";
$rpc_port = "8332";
$rpc_user = "bitcoinrpc";
$rpc_pass = "Cp68nBkCAADKkskaKSskaDKdmSYLtLJ";

$fullname = "Bitcoin"; //Website Title (Do Not include 'wallet')
$short = "BTC"; //Coin Short (BTC)
$blockchain_tx_url = "http://blockchain.info/tx/"; //Blockchain Url
$support = "[email protected]"; //Your support eMail
$hide_ids = array(1); //Hide account from admin dashboard
$donation_address = "13jy6rHB7HMgQBoYxQQXSM7TFTZZ6CDAAZ"; //Donation Address

$reserve = "0"; //This fee acts as a reserve. The users balance will display as the balance in the daemon minus the reserve. We don't reccomend setting this more than the Fee the daemon charges.

?>
6 changes: 3 additions & 3 deletions view/admin_info.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<td>'.abs($transaction['amount']).'</td>
<td>'.$transaction['fee'].'</td>
<td>'.$transaction['confirmations'].'</td>
<td><a href="' . $blockchain_url, $transaction['txid'] . '" target="_blank">Info</a></td>
<td><a href="' . $blockchain_tx_url, $transaction['txid'] . '" target="_blank">Info</a></td>
</tr>';
}
?>
Expand All @@ -103,7 +103,7 @@
}
?>
<script type="text/javascript">
var blockchain_url = "<?=$blockchain_url?>";
var blockchain_tx_url = "<?=$blockchain_tx_url?>";
$("#withdrawform input[name='action']").first().attr("name", "jsaction");
$("#newaddressform input[name='action']").first().attr("name", "jsaction");
$("#pwdform input[name='action']").first().attr("name", "jsaction");
Expand Down Expand Up @@ -223,7 +223,7 @@ function updateTables(json)
<td>' + Math.abs(json.transactionList[i]['amount']) + '</td> \
<td>' + json.transactionList[i]['fee'] + '</td> \
<td>' + json.transactionList[i]['confirmations'] + '</td> \
<td><a href="' + blockchain_url.replace("%s", json.transactionList[i]['txid']) + '" target="_blank">Info</a></td> \
<td><a href="' + blockchain_tx_url.replace("%s", json.transactionList[i]['txid']) + '" target="_blank">Info</a></td> \
</tr>');
}
}
Expand Down
8 changes: 4 additions & 4 deletions view/wallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@
<td>'.abs($transaction['amount']).'</td>
<td>'.$transaction['fee'].'</td>
<td>'.$transaction['confirmations'].'</td>
<td><a href="' . $blockchain_url, $transaction['txid'] . '" target="_blank">Info</a></td>
<td><a href="' . $blockchain_tx_url, $transaction['txid'] . '" target="_blank">Info</a></td>
</tr>';
}
?>
</tbody>
</table>
<script type="text/javascript">
var blockchain_url = "<?=$blockchain_url?>";
var blockchain_tx_url = "<?=$blockchain_tx_url?>";
$("#withdrawform input[name='action']").first().attr("name", "jsaction");
$("#newaddressform input[name='action']").first().attr("name", "jsaction");
$("#pwdform input[name='action']").first().attr("name", "jsaction");
Expand Down Expand Up @@ -267,9 +267,9 @@ function updateTables(json)
<td>' + json.transactionList[i]['address'] + '</td> \
<td>' + tx_type + '</td> \
<td>' + Math.abs(json.transactionList[i]['amount']) + '</td> \
<td>' + json.transactionList[i]['fee'] + '</td> \
<td>' + (json.transactionList[i]['fee']?json.transactionList[i]['fee']:'') + '</td> \
<td>' + json.transactionList[i]['confirmations'] + '</td> \
<td><a href="' + blockchain_url.replace("%s", json.transactionList[i]['txid']) + '" target="_blank">Info</a></td> \
<td><a href="' + blockchain_tx_url.replace("%s", json.transactionList[i]['txid']) + '" target="_blank">Info</a></td> \
</tr>');
}
}
Expand Down

0 comments on commit 4dc777b

Please sign in to comment.