This commit is contained in:
parent
5251f236e9
commit
2c6d232bba
1 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue