forked from Encrypt-S/navpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sendtoaddress.php
executable file
·57 lines (56 loc) · 2.17 KB
/
sendtoaddress.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
<?php
include ("header.php");
include ("pass.php");
$address = $_POST['address'];
$amount = $_POST['amount'];
$comment = $_POST['comment'];
$validate = $coin->validateaddress($address);
$x = array_reverse($validate);
$bal1 = $coin->getbalance();
?>
<div class="panel panel-default">
<center><h3>Available Balance: <font color='green'><?php echo $bal1; ?></font> <?php echo $currentWallet; ?></h3></center>
<table class="table-hover table-condensed table-bordered table">
<form action="send.php" method="POST"><input type="hidden">
<input type="hidden" name="a">
<tr>
<td><b>To Address</b></td>
<td><input class="form-control" type="text" name="address" value="<?php print($address); ?>"></td>
</tr>
<tr>
<td><b>Amount</b></td>
<td><input class="form-control" type="text" name="amount" value="<?php print($amount); ?>"></td>
</tr>
<tr>
<td><b>Comment</b></td>
<td><input class="form-control" type="text" name="comment" value="<?php print($comment); ?>"></td>
</tr>
<tr>
<td><b>Private payment</b></td>
<td><input class="form-control" type="checkbox" name="anonsend" value="1" <?php if($_POST['anonsend'] == "1"){ echo "checked";} ?>/></td>
</tr>
<tr>
<td> </td>
<td><button class='btn btn-blue' type="submit" value="Preview"><b>Send Coins</b></button></td>
</tr>
</form>
</table>
</div>
</div>
<div class="well">
<p><b>PREVIEW:</b></p>
<b><b>Sending <?php print( $amount ); ?> Coin(s) to</b> <?php print $address; ?></b>
<div class="panel panel-default">
<table class="table-condensed table-hover table-bordered table" >
<tbody>
<?php $info = $coin->validateaddress($_POST['address']);
foreach ($info as $key => $val){
echo "<tr><td>".$key."</td><td>".$val."</td></tr>";
}
?>
</tbody>
</table>
</div>
<b>1=True 0=False</b>
</div>
<?php include ("footer.php"); ?>