forked from Someguy123/-Coin
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdaemon.php
47 lines (47 loc) · 1.81 KB
/
daemon.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
<?php
$pageid = 2;
include ("header.php");
echo "<div class='content'>
<h2>Daemon Info</h2>";
?>
<table class="table-striped table-bordered table">
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<?php $nwinfo = $nmc->getnetworkinfo(); ?>
<?php $wainfo = $nmc->getwalletinfo(); ?>
<?php $bcinfo = $nmc->getblockchaininfo(); ?>
<?php $miinfo = $nmc->getmininginfo(); ?>
<?php $key = "version";
echo "<tr><td>".$key."</td><td>".$nwinfo[$key]."</td></tr>";
$key = "protocolversion";
echo "<tr><td>".$key."</td><td>".$nwinfo[$key]."</td></tr>";
$key = "walletversion";
echo "<tr><td>".$key."</td><td>".$wainfo[$key]."</td></tr>";
$key = "balance";
echo "<tr><td>".$key."</td><td>".$wainfo[$key]."</td></tr>";
$key = "paytxfee";
echo "<tr><td>".$key."</td><td>".$wainfo[$key]."</td></tr>";
$key = "relayfee";
echo "<tr><td>".$key."</td><td>".$nwinfo[$key]."</td></tr>";
$key = "blocks";
echo "<tr><td>".$key."</td><td>".$bcinfo[$key]."</td></tr>";
$key = "timeoffset";
echo "<tr><td>".$key."</td><td>".$nwinfo[$key]."</td></tr>";
$key = "connections";
echo "<tr><td>".$key."</td><td>".$nwinfo[$key]."</td></tr>";
$key = "difficulty";
echo "<tr><td>".$key."</td><td>".$bcinfo[$key]."</td></tr>";
$key = "warnings";
echo "<tr><td>".$key."</td><td>".$miinfo[$key]."</td></tr>";
?>
</tbody>
</table>
<?php
echo "</div>";
include ("footer.php");
?>