1
0

setselfaddress

This commit is contained in:
2018-02-03 14:43:28 +01:00
parent fe5f066621
commit 0999209e5b
3 changed files with 38 additions and 16 deletions

View File

@@ -88,6 +88,24 @@ function dumpConsistency($c) {
<!------------------------------------------>
<div class="boxedcontent">
<div class="bc_header">Self IP Addr</div>
<?php
$ippath = __DIR__ . '/../dynamic/self_ip_address.auto.cfg';
$self_ip = file_exists($ippath) ? file_get_contents($ippath) : 'N/A';
$real_ip = get_client_ip();
$me = $real_ip == $self_ip
?>
<div class="bc_data keyvaluelist kvl_200">
<div><span>Registered IP:</span> <span><?php echo $self_ip; ?></span></div>
<div><span>Current IP:</span> <span><?php echo $real_ip; ?></span></div>
</div>
</div>
<!------------------------------------------>
<div class="boxedcontent">
<div class="bc_header">ExtendedGitGraph</div>