2006-07-12 15:43:41 +02:00
|
|
|
|
<?php
|
|
|
|
|
|
2006-06-29 21:31:53 +02:00
|
|
|
|
// Pandora - the Free monitoring system
|
|
|
|
|
// ====================================
|
|
|
|
|
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
|
|
|
|
|
// Copyright (c) 2005-2006 Artica Soluciones Tecnol<6F>gicas S.L, info@artica.es
|
|
|
|
|
// Copyright (c) 2004-2006 Raul Mateos Martin, raulofpandora@gmail.com
|
|
|
|
|
// 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; either version 2
|
|
|
|
|
// of the License, or (at your option) any later version.
|
|
|
|
|
// 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
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
if (isset($_SESSION["id_usuario"])) {
|
|
|
|
|
?>
|
|
|
|
|
<div class="bg">
|
|
|
|
|
<div class="imgl"><img src="images/upper-left-corner.gif" width="5" height="5" alt=""></div>
|
2006-06-28 19:09:23 +02:00
|
|
|
|
<div class="tit">:: <?php echo $lang_label["operation_header"] ?> ::</div>
|
2006-03-27 05:37:27 +02:00
|
|
|
|
<div class="imgr"><img src="images/upper-right-corner.gif" width="5" height="5" alt=""></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="menuop">
|
|
|
|
|
<div id="op">
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
if (give_acl($_SESSION["id_usuario"], 0, "AR")==1) {
|
2006-05-19 18:43:19 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/agentes/estado_grupo") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo '<div id="op1s">';
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo '<div id="op1">';
|
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=estado&sec2=operation/agentes/estado_grupo&refr=60" class="mn">'.$lang_label["view_agents"].'</a></li></ul></div>';
|
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "estado"){
|
2006-07-12 15:43:41 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && ($_GET["sec2"] == "operation/agentes/estado_agente" || $_GET["sec2"] == "operation/agentes/ver_agente" || $_GET["sec2"] == "operation/agentes/datos_agente")) {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo "<div id='arrows1'>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo "<div id='arrow1'>";
|
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=60' class='mn'>".$lang_label["agent_detail"]."</a></li></ul></div>";
|
|
|
|
|
|
2006-05-19 18:43:19 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/agentes/estado_alertas") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo "<div id='arrows2'>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo "<div id='arrow2'>";
|
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=estado&sec2=operation/agentes/estado_alertas&refr=60' class='mn'>".$lang_label["alert_detail"]."</a></li></ul></div>";
|
|
|
|
|
|
2006-05-19 18:43:19 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/agentes/status_monitor") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo "<div id='arrows3'>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo "<div id='arrow3'>";
|
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=60' class='mn'>".$lang_label["detailed_monitoragent_state"]."</a></li></ul></div>";
|
|
|
|
|
|
2006-05-29 17:00:39 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/agentes/exportdata") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo "<div id='arrows4'>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo "<div id='arrow4'>";
|
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=estado&sec2=operation/agentes/exportdata' class='mn'>".$lang_label["export_data"]."</a></li></ul></div>";
|
|
|
|
|
|
2006-05-19 18:43:19 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/agentes/estadisticas") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo "<div id='arrows5'>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo "<div id='arrow5'>";
|
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=estado&sec2=operation/agentes/estadisticas' class='mn'>".$lang_label["statistics"]."</a></li></ul></div>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (give_acl($_SESSION["id_usuario"], 0, "AR")==1) {
|
2006-05-19 18:43:19 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/servers/view_server") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo '<div id="op2s">';
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo '<div id="op2">';
|
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=estado_server&sec2=operation/servers/view_server&refr=60" class="mn">'.$lang_label["view_servers"].'</a></li></ul></div>';
|
2006-03-27 05:37:27 +02:00
|
|
|
|
}
|
2006-04-25 11:41:44 +02:00
|
|
|
|
if (give_acl($_SESSION["id_usuario"], 0, "IR")==1) {
|
2006-07-03 12:49:42 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && ($_GET["sec2"] == "operation/incidents/incident" || $_GET["sec2"] == "operation/incidents/incident_detail")) {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo '<div id="op3s">';
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo '<div id="op3">';
|
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=incidencias&sec2=operation/incidents/incident" class="mn">'.$lang_label["manage_incidents"].'</a></li></ul></div>';
|
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "incidencias"){
|
2006-05-19 18:43:19 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/incidents/incident_search") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo "<div id='arrows1'>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo "<div id='arrow1'>";
|
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=incidencias&sec2=operation/incidents/incident_search' class='mn'>".$lang_label["search_incident"]."</a></li></ul></div>";
|
|
|
|
|
|
2006-05-19 18:43:19 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/incidents/incident_statistics") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo "<div id='arrows2'>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo "<div id='arrow2'>";
|
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=incidencias&sec2=operation/incidents/incident_statistics' class='mn'>".$lang_label["statistics"]."</a></li></ul></div>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (give_acl($_SESSION["id_usuario"], 0, "AR")==1) {
|
2006-05-19 18:43:19 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/events/events") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo '<div id="op4s">';
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo '<div id="op4">';
|
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=eventos&sec2=operation/events/events" class="mn">'.$lang_label["view_events"].'</a></li></ul></div>';
|
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "eventos"){
|
2006-05-19 18:43:19 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/events/event_statistics") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo "<div id='arrows1'>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo "<div id='arrow1'>";
|
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=eventos&sec2=operation/events/event_statistics' class='mn'>".$lang_label["statistics"]."</a></li></ul></div>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2006-07-11 16:48:04 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && ($_GET["sec2"] == "operation/users/user" || $_GET["sec2"] == "operation/users/user_edit" )) {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo '<div id="op5s">';
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo '<div id="op5">';
|
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=usuarios&sec2=operation/users/user" class="mn">'.$lang_label["view_users"].'</a></li></ul></div>';
|
2006-04-25 11:41:44 +02:00
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "usuarios"){
|
2006-07-11 16:48:04 +02:00
|
|
|
|
if(isset($_GET["ver"]) && $_GET["ver"] == $_SESSION["id_usuario"]){
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo "<div id='arrows1'>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo "<div id='arrow1'>";
|
2006-07-11 16:48:04 +02:00
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=usuarios&sec2=operation/users/user_edit&ver=".$_SESSION["id_usuario"]."' class='mn'>".$lang_label["index_myuser"]."</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"] == "operation/users/user_statistics") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo "<div id='arrows1'>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo "<div id='arrow1'>";
|
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=usuarios&sec2=operation/users/user_statistics' class='mn'>".$lang_label["statistics"]."</a></li></ul></div>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
|
|
|
|
|
}
|
2006-05-19 18:43:19 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/snmpconsole/snmp_view") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo '<div id="op6s">';
|
2006-03-27 05:37:27 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo '<div id="op6">';
|
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_view&refr=30" class="mn">'.$lang_label["SNMP_console"].'</a></li></ul></div>';
|
2006-03-27 05:37:27 +02:00
|
|
|
|
|
|
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "snmpconsole"){
|
2006-05-19 18:43:19 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/snmpconsole/snmp_alert") {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo "<div id='arrows1'>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo "<div id='arrow1'>";
|
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_alert' class='mn'>".$lang_label["snmp_console_alert"]."</a></li></ul></div>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
}
|
2006-05-19 18:43:19 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && $_GET["sec2"] == "operation/messages/message" && !isset($_GET["nuevo_g"])) {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo '<div id="op7s">';
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo '<div id="op7">';
|
|
|
|
|
echo '<ul class="mn"><li><a href="index.php?sec=messages&sec2=operation/messages/message" class="mn">'. $lang_label["messages"].'</a></li></ul></div>';
|
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
if (isset($_GET["sec"]) && $_GET["sec"] == "messages"){
|
2006-04-25 11:41:44 +02:00
|
|
|
|
if(isset($_GET["sec2"]) && isset($_GET["nuevo_g"])) {
|
2006-06-27 13:34:05 +02:00
|
|
|
|
echo "<div id='arrows1'>";
|
2006-04-25 11:41:44 +02:00
|
|
|
|
}
|
2006-06-27 13:34:05 +02:00
|
|
|
|
else echo "<div id='arrow1'>";
|
|
|
|
|
echo "<ul class='mn'><li><a href='index.php?sec=messages&sec2=operation/messages/message&nuevo_g' class='mn'>".$lang_label["messages_g"]."</a></li></ul></div>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
}
|
2006-06-29 21:31:53 +02:00
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|