forked from g2x3k/litecoin-instawallet-simple
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.php
65 lines (53 loc) · 1.96 KB
/
index.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
<?
include("core/wallet.php");
include('templates/header.php');
// index page
?>
<div class="page-header">
<h1>LTC instawallet <small>In progress...</small></h1>
</div>
<div class="row">
<div class="span10">
<?
echo srsnot("The LTC InstaaWallet is currently under development, I am not responsible for any lost litecoins, failed transactions, or lost addresses. save your vault link and dont share it");
if (isset($_SESSION["key"])) {
?>
<form action="vault">
<input type="hidden" name="key" value="<?=$_SESSION["key"]?>" />
<button class="btn notice"/>Return to my wallet</button>
</form>
<?
}
else {
?>
<form action="getaddress.php">
<input type="hidden" name="iwantaddress" value="true" />
<button class="btn danger"/>I don't care, just give me an address!</button>
</form>
<? } ?>
<?
echo '
<center><h3>Recent transactions</h3></center>
<table class=\'bordered-table condensed-table zebra-striped\'><tr><td>Confirms</td><td>Type</td><td>Amount</td><td>Fee</td></tr>';
$dump = array_reverse($btclient->listtransactions());
foreach ($dump as $herp) {
if ($herp['category'] != "move") {
if ($herp['category'] == "send") {
$herp['amount'] = $herp['amount'] * -1;
$color = "maroon";
} else {
$color = "green";
}
$herp["fee"] = $herp["fee"] * -1;
echo "<tr><td>" . $herp['confirmations'] . "</td><td>" . $herp['category'] .
"</td><td><font color='{$color}'>" . $herp['amount'] . "</font></td><td>" . ($herp['fee'] ?
$herp["fee"] : 0) . "</td></tr>";
}
}
echo "</table>";
?>
</div>
<?
include("templates/sidebar.php");
include('templates/footer.php');
?>