<div class='fbutton'><input type="button" value="<?php echo _("Clean"); ?> " class="small" id="clean_button" onclick="document.location.href='index.php?engine_id=<?php echo $engine_id; ?> '"/></div> <?php } ?> </form> </td> <?php if (Session::is_pro() && count($available_engines = $directive_editor->get_available_engines()) > 1) { ?> <td> <table align="right" class="transparent"> <tr> <td style="font-size:12px"><?php echo _("Select Engine"); ?> :</td> <td class="center nobborder" style="padding-left:5px"> <select name="engine_param" onchange="document.location.href='index.php?engine_id='+this.value" style="font-size:12px"> <?php foreach ($available_engines as $e_id => $e_name) { ?> <option value="<?php echo $e_id;
<td colspan="3"></td> </tr> <tr> <td colspan="3" align="center"><input type="button" value="<?php echo _('Close'); ?> " onclick="parent.GB_close()"/></td> </tr> </table> </body> </html> <?php $directive_editor = new Directive_editor($engine_id); $conf = $GLOBALS["CONF"]; if (Session::is_pro() && $conf->get_conf("alienvault_mssp", false) == "1" && count($available_engines = $directive_editor->get_available_engines()) > 1) { $engines = $available_engines; } else { $engines = array(_MAIN_PATH . "/{$engine_id}" => "Default"); } $errors = array(); foreach ($engines as $engine_dir => $engine_name) { $engine_id = preg_replace("/.*\\/([a-f0-9\\-]+)/", "\\1", $engine_dir); if (count($engines) > 1) { echo "<script type='text/javascript'>\$('#msg').html('{$engine_name}');</script>"; } $_errors = $directive_editor->test($engine_id); foreach ($_errors as $error) { $errors[] = $error; } }