// SAVE CURRENT if ($directive_id != "") { $directive_editor = new Directive_editor($engine_id); $filepath = $directive_editor->engine_path . "/" . $file; $dom = $directive_editor->get_xml($filepath, "DOMXML"); $directive = $directive_editor->getDirectiveFromXML($dom, $directive_id); $node = $directive->directive; $node->setAttribute('name', $name); $node->setAttribute('priority', $prio); $directive_editor->save_xml($filepath, $dom, "DOMXML"); $directive_editor->update_directive_pluginsid($directive_id, 2, $prio, $name); $directive_editor->update_directive_taxonomy($directive_id, $intent, $strategy, $method); $infolog = array($directive_id, 'updated'); Log_action::log(86, $infolog); } else { if ($directive_editor->directive_exists($name, $filepath)) { die(ossim_error(_("This directive name already exists"))); } // Get new ID $id = $directive_editor->new_directive_id($file); if ($id < 1) { echo ossim_error(_("Unable to create a new directive in ") . "<b>{$file}</b>"); } // Create a Node (Do not create yet, at rule finish) // ... } // Back to MAIN if (POST('mode') == "saveclose") { Util::memcacheFlush(); ?> <script type="text/javascript">