document.location.href = '../conf/reload.php?what=policies&back=<?php echo urlencode($back); ?> '; } </script> </head> <body style="margin:0"> <br><table id="flextable" style="display:none"></table> <?php if (Web_indicator::is_on("Reload_policies")) { echo "<button class='button' onclick='apply_changes()'>" . _("Apply Changes") . "</button>"; } ?> <!-- Right Click Menu --> <ul id="myMenu" class="contextMenu" style="width:110px"> <li class="hostreport"><a href="#new" class="greybox" style="padding:3px"><img src="../pixmaps/tables/table_row_insert.png" align="absmiddle"/> <?php echo _("New Action"); ?> </a></li> <li class="hostreport"><a href="#modify" class="greybox" style="padding:3px"><img src="../pixmaps/tables/table_edit.png" align="absmiddle"/> <?php echo _("Modify"); ?> </a></li> <li class="hostreport"><a href="#delete" class="greybox" style="padding:3px"><img src="../pixmaps/tables/table_row_delete.png" align="absmiddle"/> <?php
?> ", "no": "<?php echo _('No'); ?> "} av_confirm(msg, opts).done(function() { document.location.href = '/ossim/conf/reload.php?what=plugins&back=<?php echo $back_url; ?> '; }); }); <?php if (Web_indicator::is_on("Reload_plugins")) { ?> $('#button_apply').show(); <?php } ?> $(document).on('dblclick', '.table_data tr', function(e) { $(this).disableTextSelect(); edit_sid(this); }); $('.table_data').dataTable(
if (Session::am_i_admin() && 1 == 2) { // Temporary hidden ?> <div class="fbutton" onclick="GB_show('User Contributed Directives', '/ossim/directives/editxml.php?engine_id=<?php echo $engine_id; ?> ', 600, '90%');"><div><span class="xml" style="padding-left:20px;font-size:12px"><b><?php echo _("Edit XML"); ?> </b></span></div></div> <div class="btnseparator"></div> <?php } ?> <div class="fbutton" onclick="restart_directives();"><div><span class="apply <?php echo Web_indicator::is_on("Reload_directives") ? "reload_red" : ""; ?> " style="padding-left:20px;font-size:12px"><b><?php echo _("Restart Server"); ?> </b></span></div></div> <div class="btnseparator"></div> <form method="post"> <input type="hidden" name="engine_id" id="engine_id" value="<?php echo $engine_id; ?> " /> <div class='fbutton'><span class='search_label'><?php echo "<b>" . _("Search") . "</b> " . _("a directive name");
{separator: true}, {name: '<?php echo _("Delete selected"); ?> ', bclass: 'delete', onpress : action}, {separator: true}, {name: '<?php echo _("Duplicate selected"); ?> ', bclass: 'duplicate', onpress : action}, {separator: true}, {name: '<?php echo _("Reload Policies"); ?> ', bclass: '<?php echo Web_indicator::is_on("Reload_policies") ? "reload_red" : "reload"; ?> ', onpress : action}, {separator: true}, {name: '<?php echo _("<b>Enable/Disable</b> policy"); ?> ', bclass: 'yesno', onpress : action} ], sortname: "<?php echo $sortname; ?> ", sortorder: "<?php echo $sortorder; ?>
exit; } @socket_close($socket); } // Switch off web indicator if ($what == 'all') { Web_indicator::set_off('Reload_policies'); Web_indicator::set_off('Reload_sensors'); Web_indicator::set_off('Reload_plugins'); Web_indicator::set_off('Reload_directives'); Web_indicator::set_off('Reload_servers'); } else { Web_indicator::set_off('Reload_' . $what); } // Reset main indicator if no more policy reload need if (!Web_indicator::is_on('Reload_policies') && !Web_indicator::is_on('Reload_sensors') && !Web_indicator::is_on('Reload_plugins') && !Web_indicator::is_on('Reload_directives') && !Web_indicator::is_on('Reload_servers')) { Web_indicator::set_off('ReloadPolicy'); } if ($what == 'tasks') { try { $frcon = new Frameworkd_socket(); $frcon->write("control action=\"refresh_inventory_task\"\n"); } catch (Exception $e) { $error = _('An error occurred while updating Agent cache...'); echo ossim_error($error); } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
}); </script> </head> <body style="margin:0"> <?php //Local menu include_once '../local_menu.php'; ?> <table id="flextable" style="display:none"></table> <?php if (Web_indicator::is_on("Reload_servers")) { echo "<button class='button' onclick='apply_changes()'>" . _("Apply Changes") . "</button>"; } ?> <?php if (Session::is_pro()) { ?> <div id='toggle_hierarchy' class='av_link'> <img src="../pixmaps/arrow_green.gif"/> <?php echo _("Server Hierarchy"); ?> </div>