2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
2006-07-17 10:17:58 +02:00
|
|
|
|
2008-07-30 20:39:40 +02:00
|
|
|
// Pandora FMS - the Flexible Monitoring System
|
|
|
|
// ============================================
|
|
|
|
// Copyright (c) 2008 Artica Soluciones Tecnológicas, http://www.artica.es
|
|
|
|
// Please see http://pandora.sourceforge.net for full contribution list
|
2007-03-12 18:58:52 +01:00
|
|
|
//
|
2006-07-17 10:17:58 +02:00
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
2007-03-12 18:58:52 +01:00
|
|
|
// as published by the Free Software Foundation; version 2
|
2006-07-17 10:17:58 +02:00
|
|
|
// 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.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2007-06-08 17:55:53 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if (comprueba_login ()) {
|
|
|
|
return;
|
|
|
|
}
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if ((! give_acl ($config['id_user'], 0, "LM")) && (! give_acl ($config['id_user'], 0, "AW")) && (! give_acl ($config['id_user'], 0, "PM")) && (! give_acl ($config['id_user'], 0, "DM")) && (! give_acl ($config['id_user'], 0, "UM"))) {
|
|
|
|
return;
|
|
|
|
}
|
2006-03-27 05:37:27 +02:00
|
|
|
?>
|
|
|
|
|
2008-06-26 Esteban Sanchez <estebans@artica.es>
* ajax.php: Sed id_user in config array.
* godmode/menu.php, general/header.php, operation/menu.php: Replaced
lang_label with lang_string().
* general/logon_ok.php: Reduced one indentation level.
* godmode/agentes/agent_manager.php: Replaced lang_label with
lang_string(). Use pandora functions.
* include/functions_html.php, godmode/agentes/configurar_agente.php:
Tab and blankspaces style correction.
* godmode/reporting/map_builder.php: Complete rewritten to provide an
intuitive way of build the maps. It's cool, useful and very simple.
* godmode/reporting/reporting_builder.php: Deleted an output debug.
* godmode/setup/setup.php: Rewritten to use pandora functions. Added a
colorpicker for color settings.
* include/config.php: Reset pandora password. We must solve things
with this file...
* include/functions.php: Check if input is an array on safe_input().
Use filename as id in array returned by list_files().
* include/functions_db.php: Renamed return_coordinate_* functions.
Style correction.
* include/javascript/jquery.js: Updated to 1.2.6.
* include/javascript/jquery.ui.datepicker.js: Code minimized.
* include/javascript/pandora.js: Style correction.
* include/javascript/wz_jsgraphics.js: Added a class to the elements
of a line, so it can be modified using javascript.
* /include/styles/pandora.css: Added style to some tables dropdowns.
Added new styles relative to visual map editor.
* operation/reporting/reporting_viewer.php: Style correction. Added
jQuery UI.
* operation/visual_console/index.php: Use Pandora functions.
* operation/visual_console/render_view.php: Drawing the map is now on
functions_visual_map.php. Added a countdown if a refresh time is set.
Use pandora functions. Style correction.
* reporting/fgraph.php: Style correction. Use graphic_error() if
there's no data on grafico_modulo_sparse().
* images/trash.png: Added to repository. Image used on trash area on
visual map editor.
* images/console/background/africa.jpg,
images/console/background/asia.jpg,
images/console/background/europe.jpg,
images/console/background/north_america.jpg,
images/console/background/oceania.jpg,
images/console/background/shouth_america.jpg,
images/console/background/world.jpg: Added to repository. Useful and
cool map backgrounds.
* include/functions_visual_map.php: Added to repository. Implements
visual map functions like drawing the map.
* include/javascript/jquery.colorpicker.js: Added to repository.
Implements a color picker widget.
* /include/javascript/jquery.countdown.js: Added to repository.
Implements a countdown widget.
* include/javascript/jquery.ui.core.js: Added to repository. jQuery UI
core.
* include/javascript/jquery.ui.draggable.js: Added to repository.
jQuery draggable plugin.
* include/javascript/jquery.ui.droppable.js: Added to repository.
jQuery droppable plugin.
* include/javascript/pandora_visual_console.js: Added to repository.
Function useful to visual map interface.
* include/languages/countdown_*.js: Added to repository. Countdown
localization.
* include/languages/date_es_la.js, include/languages/date_gl.js,
include/languages/time_es_la.js, include/languages/time_gl.js: Added
to repository. Missing localizations.
* include/styles/color-picker.css: Added to repository. Colorpicker
style sheet.
* include/styles/countdown.css: Added to repository. Countdown style
sheet.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@899 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-26 15:26:48 +02:00
|
|
|
<div class="tit bg3">:: <?php echo lang_string ("godmode_header") ?> ::</div>
|
2007-05-18 11:29:54 +02:00
|
|
|
<div class="menug" id="god">
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
<?php
|
|
|
|
if (give_acl ($config['id_user'], 0, "AW")) {
|
|
|
|
if ($sec2 == "godmode/agentes/modificar_agente" || $sec2 == "godmode/agentes/configurar_agente") {
|
|
|
|
echo '<div id="god1s">';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
echo '<div id="god1">';
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente" class="mn">'.lang_string ("manage_agents").'</a></li></ul></div>';
|
|
|
|
|
|
|
|
if ($sec == "gagente") {
|
|
|
|
if ($sec2 == "godmode/agentes/manage_config") {
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
} else {
|
|
|
|
echo "<div class='arrowg'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gagente&sec2=godmode/agentes/manage_config' class='mn'>".lang_string ("manage_config")."</a></li></ul></div>";
|
2006-06-27 13:34:05 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if ($sec2 == "godmode/agentes/manage_config_remote") {
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
} else {
|
|
|
|
echo "<div class='arrowg'>";
|
|
|
|
}
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gagente&sec2=godmode/agentes/manage_config_remote' class='mn'>".lang_string ("Duplicate config")."</a></li></ul></div>";
|
|
|
|
|
|
|
|
// Manage groups
|
|
|
|
if (give_acl($config['id_user'], 0, "PM")) {
|
|
|
|
if ($sec2 == "godmode/groups/group_list" || $sec2 == "godmode/groups/configure_group") {
|
2006-12-15 22:57:08 +01:00
|
|
|
echo "<div class='arrowgs'>";
|
2008-08-04 10:15:16 +02:00
|
|
|
} else {
|
2008-06-16 20:09:56 +02:00
|
|
|
echo "<div class='arrowg'>";
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gagente&sec2=godmode/groups/group_list' class='mn'>".lang_string ("manage_groups")."</a></li></ul></div>";
|
|
|
|
}
|
|
|
|
|
|
|
|
// Planned downtimes
|
|
|
|
if ((give_acl($config['id_user'], 0, "AW")==1)){
|
|
|
|
if ($sec2 == "godmode/agentes/planned_downtime" || $sec2 == "godmode/agentes/planned_downtime") {
|
2008-06-16 20:09:56 +02:00
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
else
|
2008-06-16 20:09:56 +02:00
|
|
|
echo "<div class='arrowg'>";
|
2008-08-04 10:15:16 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gagente&sec2=godmode/agentes/planned_downtime' class='mn'>".lang_string ("Scheduled downtime")."</a></li></ul></div>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if ((give_acl($config['id_user'], 0, "PM")==1)){
|
|
|
|
if ($sec == "gmodules")
|
|
|
|
echo '<div id="god_module_sel">';
|
|
|
|
else
|
|
|
|
echo '<div id="god_module">';
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gmodules&sec2=godmode/modules/module_list" class="mn">'.lang_string ("manage_modules").'</a></li></ul></div>';
|
2008-07-25 20:37:32 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if ($sec == "gmodules") {
|
|
|
|
if ($sec2 == "godmode/modules/manage_nc_groups" || $sec2 == "godmode/modules/manage_nc_groups_form")
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
else
|
|
|
|
echo "<div class='arrowg'>";
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups' class='mn'>".lang_string ("nc_groups")."</a></li></ul></div>";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($sec == "gmodules") {
|
|
|
|
if ($sec2 == "godmode/modules/manage_network_components" || $sec2 == "godmode/modules/manage_network_components_form")
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
else
|
|
|
|
echo "<div class='arrowg'>";
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components' class='mn'>".lang_string ("network_components")."</a></li></ul></div>";
|
|
|
|
}
|
|
|
|
// Network Profiles
|
|
|
|
if ($sec == "gmodules") {
|
|
|
|
if ($sec2 == "godmode/modules/manage_network_templates" || $sec2 == "godmode/modules/manage_network_templates_form")
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
else
|
|
|
|
echo "<div class='arrowg'>";
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates' class='mn'>".lang_string ("network_templates")."</a></li></ul></div>";
|
|
|
|
}
|
|
|
|
}
|
2008-07-25 20:37:32 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if (give_acl ($config['id_user'], 0, "LM")) {
|
|
|
|
if ($sec2 == "godmode/alerts/modify_alert" || $sec2 == "godmode/alerts/configure_alert") {
|
|
|
|
echo '<div id="god2s">';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
echo '<div id="god2">';
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=galertas&sec2=godmode/alerts/modify_alert" class="mn">'.lang_string ("manage_alerts").'</a></li></ul></div>';
|
|
|
|
}
|
2008-06-13 Sancho Lerena <slerena@gmail.com>
* index.php: Added pure (Fullscreen). HTML code cleanup and user session.
* pandoradb.sql: talert_snmp: Added priority field.
* pandoradb_data.sql: Changes default values in talerta. tconfig_os, tgrupo
and some links.
* header.php: Fixed some user session management.
* logon_ok.php: New design for welcome screen, odometer is over.
* menu.php, godmode/menu.php: Some ACL improvements.
* agent_disk_conf_editor.php: Minor fix in view link.
* configurar_agente.php, agent_manager.php: Added parent combo and better
ACL checks. New remote configuration control for get timestamp info of
config file.
* modify_alert.php: Changes to use new internal Mail alert.
* config.php: Some items moved to config_process. (font, attachment and
default style).
* functions.php: Added form_agent_combo(), form_event_type_combo(),
form_priority() and return_priority() functions.
* functions_db.php: Added smal_event_table() to render a variable table
with latest events (filtered).
* pandora.css. Added pure and priority colors.
* estado_alertas.php: Fixed ACL problems.
* stado_generalagente.php: Graph of modules now represents modules that
has generated events. Old graph is not used anymore. Also display parent.
* estado_grupo.php: Border of boxes is now thicker.
* tactical.php: New screen, almost all code changed. Odometer is not used
anymore, added some new items, like module LAG meter, module sanity, and
other general metrics.
* ver_agente.php: Now renders also event for each agent view. Alert manual
validation generate a new event.
* events.php: New event system. 90% new code. A LOT of new features,
including full screen, coloured (by priority) and filters by six fields.
* snmp_alert.php: Added support for alert priority.
* operation/users/user.php: No longer a user with UM privileges could
see any other user.
* render_view.php: Added fullscreen support for visual maps.
* fgraph.php: Added support for session checking in graphs (at least!).
New graphics for events (some changed it's function like events by group),
and feature added to progress GD implementation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-13 18:59:54 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if (give_acl ($config['id_user'], 0, "UM")) {
|
|
|
|
if ($sec2 == "godmode/users/user_list" || $sec2 == "godmode/users/configure_user") {
|
|
|
|
echo '<div id="god3s">';
|
|
|
|
}
|
|
|
|
else echo '<div id="god3">';
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gusuarios&sec2=godmode/users/user_list" class="mn">'.lang_string ("manage_users").'</a></li></ul></div>';
|
|
|
|
}
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
// Reporting
|
|
|
|
if (give_acl ($config['id_user'], 0, "PM")) {
|
|
|
|
echo '<div id="god51">';
|
|
|
|
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder" class="mn">'. lang_string ("manage_reporting").'</a></li></ul></div>';
|
|
|
|
|
|
|
|
// Custom report builder
|
|
|
|
if ($sec == "greporting") {
|
|
|
|
if ($sec2 == "godmode/reporting/reporting_builder") {
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
} else {
|
|
|
|
echo "<div class='arrowg'>";
|
2007-03-12 18:58:52 +01:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=greporting&sec2=godmode/reporting/reporting_builder' class='mn'>".lang_string ("report_builder")."</a></li></ul></div>";
|
2007-03-12 18:58:52 +01:00
|
|
|
}
|
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
// Custom graph builder
|
|
|
|
if ($sec == "greporting") {
|
|
|
|
if ($sec2 == "godmode/reporting/graph_builder"){
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
} else {
|
|
|
|
echo "<div class='arrowg'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=greporting&sec2=godmode/reporting/graph_builder' class='mn'>".lang_string ("graph_builder")."</a></li></ul></div>";
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
|
|
|
|
// Custom map builder
|
|
|
|
if ($sec == "greporting") {
|
|
|
|
if ($sec2 == "godmode/reporting/map_builder") {
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
} else {
|
|
|
|
echo "<div class='arrowg'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=greporting&sec2=godmode/reporting/map_builder' class='mn'>".lang_string ("map_builder")."</a></li></ul></div>";
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
2007-06-07 19:46:38 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
// Manage profiles
|
2007-06-08 17:55:53 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if (give_acl ($config['id_user'], 0, "PM")) {
|
|
|
|
if ($sec2 == "godmode/profiles/profile_list") {
|
|
|
|
echo '<div id="god4s">';
|
2007-06-07 19:46:38 +02:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
else echo '<div id="god4">';
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gperfiles&sec2=godmode/profiles/profile_list" class="mn">'.lang_string ("manage_profiles").'</a></li></ul></div>';
|
2007-06-07 19:46:38 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
// SERVERS
|
|
|
|
if ($sec2 == "godmode/servers/modificar_server"){
|
|
|
|
echo '<div id="god5s">';
|
|
|
|
} else
|
|
|
|
echo '<div id="god5">';
|
|
|
|
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gservers&sec2=godmode/servers/modificar_server" class="mn">'.lang_string ("manage_servers").'</a></li></ul></div>';
|
2007-06-07 19:46:38 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if ($sec == "gservers") {
|
|
|
|
if ($sec2 == "godmode/servers/manage_recontask"|| $sec2 == "godmode/servers/manage_recontask_form") {
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
} else
|
|
|
|
echo "<div class='arrowg'>";
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gservers&sec2=godmode/servers/manage_recontask' class='mn'>".lang_string ("manage_recontask")."</a></li></ul></div>";
|
|
|
|
}
|
|
|
|
if ($sec == "gservers") {
|
|
|
|
if ($sec2 == "godmode/servers/plugin") {
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
} else {
|
|
|
|
echo "<div class='arrowg'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2007-06-07 19:46:38 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gservers&sec2=godmode/servers/plugin' class='mn'>".lang_string("Manage plugins")."</a></li></ul></div>";
|
|
|
|
}
|
2007-06-07 19:46:38 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
// AUDIT
|
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
if ($sec2 == "godmode/admin_access_logs") {
|
|
|
|
echo '<div id="god6s">';
|
|
|
|
}
|
|
|
|
else echo '<div id="god6">';
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=glog&sec2=godmode/admin_access_logs" class="mn">'.lang_string ("system_audit").'</a></li></ul></div>';
|
|
|
|
|
|
|
|
// Main SETUP
|
|
|
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
if ($sec2 == "godmode/setup/setup") {
|
|
|
|
echo '<div id="god7s">';
|
|
|
|
}
|
|
|
|
else echo '<div id="god7">';
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gsetup&sec2=godmode/setup/setup" class="mn">'.lang_string ("setup_screen").'</a></li></ul></div>';
|
|
|
|
|
|
|
|
if ($sec == "gsetup") {
|
|
|
|
if ($sec2 == "godmode/setup/links") {
|
|
|
|
echo "<div class='arrowgs'>";
|
2007-03-19 20:39:40 +01:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
else echo "<div class='arrowg'>";
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gsetup&sec2=godmode/setup/links' class='mn'>".lang_string ("setup_links")."</a></li></ul></div>";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($sec == "gsetup"){
|
|
|
|
if ($sec2 == "godmode/setup/news") {
|
|
|
|
echo "<div class='arrowgs'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
else echo "<div class='arrowg'>";
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gsetup&sec2=godmode/setup/news' class='mn'>".lang_string ("site_news")."</a></li></ul></div>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (give_acl ($config['id_user'], 0, "DM")) {
|
|
|
|
if ($sec2 == "godmode/db/db_main") {
|
|
|
|
echo '<div id="god8s">';
|
|
|
|
} else
|
|
|
|
echo '<div id="god8">';
|
|
|
|
echo '<ul class="mn">';
|
|
|
|
if ($sec == "gdbman" && $sec2 != "godmode/db/db_main") {
|
|
|
|
echo '<li>';
|
|
|
|
} else {
|
|
|
|
echo '<li class="bb0">';
|
|
|
|
}
|
|
|
|
echo '<a href="index.php?sec=gdbman&sec2=godmode/db/db_main" class="mn">'.lang_string ("db_maintenance").'</a></li></ul></div>';
|
|
|
|
|
|
|
|
if ($sec == "gdbman") {
|
|
|
|
if ($sec2 == "godmode/db/db_info" || $sec2 == "godmode/db/db_info_data") {
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
} else {
|
|
|
|
echo "<div class='arrowg'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&sec2=godmode/db/db_info' class='mn'>".lang_string ("db_info")."</a></li></ul></div>";
|
2006-04-25 11:41:25 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if ($sec2 == "godmode/db/db_purge") {
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
} else {
|
|
|
|
echo "<div class='arrowg'>";
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&sec2=godmode/db/db_purge' class='mn'>".lang_string ("db_purge")."</a></li></ul></div>";
|
2007-06-08 17:55:53 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if ($sec2 == "godmode/db/db_refine") {
|
|
|
|
echo "<div class='arrowgs'>";
|
2007-06-13 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,
include/god.css: Updated with styles to avoid top and bottom border.
* godmode/groups/group_list.php, godmode/users/*.php, operation/users/*.php,
godmode/servers/*.php, operation/snmpconsole/snmp_alert.php,
godmode/reporting/map_builder.php, operation/messages/message.php:
Removed old raya style and changed to new style.
* include/languages/language_en.php: Changed some typing error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-13 21:14:05 +02:00
|
|
|
} else {
|
2008-08-04 10:15:16 +02:00
|
|
|
echo "<div class='arrowg'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&sec2=godmode/db/db_refine' class='mn'>".lang_string ("db_refine")."</a></li></ul></div>";
|
2007-06-13 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,
include/god.css: Updated with styles to avoid top and bottom border.
* godmode/groups/group_list.php, godmode/users/*.php, operation/users/*.php,
godmode/servers/*.php, operation/snmpconsole/snmp_alert.php,
godmode/reporting/map_builder.php, operation/messages/message.php:
Removed old raya style and changed to new style.
* include/languages/language_en.php: Changed some typing error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-13 21:14:05 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if ($sec2 == "godmode/db/db_audit") {
|
|
|
|
echo "<div class='arrowgs'>";
|
|
|
|
} else {
|
|
|
|
echo "<div class='arrowg'>";
|
|
|
|
}
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&sec2=godmode/db/db_audit' class='mn'>".lang_string ("db_audit")."</a></li></ul></div>";
|
2007-06-13 Raul Mateos <raulofpandora@gmail.com>
* godmode/menu.php, operation/menu.php, include/pandora.css, include/op.css,
include/god.css: Updated with styles to avoid top and bottom border.
* godmode/groups/group_list.php, godmode/users/*.php, operation/users/*.php,
godmode/servers/*.php, operation/snmpconsole/snmp_alert.php,
godmode/reporting/map_builder.php, operation/messages/message.php:
Removed old raya style and changed to new style.
* include/languages/language_en.php: Changed some typing error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@509 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-13 21:14:05 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if ($sec2 == "godmode/db/db_event") {
|
|
|
|
echo "<div id='arrowgls'>";
|
|
|
|
} else {
|
|
|
|
echo "<div id='arrowgl'>";
|
|
|
|
}
|
|
|
|
echo "<ul class='mn'><li class='bb0'><a href='index.php?sec=gdbman&sec2=godmode/db/db_event' class='mn'>".lang_string ("db_event")."</a></li></ul></div>";
|
2008-06-19 02:24:05 +02:00
|
|
|
|
2008-08-04 10:15:16 +02:00
|
|
|
if ($sec2 == "godmode/db/db_sanity") {
|
|
|
|
echo "<div id='arrowgls'>";
|
|
|
|
} else {
|
|
|
|
echo "<div id='arrowgl'>";
|
|
|
|
}
|
|
|
|
echo "<ul class='mn'><li class='bb0'><a href='index.php?sec=gdbman&sec2=godmode/db/db_sanity' class='mn'>".lang_string ("Database sanity")."</a></li></ul></div>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (sizeof ($config['extensions'])) {
|
|
|
|
if ($sec == "gextensions") {
|
|
|
|
$selected = ' menu-selected';
|
|
|
|
} else {
|
|
|
|
$selected = '';
|
|
|
|
}
|
|
|
|
echo '<div id="op-extensions" class="operation-menu'.$selected.'">';
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gextensions&sec2=godmode/extensions" class="mn">';
|
|
|
|
echo lang_string ('Extensions');
|
|
|
|
echo '</a></li></ul>';
|
|
|
|
echo "</div>";
|
|
|
|
if ($selected != '') {
|
|
|
|
foreach ($config['extensions'] as $extension) {
|
|
|
|
if ($extension['godmode_menu'] == '')
|
|
|
|
continue;
|
|
|
|
$menu = $extension['godmode_menu'];
|
|
|
|
if (! give_acl ($config['id_user'], 0, $menu['acl']))
|
|
|
|
continue;
|
|
|
|
if ($sec2 == $menu['sec2']) {
|
|
|
|
echo '<div class="operation-submenu submenu-selected">';
|
|
|
|
} else {
|
|
|
|
echo '<div class="operation-submenu">';
|
|
|
|
}
|
|
|
|
echo '<ul class="mn"><li>';
|
|
|
|
echo '<a href="index.php?sec=gextensions&sec2='.$menu['sec2'].'" class="mn">'.$menu['name'];
|
|
|
|
echo '</a></li></ul></div>';
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
echo '</div>';
|
2007-04-21 18:14:11 +02:00
|
|
|
?>
|