diff --git a/dashboard2/pgs/class.reflector.php b/dashboard2/pgs/class.reflector.php index c4bdb94..0d52466 100644 --- a/dashboard2/pgs/class.reflector.php +++ b/dashboard2/pgs/class.reflector.php @@ -254,6 +254,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++; @@ -263,7 +264,7 @@ class xReflector { $Letters--; } - return strtolower($Image); + return array(strtolower($Image), $Name); } public function GetModules() { diff --git a/dashboard2/pgs/repeaters.php b/dashboard2/pgs/repeaters.php index 9a89a91..5bd6f12 100644 --- a/dashboard2/pgs/repeaters.php +++ b/dashboard2/pgs/repeaters.php @@ -25,8 +25,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 ' 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().'