2013-04-10 09:57:54 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
|
|
|
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
|
|
|
|
// Please see http://pandorafms.org for full contribution list
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
|
|
|
// as published by the Free Software Foundation; version 2
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
global $config;
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
$searchModules = check_acl($config['id_user'], 0, 'AR');
|
|
|
|
$searchAgents = check_acl($config['id_user'], 0, 'AR');
|
|
|
|
$searchAlerts = check_acl($config['id_user'], 0, 'AR');
|
|
|
|
$searchGraphs = check_acl($config['id_user'], 0, 'RR');
|
|
|
|
$searchMaps = check_acl($config['id_user'], 0, 'RR');
|
|
|
|
$searchReports = check_acl($config['id_user'], 0, 'RR');
|
|
|
|
$searchUsers = check_acl($config['id_user'], 0, 'UM');
|
2014-08-18 16:50:07 +02:00
|
|
|
$searchHelps = true;
|
2013-04-10 09:57:54 +02:00
|
|
|
|
|
|
|
echo '<br><div style="margin:auto; width:90%; padding: 10px; background: #fff">';
|
|
|
|
|
|
|
|
$anyfound = false;
|
|
|
|
|
2015-05-25 13:31:10 +02:00
|
|
|
$table = new stdClass();
|
2013-05-14 11:33:13 +02:00
|
|
|
$table->id = 'summary';
|
|
|
|
$table->width = '98%';
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
$table->style = [];
|
2013-05-14 11:33:13 +02:00
|
|
|
$table->style[0] = 'font-weight: bold; text-align: center;';
|
|
|
|
$table->style[1] = 'font-weight: bold; text-align: center;';
|
|
|
|
$table->style[2] = 'font-weight: bold; text-align: center;';
|
|
|
|
$table->style[3] = 'font-weight: bold; text-align: center;';
|
|
|
|
$table->style[4] = 'font-weight: bold; text-align: center;';
|
|
|
|
$table->style[5] = 'font-weight: bold; text-align: center;';
|
|
|
|
$table->style[6] = 'font-weight: bold; text-align: center;';
|
|
|
|
$table->style[7] = 'font-weight: bold; text-align: center;';
|
|
|
|
$table->style[8] = 'font-weight: bold; text-align: center;';
|
|
|
|
$table->style[9] = 'font-weight: bold; text-align: center;';
|
|
|
|
$table->style[10] = 'font-weight: bold; text-align: center;';
|
|
|
|
$table->style[11] = 'font-weight: bold; text-align: center;';
|
2014-07-31 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_networkmap.php, include/functions_graph.php,
include/db/postgresql.php, include/db/oracle.php,
include/functions_api.php, extensions/agents_alerts.php,
operation/search_main.php, operation/search_agents.getdata.php,
operation/agentes/status_monitor.php,
operation/agentes/networkmap.topology.php,
operation/agentes/ver_agente.php,
operation/search_modules.getdata.php, operation/search_results.php,
operation/events/events_list.php,
godmode/alerts/alert_list.builder.php,
godmode/alerts/configure_alert_template.php,
godmode/modules/manage_network_components_form.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php: tiny fixes for the improve the
support of postgreSQL databases.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10368 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-07-31 16:27:43 +02:00
|
|
|
$table->style[13] = 'font-weight: bold; text-align: center;';
|
2014-08-18 16:50:07 +02:00
|
|
|
$table->style[15] = 'font-weight: bold; text-align: center;';
|
2013-05-14 11:33:13 +02:00
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
$table->data[0][0] = html_print_image('images/agent.png', true, ['title' => __('Agents found')]);
|
|
|
|
$table->data[0][1] = "<a href='index.php?search_category=agents&keywords=".$config['search_keywords']."&head_search_keywords=Search'>".sprintf(__('%s Found'), $totalAgents).'</a>';
|
|
|
|
$table->data[0][2] = html_print_image('images/module.png', true, ['title' => __('Modules found')]);
|
|
|
|
$table->data[0][3] = "<a href='index.php?search_category=modules&keywords=".$config['search_keywords']."&head_search_keywords=Search'>".sprintf(__('%s Found'), $totalModules).'</a>';
|
2016-01-18 12:40:51 +01:00
|
|
|
|
|
|
|
// ------------------- DISABLED FOR SOME INSTALLATIONS------------------
|
2019-01-30 16:18:44 +01:00
|
|
|
// ~ $table->data[0][4] = html_print_image ("images/bell.png", true, array ("title" => __('Alerts found')));
|
|
|
|
// ~ $table->data[0][5] = "<a href='index.php?search_category=alerts&keywords=" . $config['search_keywords'] . "&head_search_keywords=Search'>" .
|
|
|
|
// ~ sprintf(__("%s Found"), $totalAlerts) . "</a>";
|
2016-01-18 12:40:51 +01:00
|
|
|
// ---------------------------------------------------------------------
|
2019-01-30 16:18:44 +01:00
|
|
|
$table->data[0][6] = html_print_image('images/input_user.png', true, ['title' => __('Users found')]);
|
|
|
|
$table->data[0][7] = "<a href='index.php?search_category=users&keywords=".$config['search_keywords']."&head_search_keywords=Search'>".sprintf(__('%s Found'), $totalUsers).'</a>';
|
|
|
|
$table->data[0][8] = html_print_image('images/chart_curve.png', true, ['title' => __('Graphs found')]);
|
|
|
|
$table->data[0][9] = "<a href='index.php?search_category=graphs&keywords=".$config['search_keywords']."&head_search_keywords=Search'>".sprintf(__('%s Found'), $totalGraphs).'</a>';
|
|
|
|
$table->data[0][10] = html_print_image('images/reporting.png', true, ['title' => __('Reports found')]);
|
|
|
|
$table->data[0][11] = "<a href='index.php?search_category=reports&keywords=".$config['search_keywords']."&head_search_keywords=Search'>".sprintf(__('%s Found'), $totalReports).'</a>';
|
|
|
|
$table->data[0][12] = html_print_image('images/visual_console_green.png', true, ['title' => __('Maps found')]);
|
|
|
|
$table->data[0][13] = "<a href='index.php?search_category=maps&keywords=".$config['search_keywords']."&head_search_keywords=Search'>".sprintf(__('%s Found'), $totalMaps).'</a>';
|
|
|
|
$table->data[0][14] = html_print_image('images/help.png', true, ['title' => __('Helps found')]);
|
|
|
|
$table->data[0][15] = "<a href='index.php?search_category=helps&keywords=".$config['search_keywords']."&head_search_keywords=Search'>".sprintf(__('%s Found'), $totalHelps).'</a>';
|
2013-05-14 11:33:13 +02:00
|
|
|
|
|
|
|
html_print_table($table);
|
2013-04-10 09:57:54 +02:00
|
|
|
|
2013-05-14 11:33:13 +02:00
|
|
|
if ($searchAgents && $totalAgents > 0) {
|
2019-01-30 16:18:44 +01:00
|
|
|
echo $list_agents;
|
|
|
|
|
|
|
|
echo "<a href='index.php?search_category=agents&keywords=".$config['search_keywords']."&head_search_keywords=Search'>".sprintf(
|
|
|
|
__('Show %s of %s. View all matches'),
|
|
|
|
$count_agents_main,
|
|
|
|
$totalAgents
|
|
|
|
).'</a>';
|
2013-04-10 09:57:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
echo '</div>';
|