setError(ERR_WARNING, trim($oMLT->get("4","Invalid Context collection file"))); $bError = true; } } if ($name == "ONLINERESOURCE") { if (sizeof($attribs)) { while (list($k, $v) = each($attribs)) { $aContextCollection[$szLastTitle][$k] = $v; } } } } function endElement($parser, $name) { GLOBAL $aContextCollection, $szLastTitle, $bError, $bFirst; if ($bError) return; } function characterData($parser, $data) { GLOBAL $aContextCollection, $szLastTitle; $data = trim($data); if (strlen($data) > 0) $szLastTitle = $data; } // Check context collection if any if (isset($_SESSION['ContextCollection']) && $_SESSION['ContextCollection'] != "") { $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData"); if (!($fp = fopen($_SESSION['ContextCollection'], "r"))) { die("could not open XML input"); } while ($data = fread($fp, 4096)) { if (!xml_parse($xml_parser, $data, feof($fp))) { die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); } } xml_parser_free($xml_parser); } ?> <?php echo trim($oMLT->get("0", "Open Map Context")); ?>
 get("0", "Open Map Context")); ?>

get("1", "Please select the map context file on your computer to be uploaded, or provide a URL of a map context in the Internet.")); ?>

get("2", "Upload Map Context")); ?>:

get("3", "Map Context URL")); ?>:

get("5", "Map Context List")); ?>:
get("Ok", "Ok")), trim($oCommonMLT->get("OkTip", "Apply and Close")), array( "width" => 75) ); ?>    get("Cancel", "Cancel")), trim($oCommonMLT->get("CloseTip", "Close Dialog")), array( "width" => 75) ); ?>