diff --git a/dashboard/pgs/class.reflector.php b/dashboard/pgs/class.reflector.php index bb4c848..4586cba 100755 --- a/dashboard/pgs/class.reflector.php +++ b/dashboard/pgs/class.reflector.php @@ -267,6 +267,7 @@ class xReflector { while (($z < count($this->Flagarray[$j]['DXCC'])) && (!$FoundFlag)) { if (trim($Prefix) == trim($this->Flagarray[$j]['DXCC'][$z])) { $Image = $this->Flagarray[$j]['ISO']; + $Name = $this->Flagarray[$j]['Country']; $FoundFlag = true; } $z++; @@ -275,7 +276,7 @@ class xReflector { } $Letters--; } - return strtolower($Image); + return array(strtolower($Image), $Name); } public function GetModules() { diff --git a/dashboard/pgs/repeaters.php b/dashboard/pgs/repeaters.php index ecf98dd..28a5e71 100755 --- a/dashboard/pgs/repeaters.php +++ b/dashboard/pgs/repeaters.php @@ -29,8 +29,9 @@ for ($i=0;$i<$Reflector->NodeCount();$i++) { '.($i+1).' '; - if (file_exists("./img/flags/".$Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign()).".png")) { - echo ''; + list ($Flag, $Name) = $Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign()); + if (file_exists("./img/flags/".$Flag.".png")) { + echo ''.$Name.''; } echo ' '; - if (file_exists("./img/flags/".$Reflector->GetFlag($Reflector->Stations[$i]->GetCallSign()).".png")) { - echo ''; + list ($Flag, $Name) = $Reflector->GetFlag($Reflector->Stations[$i]->GetCallSign()); + if (file_exists("./img/flags/".$Flag.".png")) { + echo ''.$Name.''; } echo ' '.$Reflector->Stations[$i]->GetCallsignOnly().'