$msg] ); } /** * Checks if target method is available to be called using AJAX. * * @param string $method Target method. * * @return boolean True allowed, false not. */ public function ajaxMethod($method) { global $config; // Check access. check_login(); return in_array($method, $this->AJAXMethods); } /** * Constructor. * * @param boolean $must_run Must run or not. * @param string $ajax_controller Controller. * * @return object * @throws Exception On error. */ public function __construct( $ajax_controller='include/ajax/order_interpreter' ) { $this->ajaxController = $ajax_controller; $this->pages_name = [ 0 => __('Tactical View'), 1 => __('Agent Management'), 2 => __('List Alerts'), 3 => __('Manage Policies'), ]; $this->pages_url = [ 0 => ui_get_full_url( 'index.php?sec=view&sec2=operation/agentes/tactical' ), 1 => ui_get_full_url( 'index.php?sec=gagente&sec2=godmode/agentes/modificar_agente' ), 2 => ui_get_full_url( 'index.php?sec=galertas&sec2=godmode/alerts/alert_list' ), 3 => ui_get_full_url( 'index.php?sec=gmodules&sec2=enterprise/godmode/policies/policies' ), ]; } /** * Method to print order interpreted on header search input. * * @return void */ public function getResult() { // Take value from input search. $text = get_parameter('text', ''); $array_found = []; if ($text !== '') { echo '
'; echo '