global_search = ''; } public function show() { global $config; require_once ($config["homedir"] . '/include/functions_graph.php'); $ui = Ui::getInstance(); $system = System::getInstance(); $ui->createPage(); if ($system->getRequest('hide_logout', 0)) { $left_button = null; } else { $left_button = $ui->createHeaderButton( array('icon' => 'back', 'pos' => 'left', 'text' => __('Logout'), 'href' => 'index.php?action=logout')); } $user_logged = ''; if (isset($config['id_user'])) { $user_logged = '' . $config['id_user'] . ''; } $ui->createHeader(__("Home"), $left_button, $user_logged); $ui->showFooter(false); $ui->beginContent(); $ui->beginForm("index.php?page=agents"); $options = array( 'name' => 'free_search', 'value' => $this->global_search, 'placeholder' => __('Global search') ); $ui->formAddInputSearch($options); $ui->endForm(); //List of buttons $options = array('icon' => 'tactical_view', 'pos' => 'right', 'text' => __('Tactical view'), 'href' => 'index.php?page=tactical'); $ui->contentAddHtml($ui->createButton($options)); $options = array('icon' => 'events', 'pos' => 'right', 'text' => __('Events'), 'href' => 'index.php?page=events'); $ui->contentAddHtml($ui->createButton($options)); $options = array('icon' => 'groups', 'pos' => 'right', 'text' => __('Groups'), 'href' => 'index.php?page=groups'); $ui->contentAddHtml($ui->createButton($options)); $options = array('icon' => 'alerts', 'pos' => 'right', 'text' => __('Alerts'), 'href' => 'index.php?page=alerts'); $ui->contentAddHtml($ui->createButton($options)); $options = array('icon' => 'agents', 'pos' => 'right', 'text' => __('Agents'), 'href' => 'index.php?page=agents'); $ui->contentAddHtml($ui->createButton($options)); $options = array('icon' => 'modules', 'pos' => 'right', 'text' => __('Modules'), 'href' => 'index.php?page=modules'); $ui->contentAddHtml($ui->createButton($options)); $options = array('icon' => 'network_maps', 'pos' => 'right', 'text' => __('Networkmaps'), 'href' => 'index.php?page=networkmaps'); $ui->contentAddHtml($ui->createButton($options)); $options = array('icon' => 'visual_console', 'pos' => 'right', 'text' => __('Visual consoles'), 'href' => 'index.php?page=visualmaps'); $ui->contentAddHtml($ui->createButton($options)); $ui->endContent(); $ui->showPage(); return; } } ?>