<?phpdefined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );?><script type="text/javascript" src="ammap/swfobject.js"></script> <div id="flashcontent"> <strong>You need to upgrade your Flash Player</strong> </div> <script type="text/javascript"> var so = new SWFObject("ammap/ammap.swf", "ammap", "150", "100", "8", "#444444"); so.addVariable("path", "ammap/"); so.addVariable("settings_file", escape("ammap/ammap_settings.xml")); so.addVariable("data_file", escape("ammap/ammap_data.xml")); so.write("flashcontent"); </script>
<?xml version="1.0" encoding="UTF-8"?><settings> <developer_mode></developer_mode> <projection>mercator</projection> <width></width> <height></height> <font>Tahoma</font> <text_size>9</text_size> .... <background> <color></color> <alpha></alpha> <border_color></border_color> <border_alpha></border_alpha> ... </background> <zoom> <enabled>false</enabled> <locked></locked> ... </zoom> ...</settings>
<?php require_once($mainframe->getCfg('absolute_path').'/includes/domit/xml_domit_lite_include.php');$xmlDoc = new DOMIT_Lite_Document();$xmlDoc->resolveErrors(true);$rows = array();$q = 0;if ($xmlDoc->loadXML($this->xmlfile, false, true)) { $element = $xmlDoc->documentElement; if ($element->getTagName() == 'settings') { if ($element->hasChildNodes()) { $myChildNodes = $element->childNodes; $numChildren = $element->childCount; for ($i = 0; $i < $numChildren; $i++) { $currentNode = $myChildNodes[$i]; $childElement = $currentNode->getElementsByPath('width', 1); $rows[$q]['width'] = $childElement->getText(); //...... $q++; } } }}?>
<?php $data = 'xxxxx'; //contains the whole data of the new XML file$fmanager->writeFile($path_to_xml_file, $data);?>