Correct issue with XLX000
This commit is contained in:
LX3JL 2016-02-18 19:50:03 +01:00
parent 16d0961e6c
commit db5976abe0
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
xlx db v2.1.2
- "index.php" bugfix to correct an error if XLX name is equal to XLX000
xlx db v2.1.1
- "peers.php" added hyperlink to the peers ip address

View File

@ -26,7 +26,7 @@ $Reflector = new xReflector();
$Reflector->SetFlagFile("./pgs/country.csv");
$ServiceName = substr($FILECONTENT, strpos($FILECONTENT, "<XLX")+4, 3);
if (intval($ServiceName) !== 0) {
if (is_numeric($ServiceName)) {
$LinkedPeersName = "XLX".$ServiceName." linked peers";
$LinkedNodesName = "XLX".$ServiceName." linked nodes";
$LinkedUsersName = "XLX".$ServiceName." heard users";
@ -80,7 +80,7 @@ for ($i=0;$i<count($tmpPeers);$i++) {
</head>
<body>
<div id="top"><img src="./img/header.jpg" alt="XLX Multiprotocol Gateway Reflector" style="margin-top:15px;" />
<br />&nbsp;XLX<?php echo $ServiceName; ?>&nbsp;v<?php echo $XML->GetElement($FILECONTENT, "Version"); ?>&nbsp;-&nbsp;Dashboard v2.1.1&nbsp;&nbsp;/&nbsp;&nbsp;Service uptime: <?php
<br />&nbsp;XLX<?php echo $ServiceName; ?>&nbsp;v<?php echo $XML->GetElement($FILECONTENT, "Version"); ?>&nbsp;-&nbsp;Dashboard v2.1.2&nbsp;&nbsp;/&nbsp;&nbsp;Service uptime: <?php
if (file_exists($PID) && is_readable($PID)) {
echo FormatSeconds(time()-filectime($PID));
}