2016-06-11 22:30:40 +02:00
|
|
|
<?php
|
|
|
|
?>
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<!-- Standard-Panel-Inhalt -->
|
|
|
|
<div class="panel-heading">YSFGateway-Infos</div>
|
|
|
|
<!-- Tabelle -->
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<td><span class="label <?php
|
|
|
|
if (isProcessRunning("YSFGateway")) {
|
|
|
|
echo "label-success";
|
|
|
|
?>">YSFGateway Process is running</span></td><?php
|
|
|
|
} else {
|
|
|
|
echo "label-danger\" title=\"YSFGateway is down!";
|
|
|
|
?>">YSFGateway Process is down!</span></td><?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<!-- Standard-Panel-Inhalt -->
|
2016-06-12 10:50:30 +02:00
|
|
|
<div class="panel-heading">YSFReflectors reported active last 2 hours</div>
|
2016-06-11 22:30:40 +02:00
|
|
|
<!-- Tabelle -->
|
|
|
|
<table class="table">
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$activeYSFReflectors = getActiveYSFReflectors($reverseLogLinesYSFGateway);
|
|
|
|
if (count($activeYSFReflectors) > 0) {
|
|
|
|
?>
|
|
|
|
<tr>
|
2016-06-12 10:50:30 +02:00
|
|
|
<th>No.</th>
|
2016-06-11 22:30:40 +02:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Connections</th>
|
|
|
|
<th>Last info of</th>
|
|
|
|
</tr>
|
|
|
|
<?php
|
2016-06-12 10:50:30 +02:00
|
|
|
$counter = 1;
|
2016-06-11 22:30:40 +02:00
|
|
|
foreach ($activeYSFReflectors as $reflector) {
|
|
|
|
echo "<tr>";
|
2016-06-12 10:50:30 +02:00
|
|
|
echo "<td>$counter</td>";
|
2016-06-11 22:30:40 +02:00
|
|
|
for ($i = 0; $i < 5; $i++) {
|
|
|
|
echo"<td>$reflector[$i]</td>";
|
|
|
|
}
|
|
|
|
echo "</tr>";
|
2016-06-12 10:50:30 +02:00
|
|
|
$counter++;
|
2016-06-11 22:30:40 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table>
|
|
|
|
</div>
|