[Mapbender-commits] r1580 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Aug 6 03:52:51 EDT 2007


Author: christoph
Date: 2007-08-06 03:52:51 -0400 (Mon, 06 Aug 2007)
New Revision: 1580

Modified:
   trunk/mapbender/http/classes/class_kml.php
Log:
replaced old string functions by multibyte string function


Modified: trunk/mapbender/http/classes/class_kml.php
===================================================================
--- trunk/mapbender/http/classes/class_kml.php	2007-08-06 07:52:14 UTC (rev 1579)
+++ trunk/mapbender/http/classes/class_kml.php	2007-08-06 07:52:51 UTC (rev 1580)
@@ -71,49 +71,49 @@
 		$cnt_styles = -1;
 		
 		foreach ($values as $element) {
-			if(strtoupper($element[tag]) == "KML" && $element[type] == "open"){
+			if(mb_strtoupper($element[tag]) == "KML" && $element[type] == "open"){
 				$section = "kml";
 			}
-			if ($section == "kml" && strtoupper($element[tag]) == "PLACEMARK" && $element[type] == "open") {
+			if ($section == "kml" && mb_strtoupper($element[tag]) == "PLACEMARK" && $element[type] == "open") {
 				$section = "placemark";
 			}
-			if ($section == "placemark" && strtoupper($element[tag]) == "DESCRIPTION" && $element[type] == "complete") {
+			if ($section == "placemark" && mb_strtoupper($element[tag]) == "DESCRIPTION" && $element[type] == "complete") {
 				$this->description = $element[value];
 			}
-			if ($section == "placemark" && strtoupper($element[tag]) == "NAME" && $element[type] == "complete") {
+			if ($section == "placemark" && mb_strtoupper($element[tag]) == "NAME" && $element[type] == "complete") {
 				$this->title = $element[value];
 			}
-			if ($section == "placemark" && strtoupper($element[tag]) == "LOOKAT" && $element[type] == "open") {
+			if ($section == "placemark" && mb_strtoupper($element[tag]) == "LOOKAT" && $element[type] == "open") {
 				$section = "lookat";
 			}
 			if ($section == "lookat") {
 				
-				if (strtoupper($element[tag]) == "RANGE" && $element[type] == "complete") {
+				if (mb_strtoupper($element[tag]) == "RANGE" && $element[type] == "complete") {
 					$this->lookAt_range = $element[value]; 
 				}
-				if (strtoupper($element[tag]) == "HEADING" && $element[type] == "complete") {
+				if (mb_strtoupper($element[tag]) == "HEADING" && $element[type] == "complete") {
 					$this->lookAt_heading = $element[value]; 
 				}
-				if (strtoupper($element[tag]) == "TILT" && $element[type] == "complete") {
+				if (mb_strtoupper($element[tag]) == "TILT" && $element[type] == "complete") {
 					$this->lookAt_tilt = $element[value]; 
 				}
 			}
-			if (strtoupper($element[tag]) == "STYLE" && $element[type] == "open") {
+			if (mb_strtoupper($element[tag]) == "STYLE" && $element[type] == "open") {
 				$section = "style";
 			}
-			if ($section == "style" && strtoupper($element[tag]) == "ICONSTYLE" && $element[type] == "open") {
+			if ($section == "style" && mb_strtoupper($element[tag]) == "ICONSTYLE" && $element[type] == "open") {
 				$section = "iconstyle";
 			}
-			if ($section == "iconstyle" && strtoupper($element[tag]) == "ICON" && $element[type] == "open") {
+			if ($section == "iconstyle" && mb_strtoupper($element[tag]) == "ICON" && $element[type] == "open") {
 				$section = "icon";
 			}
-			if ($section == "icon" && strtoupper($element[tag]) == "HREF" && $element[type] == "complete") {
+			if ($section == "icon" && mb_strtoupper($element[tag]) == "HREF" && $element[type] == "complete") {
 				$this->icon = $element[value];
 			}
-			if (strtoupper($element[tag]) == "POINT" && $element[type] == "open") {
+			if (mb_strtoupper($element[tag]) == "POINT" && $element[type] == "open") {
 				$section = "point";
 			}
-			if ($section == "point" && strtoupper($element[tag]) == "COORDINATES" && $element[type] == "complete") {
+			if ($section == "point" && mb_strtoupper($element[tag]) == "COORDINATES" && $element[type] == "complete") {
 				$array = explode(",", $element[value]);
 				$this->x = $array[0];
 				$this->y = $array[1];



More information about the Mapbender_commits mailing list