forked from Encrypt-S/navpi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetpeerinfo.php
More file actions
executable file
·32 lines (31 loc) · 848 Bytes
/
getpeerinfo.php
File metadata and controls
executable file
·32 lines (31 loc) · 848 Bytes
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
<?php
include ("header.php");
include ("pass.php");
$peerinfo = $coin->getpeerinfo();
$x = array_reverse($peerinfo);
?>
<p><b>Peer Info:</b></p>
<div class="panel panel-default">
<div class="table-responsive">
<?php
echo "<table class='table-hover table-condensed table-bordered table'>
<thead><tr><th>Address</th><th>Last Receive</th><th>Connection Time</th><th>Version</th><th>Sub-Version</th><th>Ban Score</th></tr></thead>";
foreach ($x as $x){
$conntime = date('M j y g:i a', $x['conntime']);
$recvtime = date('M j y g:i a', $x['lastrecv']);
$sendtime = date('M j y g:i a', $x['lastsend']);
echo "<tr>
<td>{$x['addr']}</td>
<td>{$recvtime}</td>
<td>{$conntime}</td>
<td>{$x['version']}</td>
<td>{$x['subver']}</td>
<td>{$x['banscore']}</td>
</tr>";
}
echo "</table>";
?>
</div>
</div>
</div>
<?php include ("footer.php");?>