2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
2006-07-17 10:17:58 +02:00
|
|
|
|
2007-03-12 18:58:52 +01:00
|
|
|
// Pandora FMS - the Free monitoring system
|
|
|
|
// ========================================
|
|
|
|
// Copyright (c) 2004-2007 Sancho Lerena, slerena@gmail.com
|
|
|
|
// Main PHP/SQL code development and project architecture and management
|
|
|
|
// Copyright (c) 2004-2007 Raul Mateos Martin, raulofpandora@gmail.com
|
|
|
|
// CSS and some PHP additions
|
|
|
|
// Copyright (c) 2006-2007 Jonathan Barajas, jonathan.barajas[AT]gmail[DOT]com
|
|
|
|
// Javascript Active Console code.
|
|
|
|
// Copyright (c) 2006 Jose Navarro <contacto@indiseg.net>
|
|
|
|
// Additions to Pandora FMS 1.2 graph code and new XML reporting template management
|
|
|
|
// Copyright (c) 2005-2007 Artica Soluciones Tecnologicas, info@artica.es
|
|
|
|
//
|
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.
|
2006-03-27 05:37:27 +02:00
|
|
|
if (comprueba_login() == 0){
|
|
|
|
$id_user = $_SESSION["id_usuario"];
|
|
|
|
if ( (give_acl($id_user, 0, "LM")==1) OR (give_acl($id_user, 0, "AW")==1 ) OR (give_acl($id_user, 0, "PM")==1) OR (give_acl($id_user, 0, "DM")==1) OR (give_acl($id_user, 0, "UM")==1 )){
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2007-05-07 17:32:03 +02:00
|
|
|
<div class="tit bg3">:: <?php echo $lang_label["godmode_header"] ?> ::</div>
|
2007-05-18 11:29:54 +02:00
|
|
|
<div class="menug" id="god">
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2007-03-12 18:58:52 +01:00
|
|
|
<?PHP
|
2006-03-27 05:37:27 +02:00
|
|
|
if ((give_acl($id_user, 0, "AW")==1)){
|
2006-05-30 20:32:36 +02:00
|
|
|
if (isset($_GET["sec2"]) && ($_GET["sec2"] == "godmode/agentes/modificar_agente" || $_GET["sec2"] == "godmode/agentes/configurar_agente")){
|
2006-06-27 13:34:05 +02:00
|
|
|
echo '<div id="god1s">';
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2007-03-12 18:58:52 +01:00
|
|
|
else
|
|
|
|
echo '<div id="god1">';
|
2006-06-27 13:34:05 +02:00
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente" class="mn">'.$lang_label["manage_agents"].'</a></li></ul></div>';
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "gagente"){
|
2006-05-19 18:43:19 +02:00
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/agentes/manage_config"){
|
2006-12-15 22:57:08 +01:00
|
|
|
echo "<div class='arrowgs'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-12-15 22:57:08 +01:00
|
|
|
else echo "<div class='arrowg'>";
|
2006-06-27 13:34:05 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gagente&sec2=godmode/agentes/manage_config' class='mn'>".$lang_label["manage_config"]."</a></li></ul></div>";
|
|
|
|
|
2007-05-27 04:55:55 +02:00
|
|
|
if (isset($_GET["sec2"]) && ($_GET["sec2"] == "godmode/groups/group_list" || $_GET["sec2"] == "godmode/groups/configure_group")){
|
2006-12-15 22:57:08 +01:00
|
|
|
echo "<div class='arrowgs'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2007-03-12 18:58:52 +01:00
|
|
|
else
|
|
|
|
echo "<div class='arrowg'>";
|
2007-05-27 04:55:55 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gagente&sec2=godmode/groups/group_list' class='mn'>".$lang_label["manage_groups"]."</a></li></ul></div>";
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
|
|
|
}
|
2007-03-12 18:58:52 +01:00
|
|
|
|
|
|
|
if ((give_acl($id_user, 0, "AW")==1)){
|
|
|
|
if (isset($_GET["sec"]) && ($_GET["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_label["manage_modules"].'</a></li></ul></div>';
|
|
|
|
|
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "gmodules"){
|
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/modules/manage_nc_groups")
|
|
|
|
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_label["nc_groups"]."</a></li></ul></div>";
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "gmodules"){
|
2007-04-11 05:12:48 +02:00
|
|
|
if (isset($_GET["sec2"]) && ( $_GET["sec2"] == "godmode/modules/manage_network_components" || $_GET["sec2"] == "godmode/modules/manage_network_components_form") )
|
2007-03-12 18:58:52 +01:00
|
|
|
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_label["network_components"]."</a></li></ul></div>";
|
|
|
|
}
|
|
|
|
// Network Profiles
|
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "gmodules"){
|
2007-04-21 18:14:11 +02:00
|
|
|
if (isset($_GET["sec2"]) && ($_GET["sec2"] == "godmode/modules/manage_network_templates" || $_GET["sec2"] == "godmode/modules/manage_network_templates_form" ))
|
2007-03-12 18:58:52 +01:00
|
|
|
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_label["network_templates"]."</a></li></ul></div>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
if ((give_acl($id_user, 0, "LM")==1)){
|
2007-05-27 04:55:55 +02:00
|
|
|
if (isset($_GET["sec2"]) && ($_GET["sec2"] == "godmode/alerts/modify_alert" || $_GET["sec2"] == "godmode/alerts/configure_alert")){
|
2006-06-27 13:34:05 +02:00
|
|
|
echo '<div id="god2s">';
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
else echo '<div id="god2">';
|
2007-05-27 04:55:55 +02:00
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=galertas&sec2=godmode/alerts/modify_alert" class="mn">'.$lang_label["manage_alerts"].'</a></li></ul></div>';
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
|
|
|
if ((give_acl($id_user, 0, "UM")==1)){
|
2007-05-27 04:55:55 +02:00
|
|
|
if (isset($_GET["sec2"]) && ($_GET["sec2"] == "godmode/users/user_list" || $_GET["sec2"] == "godmode/users/configure_user")){
|
2006-06-27 13:34:05 +02:00
|
|
|
echo '<div id="god3s">';
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
else echo '<div id="god3">';
|
2007-05-27 04:55:55 +02:00
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gusuarios&sec2=godmode/users/user_list" class="mn">'.$lang_label["manage_users"].'</a></li></ul></div>';
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
|
|
|
if ( (give_acl($id_user, 0, "PM")==1)){
|
2007-05-27 04:55:55 +02:00
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/profiles/profile_list"){
|
2006-06-27 13:34:05 +02:00
|
|
|
echo '<div id="god4s">';
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
else echo '<div id="god4">';
|
2007-05-27 04:55:55 +02:00
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gperfiles&sec2=godmode/profiles/profile_list" class="mn">'.$lang_label["manage_profiles"].'</a></li></ul></div>';
|
2006-06-27 13:34:05 +02:00
|
|
|
|
2006-05-19 18:43:19 +02:00
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/servers/modificar_server"){
|
2006-06-27 13:34:05 +02:00
|
|
|
echo '<div id="god5s">';
|
2007-03-19 20:39:40 +01:00
|
|
|
} else
|
|
|
|
echo '<div id="god5">';
|
|
|
|
|
2006-06-27 13:34:05 +02:00
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gservers&sec2=godmode/servers/modificar_server" class="mn">'.$lang_label["manage_servers"].'</a></li></ul></div>';
|
2007-03-19 20:39:40 +01:00
|
|
|
|
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "gservers"){
|
2007-05-27 04:55:55 +02:00
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/servers/manage_recontask"|| $_GET["sec2"] == "godmode/servers/manage_recontask_form"){
|
2007-03-19 20:39:40 +01:00
|
|
|
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_label["manage_recontask"]."</a></li></ul></div>";
|
|
|
|
}
|
2007-05-27 04:55:55 +02:00
|
|
|
|
2006-06-27 13:34:05 +02:00
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/admin_access_logs"){
|
|
|
|
echo '<div id="god6s">';
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
else echo '<div id="god6">';
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=glog&sec2=godmode/admin_access_logs" class="mn">'.$lang_label["system_audit"].'</a></li></ul></div>';
|
|
|
|
|
2006-05-19 18:43:19 +02:00
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/setup/setup"){
|
2006-06-27 13:34:05 +02:00
|
|
|
echo '<div id="god7s">';
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
else echo '<div id="god7">';
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gsetup&sec2=godmode/setup/setup" class="mn">'.$lang_label["setup_screen"].'</a></li></ul></div>';
|
2006-04-25 11:41:25 +02:00
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "gsetup"){
|
2006-05-19 18:43:19 +02:00
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/setup/links"){
|
2006-12-15 22:57:08 +01:00
|
|
|
echo "<div class='arrowgs'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-12-15 22:57:08 +01:00
|
|
|
else echo "<div class='arrowg'>";
|
2006-06-27 13:34:05 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gsetup&sec2=godmode/setup/links' class='mn'>".$lang_label["setup_links"]."</a></li></ul></div>";
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if ((give_acl($id_user, 0, "DM")==1)){
|
2006-05-19 18:43:19 +02:00
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/db/db_main"){
|
2006-06-27 13:34:05 +02:00
|
|
|
echo '<div id="god8s">';
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
else echo '<div id="god8">';
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=gdbman&sec2=godmode/db/db_main" class="mn">'.$lang_label["db_maintenance"].'</a></li></ul></div>';
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "gdbman"){
|
2006-06-26 12:59:06 +02:00
|
|
|
if (isset($_GET["sec2"]) && ($_GET["sec2"] == "godmode/db/db_info" || $_GET["sec2"] == "godmode/db/db_info_data")){
|
2006-12-15 22:57:08 +01:00
|
|
|
echo "<div class='arrowgs'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-12-15 22:57:08 +01:00
|
|
|
else echo "<div class='arrowg'>";
|
2006-06-27 13:34:05 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&sec2=godmode/db/db_info' class='mn'>".$lang_label["db_info"]."</a></li></ul></div>";
|
|
|
|
|
2006-05-19 18:43:19 +02:00
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/db/db_purge"){
|
2006-12-15 22:57:08 +01:00
|
|
|
echo "<div class='arrowg'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-12-15 22:57:08 +01:00
|
|
|
else echo "<div class='arrowg'>";
|
2006-06-27 13:34:05 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&sec2=godmode/db/db_purge' class='mn'>".$lang_label["db_purge"]."</a></li></ul></div>";
|
|
|
|
|
2006-05-19 18:43:19 +02:00
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/db/db_refine"){
|
2006-12-15 22:57:08 +01:00
|
|
|
echo "<div class='arrowgs'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-12-15 22:57:08 +01:00
|
|
|
else echo "<div class='arrowg'>";
|
2006-06-27 13:34:05 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&sec2=godmode/db/db_refine' class='mn'>".$lang_label["db_refine"]."</a></li></ul></div>";
|
|
|
|
|
2006-05-19 18:43:19 +02:00
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/db/db_audit"){
|
2006-12-15 22:57:08 +01:00
|
|
|
echo "<div class='arrowgs'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-12-15 22:57:08 +01:00
|
|
|
else echo "<div class='arrowg'>";
|
2006-06-27 13:34:05 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&sec2=godmode/db/db_audit' class='mn'>".$lang_label["db_audit"]."</a></li></ul></div>";
|
|
|
|
|
2006-05-19 18:43:19 +02:00
|
|
|
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/db/db_event"){
|
2006-12-15 22:57:08 +01:00
|
|
|
echo "<div class='arrowgs'>";
|
2006-04-25 11:41:25 +02:00
|
|
|
}
|
2006-12-15 22:57:08 +01:00
|
|
|
else echo "<div class='arrowg'>";
|
2006-06-27 13:34:05 +02:00
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&sec2=godmode/db/db_event' class='mn'>".$lang_label["db_event"]."</a></li></ul></div>";
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
|
|
|
}
|
2006-06-28 19:09:23 +02:00
|
|
|
?>
|
2006-03-27 05:37:27 +02:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
} // end verify access to this menu
|
|
|
|
}
|
2007-04-21 18:14:11 +02:00
|
|
|
?>
|