2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
|
|
|
|
2006-07-12 15:43:41 +02:00
|
|
|
// Pandora - the Free monitoring system
|
|
|
|
// ====================================
|
|
|
|
// Copyright (c) 2004-2006 Sancho Lerena, slerena@gmail.com
|
|
|
|
// Copyright (c) 2005-2006 Artica Soluciones Tecnologicas 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
|
|
|
|
|
|
|
// Load global vars
|
|
|
|
require("include/config.php");
|
2006-07-12 15:43:41 +02:00
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
if (comprueba_login() == 0) {
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2007-06-08 11:28:47 +02:00
|
|
|
<h2><?php echo $lang_label["users_"] ?> >
|
2007-10-12 18:27:50 +02:00
|
|
|
<?php echo $lang_label["users"] ?></h2>
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2007-06-08 11:28:47 +02:00
|
|
|
<table cellpadding="4" cellspacing="4" width="700" class='databox'>
|
|
|
|
<th width="80px"><?php echo $lang_label["user_ID"]?></th>
|
|
|
|
<th width="155px"><?php echo $lang_label["last_contact"]?></th>
|
|
|
|
<th width="45px"><?php echo $lang_label["profile"]?></th>
|
|
|
|
<th width="120px"><?php echo $lang_label["name"]?></th>
|
|
|
|
<th><?php echo $lang_label["description"]?></th>
|
2006-03-27 05:37:27 +02:00
|
|
|
|
|
|
|
<?php
|
2006-07-03 12:49:42 +02:00
|
|
|
$color = 1;
|
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
|
|
|
|
|
|
|
|
|
|
|
if (give_acl($config["id_user"], 0, "UM") == 1)
|
|
|
|
$query1="SELECT * FROM tusuario";
|
|
|
|
else
|
|
|
|
$query1="SELECT * FROM tusuario WHERE id_usuario = '".$config["id_user"]."'";
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
$resq1=mysql_query($query1);
|
|
|
|
while ($rowdup=mysql_fetch_array($resq1)){
|
2007-04-18 23:45:03 +02:00
|
|
|
$name=$rowdup["id_usuario"];
|
|
|
|
$nivel=$rowdup["nivel"];
|
|
|
|
$real_name=$rowdup["nombre_real"];
|
|
|
|
$comments=$rowdup["comentarios"];
|
2006-03-27 05:37:27 +02:00
|
|
|
$fecha_registro =$rowdup["fecha_registro"];
|
2006-07-03 12:49:42 +02:00
|
|
|
if ($color == 1){
|
|
|
|
$tdcolor = "datos";
|
|
|
|
$color = 0;
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
$tip = "tip";
|
2006-07-03 12:49:42 +02:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
$tdcolor = "datos2";
|
|
|
|
$color = 1;
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
$tip = "tip2";
|
2006-07-03 12:49:42 +02:00
|
|
|
}
|
2007-04-19 20:50:07 +02:00
|
|
|
echo "<tr><td class='$tdcolor'><a href='index.php?sec=usuarios&sec2=operation/users/user_edit&ver=".$name."'><b>".$name."</b></a>";
|
2006-07-03 12:49:42 +02:00
|
|
|
echo "<td class='$tdcolor'><font size=1>".$fecha_registro."</font>";
|
|
|
|
echo "<td class='$tdcolor'>";
|
2006-03-27 05:37:27 +02:00
|
|
|
if ($nivel == 1)
|
2007-03-02 18:56:07 +01:00
|
|
|
echo "<img src='images/user_suit.png'>";
|
2006-03-27 05:37:27 +02:00
|
|
|
else
|
2007-03-02 18:56:07 +01:00
|
|
|
echo "<img src='images/user_green.png'>";
|
2007-04-18 23:45:03 +02:00
|
|
|
$sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$name.'"';
|
2006-03-27 05:37:27 +02:00
|
|
|
$result=mysql_query($sql1);
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
echo "<a href='#' class='$tip'> <span>";
|
2006-03-27 05:37:27 +02:00
|
|
|
if (mysql_num_rows($result)){
|
|
|
|
while ($row=mysql_fetch_array($result)){
|
|
|
|
echo dame_perfil($row["id_perfil"])."/ ";
|
|
|
|
echo dame_grupo($row["id_grupo"])."<br>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else { echo $lang_label["no_profile"]; }
|
|
|
|
echo "</span></a>";
|
2007-04-18 23:45:03 +02:00
|
|
|
echo "<td class='$tdcolor' width='100'>".substr($real_name,0,16)."</td>";
|
|
|
|
echo "<td class='$tdcolor'>".$comments."</td>";
|
2007-06-08 11:28:47 +02:00
|
|
|
echo "</tr>";
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
|
|
|
|
2007-06-08 11:28:47 +02:00
|
|
|
echo "</table><br>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
2007-10-12 18:27:50 +02:00
|
|
|
<h3><?php echo $lang_label["definedprofiles"] ?></h3>
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2007-06-08 11:28:47 +02:00
|
|
|
<table cellpadding='4' cellspacing='4' class='databox'>
|
2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$query_del1="SELECT * FROM tperfil";
|
|
|
|
$resq1=mysql_query($query_del1);
|
|
|
|
echo "<tr>";
|
2007-06-08 11:28:47 +02:00
|
|
|
echo "<th width='180px'>
|
|
|
|
<font size=1>".$lang_label["profiles"]."</th>";
|
|
|
|
echo "<th width='40px'>
|
|
|
|
<font size=1>IR<a href='#' class='tipp'> <span>".$help_label["IR"]."</span></a>
|
|
|
|
</font></th>";
|
|
|
|
echo "<th width='40px'>
|
|
|
|
<font size=1>IW<a href='#' class='tipp'> <span>".$help_label["IW"]."</span></a>
|
|
|
|
</font></th>";
|
|
|
|
echo "<th width='40px'>
|
|
|
|
<font size=1>IM<a href='#' class='tipp'> <span>".$help_label["IM"]."</span></a>
|
|
|
|
</font></th>";
|
|
|
|
echo "<th width='40px'>
|
|
|
|
<font size=1>AR<a href='#' class='tipp'> <span>".$help_label["AR"]."</span></a>
|
|
|
|
</font></th>";
|
|
|
|
echo "<th width='40px'>
|
|
|
|
<font size=1>AW<a href='#' class='tipp'> <span>".$help_label["AW"]."</span></a>
|
|
|
|
</font></th>";
|
|
|
|
echo "<th width='40px'>
|
|
|
|
<font size=1>LW<a href='#' class='tipp'> <span>".$help_label["LW"]."</span></a>
|
|
|
|
</font></th>";
|
|
|
|
echo "<th width='40px'>
|
|
|
|
<font size=1>UM<a href='#' class='tipp'> <span>".$help_label["UM"]."</span></a>
|
|
|
|
</font></th>";
|
|
|
|
echo "<th width='40px'>
|
|
|
|
<font size=1>DM<a href='#' class='tipp'> <span>".$help_label["DM"]."</span></a>
|
|
|
|
</font></th>";
|
|
|
|
echo "<th width='40px'>
|
|
|
|
<font size=1>LM<a href='#' class='tipp'> <span>".$help_label["LM"]."</span></a>
|
|
|
|
</font></th>";
|
|
|
|
echo "<th width='40px'>
|
|
|
|
<font size=1>PM<a href='#' class='tipp'> <span>".$help_label["PM"]."</span></a>
|
|
|
|
</font></th>";
|
2006-07-04 12:09:39 +02:00
|
|
|
$color = 1;
|
2006-03-27 05:37:27 +02:00
|
|
|
while ($rowdup=mysql_fetch_array($resq1)){
|
|
|
|
$id_perfil = $rowdup["id_perfil"];
|
|
|
|
$nombre=$rowdup["name"];
|
|
|
|
$incident_view = $rowdup["incident_view"];
|
|
|
|
$incident_edit = $rowdup["incident_edit"];
|
|
|
|
$incident_management = $rowdup["incident_management"];
|
|
|
|
$agent_view = $rowdup["agent_view"];
|
|
|
|
$agent_edit =$rowdup["agent_edit"];
|
|
|
|
$alert_edit = $rowdup["alert_edit"];
|
|
|
|
$user_management = $rowdup["user_management"];
|
|
|
|
$db_management = $rowdup["db_management"];
|
|
|
|
$alert_management = $rowdup["alert_management"];
|
|
|
|
$pandora_management = $rowdup["pandora_management"];
|
2006-07-03 12:49:42 +02:00
|
|
|
if ($color == 1){
|
|
|
|
$tdcolor = "datos";
|
|
|
|
$color = 0;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$tdcolor = "datos2";
|
|
|
|
$color = 1;
|
|
|
|
}
|
|
|
|
echo "<tr><td class='$tdcolor"."_id'>".$nombre;
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2006-07-03 12:49:42 +02:00
|
|
|
echo "<td class='$tdcolor'>";
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
if ($incident_view == 1) echo "<img src='images/ok.png' border=0>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2006-07-03 12:49:42 +02:00
|
|
|
echo "<td class='$tdcolor'>";
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
if ($incident_edit == 1) echo "<img src='images/ok.png' border=0>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2006-07-03 12:49:42 +02:00
|
|
|
echo "<td class='$tdcolor'>";
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
if ($incident_management == 1) echo "<img src='images/ok.png' border=0>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2006-07-03 12:49:42 +02:00
|
|
|
echo "<td class='$tdcolor'>";
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
if ($agent_view == 1) echo "<img src='images/ok.png' border=0>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2006-07-03 12:49:42 +02:00
|
|
|
echo "<td class='$tdcolor'>";
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
if ($agent_edit == 1) echo "<img src='images/ok.png' border=0>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2006-07-03 12:49:42 +02:00
|
|
|
echo "<td class='$tdcolor'>";
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
if ($alert_edit == 1) echo "<img src='images/ok.png' border=0>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2006-07-03 12:49:42 +02:00
|
|
|
echo "<td class='$tdcolor'>";
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
if ($user_management == 1) echo "<img src='images/ok.png' border=0>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2006-07-03 12:49:42 +02:00
|
|
|
echo "<td class='$tdcolor'>";
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
if ($db_management == 1) echo "<img src='images/ok.png' border=0>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2006-07-03 12:49:42 +02:00
|
|
|
echo "<td class='$tdcolor'>";
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
if ($alert_management == 1) echo "<img src='images/ok.png' border=0>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2006-07-03 12:49:42 +02:00
|
|
|
echo "<td class='$tdcolor'>";
|
2007-04-02 Raul Mateos <raulofpandora@gmail.com>
* images/ok.gif: Deleted
* images/cross.png, go.png, ok.png, upd.png: Added new images
* include/styles/pandora.css, tip.css, op.css: Updated. Deleted some
old styles, not all.
* include/languages/language_en.php, language_es_es.php: Added text
for no recon task.
* godmode/*.php, operation/*.php, help/*.php: Changed some icons,
updated several buttons with new icons.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-02 19:17:27 +02:00
|
|
|
if ($pandora_management == 1) echo "<img src='images/ok.png' border=0>";
|
2006-03-27 05:37:27 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
} //end of page
|
|
|
|
?>
|
2007-06-08 11:28:47 +02:00
|
|
|
</tr></table>
|