global_search = ''; } public function show() { global $config; require_once ($config["homedir"] . '/include/functions_graph.php'); $ui = Ui::getInstance(); $ui->createPage(); $ui->createDefaultHeader(__("PandoraFMS: Home")); $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' => 'gear', 'pos' => 'right', 'text' => __('Tactical'), 'href' => 'index.php?page=tactical'); $ui->contentAddHtml($ui->createButton($options)); $options = array('icon' => 'info', 'pos' => 'right', 'text' => __('Events'), 'href' => 'index.php?page=events'); $ui->contentAddHtml($ui->createButton($options)); $options = array('icon' => 'arrow-u', 'pos' => 'right', 'text' => __('Groups'), 'href' => 'index.php?page=groups'); $ui->contentAddHtml($ui->createButton($options)); $options = array('icon' => 'alert', 'pos' => 'right', 'text' => __('Alerts'), 'href' => 'index.php?page=alerts'); $ui->contentAddHtml($ui->createButton($options)); $options = array('icon' => 'grid', 'pos' => 'right', 'text' => __('Agents'), 'href' => 'index.php?page=agents'); $ui->contentAddHtml($ui->createButton($options)); $options = array('icon' => 'check', 'pos' => 'right', 'text' => __('Modules'), 'href' => 'index.php?page=modules'); $ui->contentAddHtml($ui->createButton($options)); $ui->endContent(); $ui->showPage(); return; } } ?>