diff --git a/include/functions.php b/include/functions.php index d3eabde..4c894e3 100644 --- a/include/functions.php +++ b/include/functions.php @@ -499,6 +499,18 @@ function getActualReflector($logLines, $mode) { return "Reflector not linked"; } +function getActiveYSFReflectors() { + $reflectorlist = Array(); + $file = fopen(YSFHOSTSPATH."/".YSFHOSTSFILENAME, 'r'); + while (($line = fgetcsv($file, 1000, ";")) !== FALSE) { + //$line is an array of the csv elements +// print_r($line); + array_push($reflectorlist, array($line[1], $line[2], $line[0], $line[5])); + } + fclose($file); + return $reflectorlist; +} +/* function getActiveYSFReflectors($logLines) { // 00000000001111111111222222222233333333334444444444555555555566666666667777777777888888888899999999990000000000111111111122 // 01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901 @@ -528,7 +540,7 @@ function getActiveYSFReflectors($logLines) { array_multisort($reflectorlist); return $reflectorlist; } - +*/ function getYSFReflectorById($id, $reflectors) { if ($id ==-1) { return "not linked"; diff --git a/include/ysfgatewayinfo.php b/include/ysfgatewayinfo.php index fee6e85..8781ef7 100644 --- a/include/ysfgatewayinfo.php +++ b/include/ysfgatewayinfo.php @@ -20,7 +20,7 @@
Description | ID | Connections | -Last info of | add(new DateInterval('PT60M')); - if ($now->format('U') >= $timestamp2->format('U')) { - echo "
---|---|
$counter | "; - for ($i = 0; $i < 5; $i++) { + for ($i = 0; $i < 4; $i++) { echo"$reflector[$i] | "; } echo "