dg9vh 2016-10-01 08:36:49 +00:00
parent 5251f236e9
commit 2c6d232bba

View file

@ -502,11 +502,13 @@ function getActualReflector($logLines, $mode) {
function getActiveYSFReflectors() { function getActiveYSFReflectors() {
$reflectorlist = Array(); $reflectorlist = Array();
$file = fopen(YSFHOSTSPATH."/".YSFHOSTSFILENAME, 'r'); $file = fopen(YSFHOSTSPATH."/".YSFHOSTSFILENAME, 'r');
if ($file) {
while (($line = fgetcsv($file, 1000, ";")) !== FALSE) { while (($line = fgetcsv($file, 1000, ";")) !== FALSE) {
//$line is an array of the csv elements //$line is an array of the csv elements
// print_r($line); // print_r($line);
array_push($reflectorlist, array($line[1], $line[2], $line[0], $line[5])); array_push($reflectorlist, array($line[1], $line[2], $line[0], $line[5]));
} }
}
fclose($file); fclose($file);
return $reflectorlist; return $reflectorlist;
} }