Ejemplo n.º 1
0
					continuousScanning: 500,
					height: "500px",
					content: $('#data').val(),
					lineNumbers: true
				});
			});
		</script>
	</head>
	<body><br>
	<?php 
if (!$withoutmenu) {
    include "../hmenu.php";
}
if (file_exists($xml_file) && $code != "") {
    $xml_obj = new xml("_key");
    $xml_obj->load_string($code);
    if ($xml_obj->errors['status'] == false) {
        echo "<div class='oss_error' style='padding-left:70px;width:90%'>" . _("Format not allowed") . ": " . implode("", $xml_obj->errors['msg']) . "</div>";
    } else {
        // save without errors
        copy($xml_file, $xml_file . "-old");
        file_put_contents($xml_file, $code);
    }
}
?>
	
	<form action="editxml.php" method="post" id="fo" onsubmit="$('#data').val(editor.getCode())">
	<table width="100%"><tr>
		<td style="text-align:left;padding-bottom:4px"><span style="color:gray"><?php 
echo _("Editing directives file") . ": <b>{$xml_file}</b>";
?>