This commit is contained in:
parent
5251f236e9
commit
2c6d232bba
1 changed files with 6 additions and 4 deletions
|
@ -502,10 +502,12 @@ function getActualReflector($logLines, $mode) {
|
||||||
function getActiveYSFReflectors() {
|
function getActiveYSFReflectors() {
|
||||||
$reflectorlist = Array();
|
$reflectorlist = Array();
|
||||||
$file = fopen(YSFHOSTSPATH."/".YSFHOSTSFILENAME, 'r');
|
$file = fopen(YSFHOSTSPATH."/".YSFHOSTSFILENAME, 'r');
|
||||||
while (($line = fgetcsv($file, 1000, ";")) !== FALSE) {
|
if ($file) {
|
||||||
//$line is an array of the csv elements
|
while (($line = fgetcsv($file, 1000, ";")) !== FALSE) {
|
||||||
// print_r($line);
|
//$line is an array of the csv elements
|
||||||
array_push($reflectorlist, array($line[1], $line[2], $line[0], $line[5]));
|
// print_r($line);
|
||||||
|
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