2007-06-06 Raul Mateos <raulofpandora@gmail.com>

* godmode/*.php: Closed a lot of unclosed html tags. Updated near all of
	files with new table style.
	* godmode/agentes/alert_manager.php: Solved stupid bugs added some days
	ago due to an unclosed html tag.
	* images/groups_small/applications.png: New icon for applications group.
	* pandoradb_data.sql: Updated default applications icon name.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@488 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2007-06-06 16:23:24 +00:00
parent f016097c8c
commit afd7eb2d05
28 changed files with 423 additions and 346 deletions

View File

@ -1,3 +1,16 @@
2007-06-06 Raul Mateos <raulofpandora@gmail.com>
* godmode/*.php: Closed a lot of unclosed html tags. Updated near all of
files with new table style.
* godmode/agentes/alert_manager.php: Solved stupid bugs added some days
ago due to an unclosed html tag.
* images/groups_small/applications.png: New icon for applications group.
* pandoradb_data.sql: Updated default applications icon name.
2007-06-02 Raul Mateos <raulofpandora@gmail.com> 2007-06-02 Raul Mateos <raulofpandora@gmail.com>
* include/styles/pandora.css: Updated. * include/styles/pandora.css: Updated.

View File

@ -60,10 +60,11 @@
echo "<a href='help/".$help_code."/chap6.php#6' target='_help' class='help'> echo "<a href='help/".$help_code."/chap6.php#6' target='_help' class='help'>
&nbsp;<span>".$lang_label["help"]."</span></a></h2>"; &nbsp;<span>".$lang_label["help"]."</span></a></h2>";
echo "<form name='query_sel' method='post' action='index.php?sec=godmode&sec2=godmode/admin_access_logs'>"; echo "<form name='query_sel' method='post' action='index.php?sec=godmode&sec2=godmode/admin_access_logs'>";
echo "<table border='0'><tr><td valign='middle'>"; echo "<table cellpadding='4' cellspacing='4' class='databox'>
<tr><td>".$lang_label["action"]."</td><td valign='middle'>";
echo "<select name='tipo_log' onChange='javascript:this.form.submit();'>"; echo "<select name='tipo_log' onChange='javascript:this.form.submit();'>";
if (isset($tipo_log)) { if (isset($tipo_log)) {
echo "<option>".$tipo_log. "</option>"; echo "<option>".$tipo_log."</option>";
} }
echo "<option value='-1'>".$lang_label["all"]."</option>"; echo "<option value='-1'>".$lang_label["all"]."</option>";
$sql3="SELECT DISTINCT (accion) FROM `tsesion`"; $sql3="SELECT DISTINCT (accion) FROM `tsesion`";
@ -95,7 +96,7 @@
pagination ($counter, $url, $offset); pagination ($counter, $url, $offset);
echo '<br>'; echo '<br>';
// table header // table header
echo '<table cellpadding="3" cellspacing="3" width=700>'; echo '<table cellpadding="4" cellspacing="4" width="700" class="databox">';
echo '<tr>'; echo '<tr>';
echo '<th width="80px">'.$lang_label["user"].'</th>'; echo '<th width="80px">'.$lang_label["user"].'</th>';
echo '<th>'.$lang_label["action"].'</th>'; echo '<th>'.$lang_label["action"].'</th>';
@ -137,6 +138,6 @@
} }
// end table // end table
echo "<tr><td colspan='5'><div class='raya'></div></td></tr></table>"; echo "</table>";
?> ?>

View File

@ -245,7 +245,7 @@ if ($update_alert != 1) {
$result2=mysql_query($sql2); $result2=mysql_query($sql2);
while ($row2=mysql_fetch_array($result2)){ while ($row2=mysql_fetch_array($result2)){
if ($row2["id_tipo_modulo"] != -1) { if ($row2["id_tipo_modulo"] != -1) {
$sql1='SELECT nombre FROM ttipo_modulo WHERE id_tipo = '.$row2["id_tipo_modulo"].'</option>'; $sql1='SELECT nombre FROM ttipo_modulo WHERE id_tipo = '.$row2["id_tipo_modulo"];
$result=mysql_query($sql1); $result=mysql_query($sql1);
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
echo "<option value='".$row2["id_agente_modulo"]."'>".$row["nombre"]."/".$row2["nombre"]."</option>"; echo "<option value='".$row2["id_agente_modulo"]."'>".$row["nombre"]."/".$row2["nombre"]."</option>";
@ -260,7 +260,7 @@ if ($update_alert != 1) {
// End block only if $creacion_agente != 1; // End block only if $creacion_agente != 1;
echo "</table>"; echo "</td></tr></table>";
echo '<table width=605>'; echo '<table width=605>';
echo '<tr><td align="right">'; echo '<tr><td align="right">';
if ($update_alert== "1"){ if ($update_alert== "1"){

View File

@ -252,13 +252,13 @@ if (comprueba_login() == 0)
<h2><?php echo $lang_label["agent_conf"] ?> &gt; <h2><?php echo $lang_label["agent_conf"] ?> &gt;
<?php echo $lang_label["config_manage"]; ?><a href="help/<?php echo $help_code;?>/chap3.php#323" target="_help" class="help">&nbsp;<span><?php echo $lang_label["help"]; ?></span></a></h2> <?php echo $lang_label["config_manage"]; ?><a href="help/<?php echo $help_code;?>/chap3.php#323" target="_help" class="help">&nbsp;<span><?php echo $lang_label["help"]; ?></span></a></h2>
<form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/manage_config&operacion=1"> <form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/manage_config&operacion=1">
<table width=450 border=0 cellspacing=3 cellpadding=5> <table width='450' border='0' cellspacing='4' cellpadding='4' class='databox'>
<tr> <tr>
<td class="datost"><b><?php echo $lang_label["source_agent"]; ?></b><br><br> <td class="datost"><b><?php echo $lang_label["source_agent"]; ?></b><br><br>
<select name="origen" class="w130"> <select name="origen" class="w130">
<?php <?php
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ) { if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ) {
echo "<option value=".$_POST["origen"].">".dame_nombre_agente($_POST["origen"]); echo "<option value=".$_POST["origen"].">".dame_nombre_agente($_POST["origen"])."</option>";
} }
// Show combo with agents // Show combo with agents
$sql1='SELECT * FROM tagente order by nombre'; $sql1='SELECT * FROM tagente order by nombre';
@ -266,12 +266,12 @@ if (comprueba_login() == 0)
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ){ if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ){
if ( $_POST["origen"] != $row["id_agente"]) if ( $_POST["origen"] != $row["id_agente"])
echo "<option value=".$row["id_agente"].">".$row["nombre"]; echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
} }
else else
echo "<option value=".$row["id_agente"].">".$row["nombre"]; echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
} }
echo '</select>&nbsp;&nbsp;<input type=submit name="update_agent" class=sub value="'.$lang_label["get_info"].'"><br><br>'; echo '</select>&nbsp;&nbsp;<input type=submit name="update_agent" class="sub upd" value="'.$lang_label["get_info"].'"><br><br>';
echo "<b>".$lang_label["modules"]."</b><br><br>"; echo "<b>".$lang_label["modules"]."</b><br><br>";
echo "<select name='origen_modulo[]' size=3 multiple=yes class='w130'>"; echo "<select name='origen_modulo[]' size=3 multiple=yes class='w130'>";
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ) { if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ) {

View File

@ -110,7 +110,7 @@ if (isset($_POST["ag_group"])){
action='index.php?sec=gagente&sec2=godmode/agentes/modificar_agente'>"; action='index.php?sec=gagente&sec2=godmode/agentes/modificar_agente'>";
} }
echo "<table cellpadding='3' cellspacing='3'><tr>"; echo "<table cellpadding='4' cellspacing='4' class='databox'><tr>";
echo "<td>".$lang_label["group"]."</td>"; echo "<td>".$lang_label["group"]."</td>";
echo "<td valign='middle'>"; echo "<td valign='middle'>";
echo "<select name='ag_group' onChange='javascript:this.form.submit();' echo "<select name='ag_group' onChange='javascript:this.form.submit();'
@ -150,12 +150,12 @@ pagination ($total_events, "index.php?sec=gagente&sec2=godmode/agentes/modificar
echo "<div style='height: 20px'> </div>"; echo "<div style='height: 20px'> </div>";
if (mysql_num_rows($result)){ if (mysql_num_rows($result)){
echo "<table cellpadding='4' cellspacing='4' width='700'>"; echo "<table cellpadding='4' cellspacing='4' width='700' class='databox'>";
echo "<th>".$lang_label["agent_name"]; echo "<th>".$lang_label["agent_name"]."</th>";
echo "<th>".$lang_label["os"]; echo "<th>".$lang_label["os"]."</th>";
echo "<th>".$lang_label["group"]; echo "<th>".$lang_label["group"]."</th>";
echo "<th>".$lang_label["description"]; echo "<th>".$lang_label["description"]."</th>";
echo "<th>".$lang_label["delete"]; echo "<th>".$lang_label["delete"]."</th>";
$color=1; $color=1;
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
$id_grupo = $row["id_grupo"]; $id_grupo = $row["id_grupo"];
@ -189,8 +189,8 @@ if (mysql_num_rows($result)){
echo "<img border='0' src='images/cross.png'></a></td>"; echo "<img border='0' src='images/cross.png'></a></td>";
} }
} }
echo "<tr><td colspan='5'><div class='raya'></div></td></tr>"; echo "</table>";
echo "<tr><td align='right' colspan='5'>"; echo "<table width='700'><tr><td align='right'>";
} else { } else {
echo "<div class='nf'>".$lang_label["no_agent_def"]."</div>"; echo "<div class='nf'>".$lang_label["no_agent_def"]."</div>";
echo "&nbsp;</td></tr><tr><td>"; echo "&nbsp;</td></tr><tr><td>";

View File

@ -63,9 +63,7 @@ echo "<h2>".$lang_label["alert_config"]." &gt; ";
<span>'.$lang_label["help"].'</span></a>'; <span>'.$lang_label["help"].'</span></a>';
echo "</h2>"; echo "</h2>";
?> ?>
<table width="500" cellspacing="4" cellpadding="4" class="databox_color"> <form name="alerta" method="post" action="index.php?sec=galertas&sec2=godmode/alerts/modify_alert&id_alerta=<?php echo $id_alerta ?>">
<form name="alerta" method="post" action="index.php?sec=galertas&sec2=godmode/alerts/modify_alert&id_alerta=<?php echo $id_alerta ?>">
<?php <?php
if ($creacion_alerta == 1) if ($creacion_alerta == 1)
@ -75,13 +73,15 @@ echo "</h2>";
echo "<input type='hidden' name='id_alerta' value='".$id_alerta."'>"; echo "<input type='hidden' name='id_alerta' value='".$id_alerta."'>";
} }
?> ?>
<table width="500" cellspacing="4" cellpadding="4" class="databox">
<tr><td class="datos"><?php echo $lang_label["alertname"] ?> <tr><td class="datos"><?php echo $lang_label["alertname"] ?></td>
<td class="datos"><input type="text" name="nombre" size=30 value="<?php echo $nombre ?>"> <td class="datos">
<input type="text" name="nombre" size=30 value="<?php echo $nombre ?>"></td>
</tr>
<tr> <tr>
<td class="datos2"><?php echo $lang_label["command"] ?> <td class="datos2"><?php echo $lang_label["command"] ?></td>
<td class="datos2"><input type="text" name="comando" size="50" value="<?php echo $comando ?>"> <td class="datos2">
<input type="text" name="comando" size="50" value="<?php echo $comando ?>">
<a href='#' class='tip'>&nbsp;<span> <a href='#' class='tip'>&nbsp;<span>
<b>Macros:</b><br> <b>Macros:</b><br>
_field1_<br> _field1_<br>
@ -91,19 +91,20 @@ _agent_<br>
_timestamp_<br> _timestamp_<br>
_data_<br> _data_<br>
</span></a> </span></a>
</td></tr>
<tr><td class="datos"><?php echo $lang_label["description"] ?> <tr><td class="datos"><?php echo $lang_label["description"] ?></td>
<td class="datos"><textarea name="descripcion" cols="50" rows="7"> <td class="datos"><textarea name="descripcion" cols="50" rows="7">
<?php echo $descripcion ?> <?php echo $descripcion ?>
</textarea> </textarea>
</td></tr>
</table> </table>
<table width=500> <table width=500>
<tr><td align="right"> <tr><td align="right">
<?php <?php
if (isset($_GET["creacion"])){ if (isset($_GET["creacion"])){
echo "<input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>"; echo "<input name='crtbutton' type='submit' class='sub wand' value='".$lang_label["create"]."'>";
} else { } else {
echo "<input name='uptbutton' type='submit' class='sub' value='".$lang_label["update"]."'>"; echo "<input name='uptbutton' type='submit' class='sub upd' value='".$lang_label["update"]."'>";
} ?> } ?>
</form> </form>

View File

@ -68,11 +68,10 @@ if ( (give_acl($id_user, 0, "LM")==1)){
} }
echo "<tr><td class='$tdcolor'><b><a href='index.php?sec=galertas&sec2=godmode/alerts/configure_alert&id_alerta=".$row["id_alerta"]."'>".$row["nombre"]."</a></b></td>"; echo "<tr><td class='$tdcolor'><b><a href='index.php?sec=galertas&sec2=godmode/alerts/configure_alert&id_alerta=".$row["id_alerta"]."'>".$row["nombre"]."</a></b></td>";
echo "<td class='$tdcolor'>".$row["descripcion"]."</td>"; echo "<td class='$tdcolor'>".$row["descripcion"]."</td>";
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/alerts/modify_alert&borrar_alerta=".$row["id_alerta"]."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a></td></tr>"; echo "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/alerts/modify_alert&borrar_alerta=".$row["id_alerta"]."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a></td>";
} }
echo "</table>"; echo "</tr></table>";
echo "<br>";
echo "<table width=500>"; echo "<table width=500>";
echo "<tr><td align='right'>"; echo "<tr><td align='right'>";
echo "<form method=post action='index.php?sec=galertas&sec2=godmode/alerts/configure_alert&creacion=1'>"; echo "<form method=post action='index.php?sec=galertas&sec2=godmode/alerts/configure_alert&creacion=1'>";

View File

@ -97,29 +97,29 @@ if (comprueba_login() == 0)
echo "<h2>".$lang_label["dbmain_title"]." &gt; "; echo "<h2>".$lang_label["dbmain_title"]." &gt; ";
echo $lang_label["db_purge_audit"]."<a href='help/".$help_code."/chap8.php#841' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h2>"; echo $lang_label["db_purge_audit"]."<a href='help/".$help_code."/chap8.php#841' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h2>";
echo "<table cellpadding='4' cellspacing='4' border='0'>"; echo "<table cellpadding='4' cellspacing='4' class='databox'>";
echo "<tr><td class='datos'>"; echo "<tr><td class='datos'>";
$result_t=mysql_query("SELECT COUNT(*) FROM tsesion"); $result_t=mysql_query("SELECT COUNT(*) FROM tsesion");
$row=mysql_fetch_array($result_t); $row=mysql_fetch_array($result_t);
echo "<b>".$lang_label["total"]."</b>"; echo "<b>".$lang_label["total"]."</b></td>";
echo "<td class='datos'>".$row[0]." ".$lang_label["records"]; echo "<td class='datos'>".$row[0]." ".$lang_label["records"]."</td>";
echo "<tr>"; echo "<tr>";
$result_t=mysql_query("SELECT min(fecha) FROM tsesion"); $result_t=mysql_query("SELECT min(fecha) FROM tsesion");
$row=mysql_fetch_array($result_t); $row=mysql_fetch_array($result_t);
echo "<td class='datos2'><b>".$lang_label["first_date"]."</b>"; echo "<td class='datos2'><b>".$lang_label["first_date"]."</b></td>";
echo "<td class='datos2'>".$row[0]; echo "<td class='datos2'>".$row[0]."</td></tr>";
echo "<tr><td class='datos'>"; echo "<tr><td class='datos'>";
$result_t=mysql_query("SELECT max(fecha) FROM tsesion"); $result_t=mysql_query("SELECT max(fecha) FROM tsesion");
$row=mysql_fetch_array($result_t); $row=mysql_fetch_array($result_t);
echo "<b>".$lang_label["latest_date"]."</b>"; echo "<b>".$lang_label["latest_date"]."</b></td>";
echo "<td class='datos'>".$row[0]; echo "<td class='datos'>".$row[0]."</td>";
echo "</table>"; echo "</tr></table>";
?> ?>
<h3><?php echo $lang_label["purge_data"] ?></h3> <h3><?php echo $lang_label["purge_data"] ?></h3>
<form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_audit"> <form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_audit">
<table width='300' border='0'> <table width='300' cellpadding='4' cellspacing='4' class='databox'>
<tr><td class='datos'> <tr><td class='datos'>
<select name="date_purge" width="255px"> <select name="date_purge" width="255px">
<option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_audit_90day"] ?> <option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_audit_90day"] ?>
@ -132,7 +132,7 @@ if (comprueba_login() == 0)
</select> </select>
<td class="datos"> <td class="datos">
<input class="sub" type="submit" name="purgedb" value="<?php echo $lang_label["doit"] ?>" onClick="if (!confirm('<?php echo $lang_label["are_you_sure"] ?>')) return false;"> <input class="sub wand" type="submit" name="purgedb" value="<?php echo $lang_label["doit"] ?>" onClick="if (!confirm('<?php echo $lang_label["are_you_sure"] ?>')) return false;">
</table> </table>
</form> </form>

View File

@ -76,31 +76,31 @@ if (comprueba_login() == 0)
echo "<h2>".$lang_label["dbmain_title"]." &gt; "; echo "<h2>".$lang_label["dbmain_title"]." &gt; ";
echo $lang_label["db_purge_event"]."<a href='help/".$help_code."/chap8.php#842' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h2>"; echo $lang_label["db_purge_event"]."<a href='help/".$help_code."/chap8.php#842' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h2>";
echo "<table cellpadding='4' cellspacing='4' border='0'>"; echo "<table cellpadding='4' cellspacing='4' class='databox'>";
echo "<tr><td class='datos'>"; echo "<tr><td class='datos'>";
$result_t=mysql_query("SELECT COUNT(*) FROM tevento"); $result_t=mysql_query("SELECT COUNT(*) FROM tevento");
$row=mysql_fetch_array($result_t); $row=mysql_fetch_array($result_t);
echo "<b>".$lang_label["total"]."</b>"; echo "<b>".$lang_label["total"]."</b>";
echo "<td class='datos'>".$row[0]." ".$lang_label["records"]; echo "<td class='datos'>".$row[0]." ".$lang_label["records"]."</td>";
echo "<tr>"; echo "<tr>";
$result_t=mysql_query("SELECT min(timestamp) FROM tevento"); $result_t=mysql_query("SELECT min(timestamp) FROM tevento");
$row=mysql_fetch_array($result_t); $row=mysql_fetch_array($result_t);
echo "<td class='datos2'><b>".$lang_label["first_date"]."</b>"; echo "<td class='datos2'><b>".$lang_label["first_date"]."</b></td>";
echo "<td class='datos2'>".$row[0]; echo "<td class='datos2'>".$row[0]."</td></tr>";
echo "<tr><td class='datos'>"; echo "<tr><td class='datos'>";
$result_t=mysql_query("SELECT max(timestamp) FROM tevento"); $result_t=mysql_query("SELECT max(timestamp) FROM tevento");
$row=mysql_fetch_array($result_t); $row=mysql_fetch_array($result_t);
echo "<b>".$lang_label["latest_date"]."</b>"; echo "<b>".$lang_label["latest_date"]."</b>";
echo "<td class='datos'>".$row[0]; echo "<td class='datos'>".$row[0]."</td>";
echo "</table>"; echo "</table>";
?> ?>
<h3><?php echo $lang_label["purge_data"] ?></h3> <h3><?php echo $lang_label["purge_data"] ?></h3>
<form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_event"> <form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_event">
<table width='300' border='0'> <table width='300' cellpadding='4' cellspacing='4' class='databox'>
<tr><td class='datos'> <tr><td class='datos'>
<select name="date_purge" width="255px"> <select name="date_purge" width="255px">
<option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_event_90day"] ?> <option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_event_90day"] ?>
@ -113,7 +113,7 @@ if (comprueba_login() == 0)
</select> </select>
<td class="datos"> <td class="datos">
<input class="sub" type="submit" name="purgedb" value="<?php echo $lang_label["doit"] ?>" onClick="if (!confirm('<?php echo $lang_label["are_you_sure"] ?>')) return false;"> <input class="sub wand" type="submit" name="purgedb" value="<?php echo $lang_label["doit"] ?>" onClick="if (!confirm('<?php echo $lang_label["are_you_sure"] ?>')) return false;">
</table> </table>
</form> </form>

View File

@ -121,7 +121,8 @@ if (comprueba_login() == 0)
# Select Agent for further operations. # Select Agent for further operations.
?> ?>
<form action='index.php?sec=gdbman&sec2=godmode/db/db_purge' method='post'> <form action='index.php?sec=gdbman&sec2=godmode/db/db_purge' method='post'>
<table><tr><td class='datos'> <table class='databox'>
<tr><td class='datos'>
<select name='agent' class='w130'> <select name='agent' class='w130'>
<?php <?php
@ -135,7 +136,7 @@ if (comprueba_login() == 0)
?> ?>
</select> </select>
<a href="#" class="tip">&nbsp;<span><?php echo $help_label["db_purge0"] ?></span></a> <a href="#" class="tip">&nbsp;<span><?php echo $help_label["db_purge0"] ?></span></a>
<td><input class='sub' type='submit' name='purgedb_ag' value='<?php echo $lang_label["get_data"] ?>'> <td><input class='sub upd' type='submit' name='purgedb_ag' value='<?php echo $lang_label["get_data"] ?>'>
<a href="#" class="tip">&nbsp;<span><?php echo $help_label["db_purge1"] ?></span></a> <a href="#" class="tip">&nbsp;<span><?php echo $help_label["db_purge1"] ?></span></a>
</table><br> </table><br>
@ -173,7 +174,7 @@ if (comprueba_login() == 0)
?> ?>
<table width=300 border=0> <table width='300' border='0' class='databox' cellspacing='4' cellpadding='4'>
<tr><td class=datos> <tr><td class=datos>
<?php echo $lang_label["rango3"]?> <?php echo $lang_label["rango3"]?>
</td> </td>
@ -225,7 +226,7 @@ if (comprueba_login() == 0)
</table> </table>
<br> <br>
<h3><?php echo $lang_label["purge_data"] ?></h3> <h3><?php echo $lang_label["purge_data"] ?></h3>
<table width=300 border=0> <table width='300' border='0' class='databox' cellspacing='4' cellpadding='4'>
<tr><td> <tr><td>
<select name="date_purge" width="255px"> <select name="date_purge" width="255px">
<option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_90day"] ?> <option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_90day"] ?>
@ -236,7 +237,7 @@ if (comprueba_login() == 0)
<option value="<?php echo $d1 ?>"><?php echo $lang_label["purge_1day"] ?> <option value="<?php echo $d1 ?>"><?php echo $lang_label["purge_1day"] ?>
</select> </select>
<td><input class="sub" type="submit" name="purgedb" value="<?php echo $lang_label["doit"] ?>" onClick="if (!confirm('<?php echo $lang_label["are_you_sure"] ?>')) return false;"> <td><input class="sub wand" type="submit" name="purgedb" value="<?php echo $lang_label["doit"] ?>" onClick="if (!confirm('<?php echo $lang_label["are_you_sure"] ?>')) return false;">
</table> </table>
</form> </form>

View File

@ -49,7 +49,7 @@ if (comprueba_login() == 0)
<h2><?php echo $lang_label["dbmain_title"]; ?> &gt; <h2><?php echo $lang_label["dbmain_title"]; ?> &gt;
<?php echo $lang_label["db_refine"]; ?><a href='help/<?php echo $help_code?>/chap8.php#831' target='_help' class='help'>&nbsp;<span><?php echo $lang_label["help"] ?></span></a></h2> <?php echo $lang_label["db_refine"]; ?><a href='help/<?php echo $help_code?>/chap8.php#831' target='_help' class='help'>&nbsp;<span><?php echo $lang_label["help"] ?></span></a></h2>
<form method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_refine&operacion=1"> <form method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_refine&operacion=1">
<table width='500' border='0' cellspacing='3' cellpadding='5'> <table width='500' border='0' cellspacing='4' cellpadding='4' class='databox'>
<tr> <tr>
<td class="datost"><b><?php echo $lang_label["source_agent"]; ?></b><br><br> <td class="datost"><b><?php echo $lang_label["source_agent"]; ?></b><br><br>
<select name="origen" class="w130"> <select name="origen" class="w130">
@ -63,12 +63,12 @@ if (comprueba_login() == 0)
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ){ if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ){
if ( $_POST["origen"] != $row["id_agente"]) if ( $_POST["origen"] != $row["id_agente"])
echo "<option value=".$row["id_agente"].">".$row["nombre"]; echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
} }
else else
echo "<option value=".$row["id_agente"].">".$row["nombre"]; echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
} }
echo '</select>&nbsp;&nbsp;<input type=submit name="update_agent" class=sub value="'.$lang_label["get_info"].'"><br><br>'; echo '</select>&nbsp;&nbsp;<input type=submit name="update_agent" class="sub upd" value="'.$lang_label["get_info"].'"><br><br>';
echo "<b>".$lang_label["modules"]."</b><br><br>"; echo "<b>".$lang_label["modules"]."</b><br><br>";
echo "<select name='origen_modulo[]' size=5 multiple=yes class='w130'>"; echo "<select name='origen_modulo[]' size=5 multiple=yes class='w130'>";
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ) { if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ) {
@ -77,7 +77,7 @@ if (comprueba_login() == 0)
$sql1="SELECT * FROM tagente_modulo WHERE id_agente = ".$agente_modulo; $sql1="SELECT * FROM tagente_modulo WHERE id_agente = ".$agente_modulo;
$result = mysql_query($sql1); $result = mysql_query($sql1);
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
echo "<option value=".$row["id_agente_modulo"].">".$row["nombre"]; echo "<option value=".$row["id_agente_modulo"].">".$row["nombre"]."</option>";
} }
} }
echo "</select>"; echo "</select>";
@ -88,7 +88,7 @@ if (comprueba_login() == 0)
<tr class=datos><td><?php echo $lang_label["max"]; ?><td><input type="text" name="max" size=4 value=0> <tr class=datos><td><?php echo $lang_label["max"]; ?><td><input type="text" name="max" size=4 value=0>
<tr><td></td></tr> <tr><td></td></tr>
<tr><td class="bot" colspan="2" align="right"> <tr><td class="bot" colspan="2" align="right">
<input type=submit name="eliminar" class=sub value="<?php echo $lang_label["delete"].'" onClick="if (!confirm("'.$lang_label["are_you_sure"].'")) return false;>'; ?> <input type="submit" name="eliminar" class="sub delete" value="<?php echo $lang_label["delete"].'" onClick="if (!confirm("'.$lang_label["are_you_sure"].'")) return false;>'; ?>
</table> </table>
</td></tr> </td></tr>

View File

@ -159,7 +159,7 @@ if (comprueba_login() == 0){
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&amp;sec2=godmode/db/db_info' class='mn'>".$lang_label["db_info"]."</a></li></ul></div>"; echo "<ul class='mn'><li><a href='index.php?sec=gdbman&amp;sec2=godmode/db/db_info' class='mn'>".$lang_label["db_info"]."</a></li></ul></div>";
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/db/db_purge"){ if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/db/db_purge"){
echo "<div class='arrowg'>"; echo "<div class='arrowgs'>";
} }
else echo "<div class='arrowg'>"; else echo "<div class='arrowg'>";
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&amp;sec2=godmode/db/db_purge' class='mn'>".$lang_label["db_purge"]."</a></li></ul></div>"; echo "<ul class='mn'><li><a href='index.php?sec=gdbman&amp;sec2=godmode/db/db_purge' class='mn'>".$lang_label["db_purge"]."</a></li></ul></div>";

View File

@ -78,7 +78,7 @@ if (isset($_GET["delete"])){ // if delete
echo "<h2>".$lang_label["module_management"]." &gt; "; echo "<h2>".$lang_label["module_management"]." &gt; ";
echo $lang_label["network_component_group_management"]."</h2>"; echo $lang_label["network_component_group_management"]."</h2>";
echo "<table cellpadding=4 cellspacing=4 width=550>"; echo "<table cellpadding='4' cellspacing='4' width='550' class='databox'>";
echo "<th>".$lang_label["name"]."</th>"; echo "<th>".$lang_label["name"]."</th>";
echo "<th>".$lang_label["parent"]."</th>"; echo "<th>".$lang_label["parent"]."</th>";
echo "<th>".$lang_label["delete"]."</th>"; echo "<th>".$lang_label["delete"]."</th>";
@ -96,7 +96,7 @@ while ($row=mysql_fetch_array($result)){
} }
echo "<tr> echo "<tr>
<td class='$tdcolor'> <td class='$tdcolor'>
<b><a href='index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups_form&edit=1&id_sg=".$row["id_sg"]."'>".$row["name"]."</A></B> <b><a href='index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups_form&edit=1&id_sg=".$row["id_sg"]."'>".$row["name"]."</a></b>
</td> </td>
<td class='$tdcolor'> <td class='$tdcolor'>
".give_network_component_group_name ($row["parent"])." ".give_network_component_group_name ($row["parent"])."
@ -110,8 +110,9 @@ while ($row=mysql_fetch_array($result)){
</tr>"; </tr>";
} }
echo "<tr><td colspan='3'><div class='raya'></div></td></tr>"; echo "</table>";
echo "<tr><td colspan='3' align='right'>"; echo '<table width="550">';
echo '<tr><td align="right">';
echo "<form method=post action='index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups_form&create=1'>"; echo "<form method=post action='index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups_form&create=1'>";
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create"]."'>"; echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create"]."'>";
echo "</form></td></tr></table>"; echo "</form></td></tr></table>";

View File

@ -50,20 +50,20 @@ if (isset($_GET["edit"])){ // Edit mode
} }
echo "<h2>".$lang_label["network_component_group_management"]."</h2>"; echo "<h2>".$lang_label["network_component_group_management"]."</h2>";
echo '<table width="500" cellspacing="4" cellpadding="4">'; echo '<table width="500" cellspacing="4" cellpadding="4" class="databox">';
// Different Form url if it's a create or if it's a update form // Different Form url if it's a create or if it's a update form
if ($id_sg != -1) if ($id_sg != -1)
echo "<form name='snmp_c' method='post' action='http://pandora.localhost/index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups&update=1&id_sg=$id_sg'>"; echo "<form name='snmp_c' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups&update=1&id_sg=$id_sg'>";
else else
echo "<form name='snmp_c' method='post' action='http://pandora.localhost/index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups&create=1'>"; echo "<form name='snmp_c' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups&create=1'>";
echo "<tr><td class='lb' rowspan='3' width='3'>"; echo "<tr>";
echo "<td class='datos'>".$lang_label["name"]; echo "<td class='datos'>".$lang_label["name"]."</td>";
echo "<td class='datos'><input type='text' name='name' size=30 value='$name'>"; echo "<td class='datos'><input type='text' name='name' size=30 value='$name'></td>";
echo "<tr>"; echo "<tr>";
echo "<td class='datos2'>".$lang_label["parent"]; echo "<td class='datos2'>".$lang_label["parent"]."</td>";
echo "<td class='datos2'>"; echo "<td class='datos2'>";
echo "<select name='parent'>"; echo "<select name='parent'>";
echo "<option value='$parent'>".give_network_component_group_name($parent); echo "<option value='$parent'>".give_network_component_group_name($parent);
@ -73,15 +73,15 @@ while ($row=mysql_fetch_array($result))
echo "<option value='".$row["id_sg"]."'>".give_network_component_group_name($row["id_sg"]); echo "<option value='".$row["id_sg"]."'>".give_network_component_group_name($row["id_sg"]);
echo "</select>"; echo "</select>";
echo "</td></tr><table>";
echo " <tr><td colspan='3'><div class='raya'></div></td></tr> echo '<table width="500">';
<tr><td colspan='3' align='right'>"; echo '<tr><td align="right">';
if ($id_sg == -1) if ($id_sg == -1)
echo "<input name='crtbutton' type='submit' class='sub wand' value='".$lang_label["create"]."'>"; echo "<input name='crtbutton' type='submit' class='sub wand' value='".$lang_label["create"]."'>";
else else
echo "<input name='uptbutton' type='submit' class='sub upd' value='".$lang_label["update"]."'>"; echo "<input name='uptbutton' type='submit' class='sub upd' value='".$lang_label["update"]."'>";
echo "</form></table>"; echo "</form></td></tr></table>";
?> ?>

View File

@ -166,7 +166,7 @@ else
echo "<form method='POST' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components'>"; echo "<form method='POST' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components'>";
echo "<table cellpadding='3' cellspacing='3'><tr>"; echo "<table cellpadding='4' cellspacing='4' class='databox'><tr>";
echo "<td>".$lang_label["group"]."</td>"; echo "<td>".$lang_label["group"]."</td>";
echo "<td valign='middle'>"; echo "<td valign='middle'>";
echo "<select name='ncgroup' onChange='javascript:this.form.submit();'>"; echo "<select name='ncgroup' onChange='javascript:this.form.submit();'>";
@ -180,7 +180,7 @@ while ($row = mysql_fetch_array ($result))
echo "</select>"; echo "</select>";
echo "<td valign='middle'>"; echo "<td valign='middle'>";
echo "<noscript><input name='uptbutton' type='submit' class='sub' value='".$lang_label["show"]."'></noscript>"; echo "<noscript><input name='uptbutton' type='submit' class='sub' value='".$lang_label["show"]."'></noscript>";
echo "</td></form></table><br><br>"; echo "</td></form></table><br>";
if ($ncgroup != 0) if ($ncgroup != 0)
$sql1 = "SELECT * FROM tnetwork_component WHERE id_group = $ncgroup"; $sql1 = "SELECT * FROM tnetwork_component WHERE id_group = $ncgroup";
@ -189,16 +189,16 @@ else
$result = mysql_query ($sql1); $result = mysql_query ($sql1);
if ( $row = mysql_num_rows ($result)){ if ( $row = mysql_num_rows ($result)){
echo '<table width="750" cellpadding="4" cellspacing="4">'; echo '<table width="750" cellpadding="4" cellspacing="4" class="databox">';
echo '<tr>'; echo '<tr>';
echo "<th>".$lang_label["module_name"]; echo "<th>".$lang_label["module_name"]."</th>";
echo "<th>".$lang_label["type"]; echo "<th>".$lang_label["type"]."</th>";
echo "<th>".$lang_label["interval"]; echo "<th>".$lang_label["interval"]."</th>";
echo "<th>".$lang_label["description"]; echo "<th>".$lang_label["description"]."</th>";
echo "<th>".$lang_label["nc.group"]; echo "<th>".$lang_label["nc.group"]."</th>";
//echo "<th>".$lang_label["module_group"]; //echo "<th>".$lang_label["module_group"];
echo "<th>".$lang_label["max_min"]; echo "<th>".$lang_label["max_min"]."</th>";
echo "<th width=50>".$lang_label["action"]; echo "<th width=50>".$lang_label["action"]."</th>";
$color=1; $color=1;
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
if ($color == 1){ if ($color == 1){
@ -218,7 +218,7 @@ if ( $row = mysql_num_rows ($result)){
$module_group2 = $row["id_module_group"]; $module_group2 = $row["id_module_group"];
echo "<tr><td class='".$tdcolor."_id'>"; echo "<tr><td class='".$tdcolor."_id'>";
echo "<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components_form&update=1&id_nc=".$row["id_nc"]."'>".$nombre_modulo."</a>"; echo "<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components_form&update=1&id_nc=".$row["id_nc"]."'>".$nombre_modulo."</a></td>";
echo "<td class='".$tdcolor."f9'>"; echo "<td class='".$tdcolor."f9'>";
if ($id_tipo > 0) { if ($id_tipo > 0) {
echo "<img src='images/".show_icon_type($id_tipo)."' border=0>"; echo "<img src='images/".show_icon_type($id_tipo)."' border=0>";
@ -228,6 +228,7 @@ if ( $row = mysql_num_rows ($result)){
} else { } else {
echo "<td class='$tdcolor'> N/A"; echo "<td class='$tdcolor'> N/A";
} }
echo "</td>";
echo "<td class='$tdcolor'>".substr($descripcion,0,30)."</td>"; echo "<td class='$tdcolor'>".substr($descripcion,0,30)."</td>";
echo "<td class='$tdcolor'>".give_network_component_group_name($id_group)."</td>"; echo "<td class='$tdcolor'>".give_network_component_group_name($id_group)."</td>";
//echo "<td class='$tdcolor'>". //echo "<td class='$tdcolor'>".
@ -240,10 +241,12 @@ if ( $row = mysql_num_rows ($result)){
echo $module_max." / ".$module_min; echo $module_max." / ".$module_min;
echo "<td class='$tdcolor' align='center'>"; echo "<td class='$tdcolor' align='center'>";
echo "<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&delete=1&id_nc=".$row["id_nc"]."'>"; echo "<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&delete=1&id_nc=".$row["id_nc"]."'>";
echo "<img src='images/cross.png' border=0 alt='".$lang_label["delete"]."'></A>"; echo "<img src='images/cross.png' border=0 alt='".$lang_label["delete"]."'></a></td>";
echo "</tr>";
} }
echo "<tr><td colspan='7'><div class='raya'></div></td></tr>"; echo "</table>";
echo "<tr><td colspan='7' align='right'>"; echo "<table width='750px'>";
echo "<tr><td align='right'>";
echo "<form method=post action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components_form&create=1'>"; echo "<form method=post action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components_form&create=1'>";
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create"]."'>"; echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create"]."'>";
echo "</form></td></tr></table>"; echo "</form></td></tr></table>";

View File

@ -184,44 +184,44 @@ if (isset($_GET["update"])){ // Edit mode
} }
echo "<h2>".$lang_label["network_component_management"]."</h2>"; echo "<h2>".$lang_label["network_component_management"]."</h2>";
echo '<table width="700" cellspacing="4" cellpadding="4">'; echo '<table width="700" cellspacing="4" cellpadding="4" class="databox">';
// Different Form url if it's a create or if it's a update form // Different Form url if it's a create or if it's a update form
if ($id_nc != -1) if ($id_nc != -1) {
echo "<form name='modulo' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&update=1&id_nc=$id_nc'>"; echo "<form name='modulo' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&update=1&id_nc=$id_nc'>";
else } else {
echo "<form name='modulo' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&create=1'>"; echo "<form name='modulo' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&create=1'>";
echo "<tr><td class='lb' rowspan='10' width='3'>"; }
echo "<tr>"; echo "<tr>";
echo '<tr><td class="datos2">'.$lang_label["module_name"]; echo '<tr><td class="datos2">'.$lang_label["module_name"];
echo "<td class='datos2'><input type='text' name='name' size='25' value='$name'>"; echo "<td class='datos2'><input type='text' name='name' size='25' value='$name'>";
//-- Module type combobox //-- Module type combobox
echo "<td class='datos2'>".$lang_label["module_type"]; echo "<td class='datos2'>".$lang_label["module_type"]."</td>";
echo "<td class='datos2'>"; echo "<td class='datos2'>";
echo '<select name="tipo" onChange="type_change()">'; echo '<select name="tipo" onChange="type_change()">';
$sql1="SELECT id_tipo, nombre FROM ttipo_modulo WHERE id_tipo != '$type' ORDER BY nombre"; $sql1="SELECT id_tipo, nombre FROM ttipo_modulo WHERE id_tipo != '$type' ORDER BY nombre";
$result=mysql_query($sql1); $result=mysql_query($sql1);
echo "<option value='$type'>". dame_nombre_tipo_modulo($type); echo "<option value='$type'>". dame_nombre_tipo_modulo($type);
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
echo "<option value='".$row["id_tipo"]."'>".$row["nombre"]; echo "<option value='".$row["id_tipo"]."'>".$row["nombre"]."</option>";
} }
echo "</select>"; echo "</select>";
echo "</td></tr>";
echo "<tr>"; echo "<tr>";
echo "<td class='datos'>".$lang_label["group"]; echo "<td class='datos'>".$lang_label["group"]."</td>";
echo "<td class='datos'>"; echo "<td class='datos'>";
echo "<select name='id_group'>"; echo "<select name='id_group'>";
echo "<option value='$id_group'>".give_network_component_group_name($id_group); echo "<option value='$id_group'>".give_network_component_group_name($id_group)."</option>";
$sql1 = "SELECT * FROM tnetwork_component_group where id_sg != '$id_group'"; $sql1 = "SELECT * FROM tnetwork_component_group where id_sg != '$id_group'";
$result=mysql_query($sql1); $result=mysql_query($sql1);
while ($row=mysql_fetch_array($result)) while ($row=mysql_fetch_array($result))
echo "<option value='".$row["id_sg"]."'>".give_network_component_group_name($row["id_sg"]); echo "<option value='".$row["id_sg"]."'>".give_network_component_group_name($row["id_sg"])."</option>";
echo "</select>"; echo "</select>";
echo "<td class='datos'>".$lang_label["module_group"]; echo "<td class='datos'>".$lang_label["module_group"]."</td>";
echo '<td class="datos">'; echo '<td class="datos">';
echo '<select name="id_module_group">'; echo '<select name="id_module_group">';
if ($id_nc != -1 ) if ($id_nc != -1 )
@ -229,7 +229,7 @@ if ($id_nc != -1 )
$sql1='SELECT * FROM tmodule_group'; $sql1='SELECT * FROM tmodule_group';
$result=mysql_query($sql1); $result=mysql_query($sql1);
while ($row=mysql_fetch_array($result)) while ($row=mysql_fetch_array($result))
echo "<option value='".$row["id_mg"]."'>".$row["name"]; echo "<option value='".$row["id_mg"]."'>".$row["name"]."</option>";
echo "</select>"; echo "</select>";
echo "<tr>"; echo "<tr>";
@ -238,27 +238,34 @@ echo '<td class="datos2">';
echo '<input type="text" name="module_interval" size="5" value="'.$module_interval.'">'; echo '<input type="text" name="module_interval" size="5" value="'.$module_interval.'">';
?> ?>
<td class="datos2"><?php echo $lang_label["tcp_port"] ?> <td class="datos2"><?php echo $lang_label["tcp_port"] ?></td>
<td class="datos2"><input type="text" name="tcp_port" size="5" value="<?php echo $tcp_port ?>"> <td class="datos2">
<input type="text" name="tcp_port" size="5" value="<?php echo $tcp_port ?>">
<tr><td class="datos"><?php echo $lang_label["snmp_oid"] ?> </td></tr>
<td class="datos"><input type="text" name="snmp_oid" size="25" value="<?php echo $snmp_oid ?>"> <tr><td class="datos"><?php echo $lang_label["snmp_oid"] ?></td>
<td class="datos">
<td class="datos"><?php echo $lang_label["snmp_community"] ?> <input type="text" name="snmp_oid" size="25" value="<?php echo $snmp_oid ?>">
<td class="datos"><input type="text" name="snmp_community" size="25" value="<?php echo $snmp_community ?>"> </td>
<td class="datos"><?php echo $lang_label["snmp_community"] ?></td>
<td class="datos">
<tr><td class="datos2t"><?php echo $lang_label["tcp_send"] ?> <input type="text" name="snmp_community" size="25" value="<?php echo $snmp_community ?>">
<td class="datos2"><textarea name="tcp_send" cols="20" rows="2"><?php echo $tcp_send ?></textarea> </td></tr>
<tr><td class="datos2t"><?php echo $lang_label["tcp_send"] ?></td>
<td class="datos2t"><?php echo $lang_label["tcp_rcv"] ?> <td class="datos2">
<td class="datos2"><textarea name="tcp_rcv" cols="20" rows="2"><?php echo $tcp_rcv ?></textarea> <textarea name="tcp_send" cols="20" rows="2"><?php echo $tcp_send ?></textarea>
</td>
<tr><td class="datos"><?php echo $lang_label["mindata"] ?> <td class="datos2t"><?php echo $lang_label["tcp_rcv"] ?></td>
<td class="datos"><input type="text" name="modulo_min" size="5" value="<?php echo $modulo_min ?>"> <td class="datos2">
<td class="datos"><?php echo $lang_label["maxdata"] ?> <textarea name="tcp_rcv" cols="20" rows="2"><?php echo $tcp_rcv ?></textarea>
<td class="datos"><input type="text" name="modulo_max" size="5" value="<?php echo $modulo_max ?>"> </td></tr>
<tr><td class="datos"><?php echo $lang_label["mindata"] ?></td>
<td class="datos">
<input type="text" name="modulo_min" size="5" value="<?php echo $modulo_min ?>">
</td>
<td class="datos"><?php echo $lang_label["maxdata"] ?></td>
<td class="datos">
<input type="text" name="modulo_max" size="5" value="<?php echo $modulo_max ?>">
</td></tr>
<?PHP <?PHP
echo '<tr><td class="datos2t">'.$lang_label["comments"]; echo '<tr><td class="datos2t">'.$lang_label["comments"];
@ -266,15 +273,16 @@ echo '<td class="datos2" colspan=3>';
echo '<textarea name="descripcion" cols=70 rows=2>'; echo '<textarea name="descripcion" cols=70 rows=2>';
echo $description; echo $description;
echo "</textarea>"; echo "</textarea>";
echo "<tr><td colspan='5'><div class='raya'></div></td></tr>"; echo "</td></tr>";
echo "<tr>"; echo "</table>";
echo "<td colspan=5 align='right'>"; echo "<table width='700px'>";
echo "</tr><td align='right'>";
if ($id_nc != "-1") if ($id_nc != "-1")
echo '<input name="updbutton" type="submit" class="sub upd" value="'.$lang_label["update"].'">'; echo '<input name="updbutton" type="submit" class="sub upd" value="'.$lang_label["update"].'">';
else else
echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["add"].'">'; echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["add"].'">';
echo "</form>"; echo "</form>";
echo "</table>"; echo "</td></tr></table>";
?> ?>

View File

@ -49,7 +49,7 @@ $sql1='SELECT * FROM tnetwork_profile ORDER BY name';
$result=mysql_query($sql1); $result=mysql_query($sql1);
$color=0; $color=0;
if (mysql_num_rows($result)) { if (mysql_num_rows($result)) {
echo "<table cellpadding=4 cellspacing=4 width=650>"; echo "<table cellpadding='4' cellspacing='4' width='650' class='databox'>";
echo "<th>".$lang_label["name"]."</th>"; echo "<th>".$lang_label["name"]."</th>";
echo "<th>".$lang_label["description"]."</th>"; echo "<th>".$lang_label["description"]."</th>";
echo "<th>".$lang_label["action"]."</th>"; echo "<th>".$lang_label["action"]."</th>";
@ -63,29 +63,31 @@ while ($row=mysql_fetch_array($result)){
$tdcolor = "datos2"; $tdcolor = "datos2";
$color = 1; $color = 1;
} }
echo "<tr> echo "
<td class='$tdcolor'> <tr>
<b><a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np=".$row["id_np"]."'>".$row["name"]."</A></B> <td class='$tdcolor'>
</td> <b><a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np=".$row["id_np"]."'>".$row["name"]."</a></b>
<td class='$tdcolor'> </td>
".$row["description"]." <td class='$tdcolor'>
</td> ".$row["description"]."
<td class='$tdcolor' align='center'> </td>
<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates&delete=".$row["id_np"]."' <td class='$tdcolor' align='center'>
onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) <a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates&delete=".$row["id_np"]."'
return false;'> onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\'))
<img border='0' src='images/cross.png'></a> return false;'>
</td> <img border='0' src='images/cross.png'></a>
</tr>"; </td>
</tr>";
} }
if (mysql_num_rows($result)) { if (mysql_num_rows($result)) {
echo "<tr><td colspan='3'><div class='raya'></div></td></tr>"; echo "</table>";
} else { } else {
echo "<div class='nf'>".$lang_label["no_netprofiles"]."</div>"; echo "<div class='nf'>".$lang_label["no_netprofiles"]."</div>";
echo "<table>";
} }
echo "<tr><td colspan='3' align='right'>"; echo "<table width='650px'>";
echo "<tr><td align='right'>";
echo "<form method=post action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np=-1'>"; echo "<form method=post action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np=-1'>";
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create"]."'>"; echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create"]."'>";
echo "</form></td></tr></table>"; echo "</form></td></tr></table>";

View File

@ -102,20 +102,20 @@ if (isset($_GET["update"])){ // Update profile
} }
} }
echo "<h2>".$lang_label["module_management"]." &gt; ";
echo "<h2>".$lang_label["network_profile_management"]."</h2>"; echo $lang_label["network_profile_management"]."</h2>";
echo "<table width='550' cellpadding='4' cellspacing='4'>"; echo "<table width='550' cellpadding='4' cellspacing='4' class='databox'>";
if ($id_np == -1) if ($id_np == -1)
echo '<form name="new_user" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&create=1"><tr><td class="lb" rowspan="4" width="3">'; echo '<form name="new_user" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&create=1">';
else else
echo '<form name="user_mod" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&update='.$id_np.'"><tr><td class="lb" rowspan="4" width="3">'; echo '<form name="user_mod" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&update='.$id_np.'">';
echo "<tr><td class='datos'>".$lang_label["name"]; echo "<tr><td class='datos'>".$lang_label["name"]."</td>";
echo "<td class='datos'>"; echo "<td class='datos'>";
echo "<input type='text' size=25 name='name' value='$name'>"; echo "<input type='text' size=25 name='name' value='$name'>";
echo "</td>";
echo "<tr><td class='datos2'>".$lang_label["description"]; echo "<tr><td class='datos2'>".$lang_label["description"]."</td>";
echo "<td class='datos2'>"; echo "<td class='datos2'>";
echo "<textarea cols=50 rows=2 name='description'>"; echo "<textarea cols=50 rows=2 name='description'>";
if (isset($description)) { if (isset($description)) {
@ -126,13 +126,13 @@ echo "</td></tr></table>";
if ($id_np != -1){ if ($id_np != -1){
// Show associated modules, allow to delete, and to add // Show associated modules, allow to delete, and to add
echo '<table width="550" cellpadding="4" cellspacing="4">'; echo '<table width="550" cellpadding="4" cellspacing="4" class="databox">';
echo '<tr>'; echo '<tr>';
echo "<th>".$lang_label["module_name"]; echo "<th>".$lang_label["module_name"]."</th>";
echo "<th>".$lang_label["type"]; echo "<th>".$lang_label["type"]."</th>";
echo "<th>".$lang_label["description"]; echo "<th>".$lang_label["description"]."</th>";
echo "<th>".$lang_label["nc.group"]; echo "<th>".$lang_label["nc.group"]."</th>";
echo "<th>X"; echo "<th>X</th>";
$color =0; $color =0;
$sql1 = "SELECT * FROM tnetwork_profile_component where id_np = $id_np"; $sql1 = "SELECT * FROM tnetwork_profile_component where id_np = $id_np";
$result = mysql_query ($sql1); $result = mysql_query ($sql1);
@ -169,21 +169,20 @@ if ($id_np != -1){
echo "</table>"; echo "</table>";
} }
echo "<table width=550>"; echo "<table width='550'>";
echo '<tr><td><div class="raya"></div></td></tr>'; echo '<tr><td align="right">';
echo '<tr><td align="right" >';
if ($id_np == -1) if ($id_np == -1)
echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["create"].'">'; echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["create"].'">';
else else
echo '<input name="updbutton" type="submit" class="sub upd" value="'.$lang_label["update"].'">'; echo '<input name="updbutton" type="submit" class="sub upd" value="'.$lang_label["update"].'">';
echo "</table>"; echo "</td></tr></table>";
echo "</form>"; echo "</form>";
if ($id_np != -1){ if ($id_np != -1){
echo "<h3>"."Add module"."</h3>"; echo "<h3>"."Add module"."</h3>";
echo "<table>"; echo "<table class='databox'>";
echo '<tr><td valign="top">'; echo '<tr><td>';
echo '<form name="add_module" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np='.$id_np.'&add_module=1">'; echo '<form name="add_module" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np='.$id_np.'&add_module=1">';
$sql1 = "SELECT * FROM tnetwork_component ORDER BY id_group"; $sql1 = "SELECT * FROM tnetwork_component ORDER BY id_group";
$result = mysql_query ($sql1); $result = mysql_query ($sql1);
@ -195,7 +194,7 @@ if ($id_np != -1){
echo '<td valign="top">'; echo '<td valign="top">';
echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["add"].'">'; echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["add"].'">';
echo "</table>"; echo "</td></tr></table>";
echo "</form>"; echo "</form>";
} }

View File

@ -59,7 +59,7 @@ if (give_acl($id_user, 0, "PM")==1) {
echo "<h2>".$lang_label["module_management"]." &gt; "; echo "<h2>".$lang_label["module_management"]." &gt; ";
echo $lang_label["defined_modules"]."</h2>"; echo $lang_label["defined_modules"]."</h2>";
echo "<table cellpadding=4 cellspacing=4 width=750>"; echo "<table cellpadding='4' cellspacing='4' width='750' class='databox'>";
echo "<th>".$lang_label["icon"]."</th>"; echo "<th>".$lang_label["icon"]."</th>";
echo "<th>".$lang_label["name"]."</th>"; echo "<th>".$lang_label["name"]."</th>";
echo "<th>".$lang_label["type"]."</th>"; echo "<th>".$lang_label["type"]."</th>";
@ -92,16 +92,17 @@ if (give_acl($id_user, 0, "PM")==1) {
".$row["descripcion"]." ".$row["descripcion"]."
</td> </td>
</tr>"; </tr>";
} }
echo "<tr><td colspan='4'><div class='raya'></div></td></tr>"; echo "</table>";
echo "<tr><td colspan='4' align='right'>";
echo "<form method=post action='index.php?sec=gmodules&
sec2=godmode/modules/manage_modules&create=1'>";
/* not used yet /* not used yet
echo "<table>";
echo "<tr><td align='right'><form method=post action='index.php?sec=gmodules&
sec2=godmode/modules/manage_modules&create=1'>";
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_module"]."'>"; echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_module"]."'>";
echo "</form></td></tr></table>
*/ */
echo "</form></td></tr></table>";
} // Fin pagina } // Fin pagina
else { else {

View File

@ -134,131 +134,161 @@ if (comprueba_login() == 0)
); );
// Form to manage date // Form to manage date
if (isset ($id_perfil)){ // There are values defined, let's show form with data for INSERT or UPDATE if (isset ($id_perfil)){ // There are values defined, let's show form with data for INSERT or UPDATE
echo "<table width='400' cellpadding='3' cellspacing='3'>"; echo "<table width='400' cellpadding='4' cellspacing='4' class='databox'>";
echo "<tr><td class='lb' rowspan='11' width='5'>"; echo "<tr>";
echo "<form method='post' action='index.php?sec=gperfiles&sec2=godmode/profiles/profile_list&update_data'>"; echo "<form method='post' action='index.php?sec=gperfiles&sec2=godmode/profiles/profile_list&update_data'>";
echo "<input type=hidden name=id_perfil value='".$id_perfil."'>"; echo "<input type=hidden name=id_perfil value='".$id_perfil."'>";
echo "<td class=datos>".$lang_label["profile_name"]."<td class=datos><input name='name' type=text size='27' value='".$name."'>"; echo "
<td class=datos>".$lang_label["profile_name"]."</td>
echo "<tr><td class=datos2>".$lang_label["incident_view"]."<td class=datos2><input name='incident_view' type=checkbox class='chk' value='1' "; <td class=datos>
if ($incident_view == 1) echo "checked"; echo ">"; <input name='name' type=text size='27' value='".$name."'></td></tr>
<tr><td class=datos2>".$lang_label["incident_view"]."</td>
echo "<tr><td class=datos>".$lang_label["incident_edit"]."<td class=datos><input name='incident_edit' type=checkbox class='chk' value='1' "; <td class=datos2>
if ($incident_edit == 1) echo "checked";echo ">"; <input name='incident_view' type=checkbox class='chk' value='1' ";
if ($incident_view == 1) echo "checked"; echo "></td></tr>
echo "<tr><td class=datos2>".$lang_label["manage_incidents"]."<td class=datos2><input name='incident_management' type=checkbox class='chk' value='1' "; <tr><td class=datos>".$lang_label["incident_edit"]."</td>
if ($incident_management == 1) echo "checked";echo ">"; <td class=datos>
<input name='incident_edit' type=checkbox class='chk' value='1' ";
echo "<tr><td class=datos>".$lang_label["view_agents"]."<td class=datos><input name='agent_view' type=checkbox class='chk' value='1' "; if ($incident_edit == 1) echo "checked";echo "></td></tr>
if ($agent_view == 1) echo "checked";echo ">"; <tr><td class=datos2>".$lang_label["manage_incidents"]."</td>
<td class=datos2>
echo "<tr><td class=datos2>".$lang_label["agent_edit"]."<td class=datos2><input name='agent_edit' type=checkbox class='chk' value='1' "; <input name='incident_management' type=checkbox class='chk' value='1' ";
if ($agent_edit == 1) echo "checked";echo ">"; if ($incident_management == 1) echo "checked";echo "></td></tr>
<tr><td class=datos>".$lang_label["view_agents"]."</td>
echo "<tr><td class=datos>".$lang_label["alert_edit"]."<td class=datos><input name='alert_edit' type=checkbox class='chk' value='1' "; <td class=datos>
if ($alert_edit == 1) echo "checked";echo ">"; <input name='agent_view' type=checkbox class='chk' value='1' ";
if ($agent_view == 1) echo "checked";echo "></td></tr>
echo "<tr><td class=datos2>".$lang_label["manage_users"]."<td class=datos2><input name='user_management' class='chk' type=checkbox value='1' "; <tr><td class=datos2>".$lang_label["agent_edit"]."</td>
if ($user_management == 1) echo "checked";echo ">"; <td class=datos2>
<input name='agent_edit' type=checkbox class='chk' value='1' ";
echo "<tr><td class=datos>".$lang_label["manage_db"]."<td class=datos><input name='db_management' class='chk' type=checkbox value='1' "; if ($agent_edit == 1) echo "checked";echo "></td></tr>
if ($db_management == 1) echo "checked";echo ">"; <tr><td class=datos>".$lang_label["alert_edit"]."</td>
<td class=datos>
echo "<tr><td class=datos2>".$lang_label["manage_alerts"]."<td class=datos2><input name='alert_management' class='chk' type=checkbox value='1' "; <input name='alert_edit' type=checkbox class='chk' value='1' ";
if ($alert_management == 1) echo "checked";echo ">"; if ($alert_edit == 1) echo "checked";echo "></td></tr>
<tr><td class=datos2>".$lang_label["manage_users"]."</td>
echo "<tr><td class=datos>".$lang_label["pandora_management"]."<td class=datos><input name='pandora_management' class='chk' type=checkbox value='1' "; <td class=datos2>
if ($pandora_management == 1) echo "checked";echo ">"; <input name='user_management' class='chk' type=checkbox value='1' ";
echo" <tr><td colspan='3'><div class='raya'></div></td></tr>"; if ($user_management == 1) echo "checked";echo "></td></tr>
if (isset($_GET["new_profile"])){ <tr><td class=datos>".$lang_label["manage_db"]."</td>
echo "<tr><td colspan='3' align='right'><input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>"; <td class=datos>
} <input name='db_management' class='chk' type=checkbox value='1' ";
if (isset($_GET["edit_profile"])){ if ($db_management == 1) echo "checked";echo "></td></tr>
echo "<tr><td colspan='3' align='right'><input name='uptbutton' type='submit' class='sub' value='" .$lang_label["update"]."'>"; <tr><td class=datos2>".$lang_label["manage_alerts"]."</td>
} <td class=datos2>
<input name='alert_management' class='chk' type=checkbox value='1' ";
if ($alert_management == 1) echo "checked";echo "></td></tr>
<tr><td class=datos>".$lang_label["pandora_management"]."</td>
<td class=datos>
<input name='pandora_management' class='chk' type=checkbox value='1' ";
if ($pandora_management == 1) echo "checked";echo "></td></tr>
";
echo "</table>"; echo "</table>";
echo "<table width='400'>";
echo "<tr><td align='right'>";
if (isset($_GET["new_profile"])){
echo "
<input name='crtbutton' type='submit' class='sub wand' value='".$lang_label["create"]."'>";
}
if (isset($_GET["edit_profile"])){
echo "
<input name='uptbutton' type='submit' class='sub upd' value='" .$lang_label["update"]."'>";
}
echo "</td></tr></table>";
} else { // View list data } else { // View list data
$color=1; $color=1;
?> ?>
<table cellpadding=3 cellspacing=3 border=0> <table cellpadding='4' cellspacing='4' class='databox' width='750px'>
<?php <?php
$query_del1="SELECT * FROM tperfil"; $query_del1="SELECT * FROM tperfil";
$resq1=mysql_query($query_del1); $resq1=mysql_query($query_del1);
echo "<tr>"; echo "<tr>";
echo "<th width='180px'><font size=1>".$lang_label["profiles"]; echo "<th width='180px'><font size=1>".$lang_label["profiles"];
echo "<th width='40px'><font size=1>IR<a href='#' class='tipp'>&nbsp;<span>".$help_label["IR"]."</span></a>"; echo "</th><th width='40px'>
echo "<th width='40px'><font size=1>IW<a href='#' class='tipp'>&nbsp;<span>".$help_label["IW"]."</span></a>"; <font size=1>IR<a href='#' class='tipp'>&nbsp;<span>".$help_label["IR"]."</span></a>";
echo "<th width='40px'><font size=1>IM<a href='#' class='tipp'>&nbsp;<span>".$help_label["IM"]."</span></a>"; echo "</th><th width='40px'>
echo "<th width='40px'><font size=1>AR<a href='#' class='tipp'>&nbsp;<span>".$help_label["AR"]."</span></a>"; <font size=1>IW<a href='#' class='tipp'>&nbsp;<span>".$help_label["IW"]."</span></a>";
echo "<th width='40px'><font size=1>AW<a href='#' class='tipp'>&nbsp;<span>".$help_label["AW"]."</span></a>"; echo "</th><th width='40px'>
echo "<th width='40px'><font size=1>LW<a href='#' class='tipp'>&nbsp;<span>".$help_label["LW"]."</span></a>"; <font size=1>IM<a href='#' class='tipp'>&nbsp;<span>".$help_label["IM"]."</span></a>";
echo "<th width='40px'><font size=1>UM<a href='#' class='tipp'>&nbsp;<span>".$help_label["UM"]."</span></a>"; echo "</th><th width='40px'>
echo "<th width='40px'><font size=1>DM<a href='#' class='tipp'>&nbsp;<span>".$help_label["DM"]."</span></a>"; <font size=1>AR<a href='#' class='tipp'>&nbsp;<span>".$help_label["AR"]."</span></a>";
echo "<th width='40px'><font size=1>LM<a href='#' class='tipp'>&nbsp;<span>".$help_label["LM"]."</span></a>"; echo "</th><th width='40px'>
echo "<th width='40px'><font size=1>PM<a href='#' class='tipp'>&nbsp;<span>".$help_label["PM"]."</span></a>"; <font size=1>AW<a href='#' class='tipp'>&nbsp;<span>".$help_label["AW"]."</span></a>";
echo "<th width='40px'>".$lang_label["delete"]."</th></tr>"; echo "</th><th width='40px'>
while ($rowdup=mysql_fetch_array($resq1)){ <font size=1>LW<a href='#' class='tipp'>&nbsp;<span>".$help_label["LW"]."</span></a>";
$id_perfil = $rowdup["id_perfil"]; echo "</th><th width='40px'>
$nombre=$rowdup["name"]; <font size=1>UM<a href='#' class='tipp'>&nbsp;<span>".$help_label["UM"]."</span></a>";
$incident_view = $rowdup["incident_view"]; echo "</th><th width='40px'>
$incident_edit = $rowdup["incident_edit"]; <font size=1>DM<a href='#' class='tipp'>&nbsp;<span>".$help_label["DM"]."</span></a>";
$incident_management = $rowdup["incident_management"]; echo "</th><th width='40px'>
$agent_view = $rowdup["agent_view"]; <font size=1>LM<a href='#' class='tipp'>&nbsp;<span>".$help_label["LM"]."</span></a>";
$agent_edit =$rowdup["agent_edit"]; echo "</th><th width='40px'>
$alert_edit = $rowdup["alert_edit"]; <font size=1>PM<a href='#' class='tipp'>&nbsp;<span>".$help_label["PM"]."</span></a>";
$user_management = $rowdup["user_management"]; echo "</th><th width='40px'>".$lang_label["delete"]."</th></tr>";
$db_management = $rowdup["db_management"]; while ($rowdup=mysql_fetch_array($resq1)){
$alert_management = $rowdup["alert_management"]; $id_perfil = $rowdup["id_perfil"];
$pandora_management = $rowdup["pandora_management"]; $nombre=$rowdup["name"];
if ($color == 1){ $incident_view = $rowdup["incident_view"];
$tdcolor = "datos"; $incident_edit = $rowdup["incident_edit"];
$color = 0; $incident_management = $rowdup["incident_management"];
} $agent_view = $rowdup["agent_view"];
else { $agent_edit =$rowdup["agent_edit"];
$tdcolor = "datos2"; $alert_edit = $rowdup["alert_edit"];
$color = 1; $user_management = $rowdup["user_management"];
} $db_management = $rowdup["db_management"];
echo "<td class='$tdcolor'><a href='index.php?sec=gperfiles&amp;sec2=godmode/profiles/profile_list&amp;edit_profile=".$id_perfil."'><b>".$nombre."</b></a>"; $alert_management = $rowdup["alert_management"];
$pandora_management = $rowdup["pandora_management"];
echo "<td class='$tdcolor'>"; if ($color == 1){
if ($incident_view == 1) echo "<img src='images/ok.png' border=0>"; $tdcolor = "datos";
$color = 0;
echo "<td class='$tdcolor'>"; }
if ($incident_edit == 1) echo "<img src='images/ok.png' border=0>"; else {
$tdcolor = "datos2";
echo "<td class='$tdcolor'>"; $color = 1;
if ($incident_management == 1) echo "<img src='images/ok.png' border=0>"; }
echo "<td class='$tdcolor'><a href='index.php?sec=gperfiles&amp;sec2=godmode/profiles/profile_list&amp;edit_profile=".$id_perfil."'><b>".$nombre."</b></a>";
echo "<td class='$tdcolor'>";
if ($agent_view == 1) echo "<img src='images/ok.png' border=0>"; echo "</td><td class='$tdcolor'>";
if ($incident_view == 1) echo "<img src='images/ok.png' border=0>";
echo "<td class='$tdcolor'>";
if ($agent_edit == 1) echo "<img src='images/ok.png' border=0>"; echo "</td><td class='$tdcolor'>";
if ($incident_edit == 1) echo "<img src='images/ok.png' border=0>";
echo "<td class='$tdcolor'>";
if ($alert_edit == 1) echo "<img src='images/ok.png' border=0>"; echo "</td><td class='$tdcolor'>";
if ($incident_management == 1) echo "<img src='images/ok.png' border=0>";
echo "<td class='$tdcolor'>";
if ($user_management == 1) echo "<img src='images/ok.png' border=0>"; echo "</td><td class='$tdcolor'>";
if ($agent_view == 1) echo "<img src='images/ok.png' border=0>";
echo "<td class='$tdcolor'>";
if ($db_management == 1) echo "<img src='images/ok.png' border=0>"; echo "</td><td class='$tdcolor'>";
if ($agent_edit == 1) echo "<img src='images/ok.png' border=0>";
echo "<td class='$tdcolor'>";
if ($alert_management == 1) echo "<img src='images/ok.png' border=0>"; echo "</td><td class='$tdcolor'>";
if ($alert_edit == 1) echo "<img src='images/ok.png' border=0>";
echo "<td class='$tdcolor'>";
if ($pandora_management == 1) echo "<img src='images/ok.png' border=0>"; echo "</td><td class='$tdcolor'>";
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/profiles/profile_list&delete_profile=".$id_perfil."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a></td></tr>"; if ($user_management == 1) echo "<img src='images/ok.png' border=0>";
} echo "</td><td class='$tdcolor'>";
echo "</div></td></tr>"; if ($db_management == 1) echo "<img src='images/ok.png' border=0>";
echo "<tr><td colspan='12'><div class='raya'></div></td></tr>";
echo "<tr><td colspan='12' align='right'>"; echo "<td class='$tdcolor'>";
echo "<form method=post action='index.php?sec=gperfiles&sec2=godmode/profiles/profile_list&new_profile=1'>"; if ($alert_management == 1) echo "<img src='images/ok.png' border=0>";
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_profile"]."'>";
echo "</form></table>"; echo "</td><td class='$tdcolor'>";
if ($pandora_management == 1) echo "<img src='images/ok.png' border=0>";
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/profiles/profile_list&delete_profile=".$id_perfil."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a></td></tr>";
}
echo "</table>";
echo '</tr></table>';
echo '<table width="750">';
echo '<tr><td align="right">';
echo "<form method=post action='index.php?sec=gperfiles&sec2=godmode/profiles/profile_list&new_profile=1'>";
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_profile"]."'>";
echo "</form></table>";
} }
} }
else { else {

View File

@ -154,7 +154,6 @@ echo "</select>";
// Incident // Incident
echo "<tr>"; echo "<tr>";
echo "<td class='datos2'>".$lang_label["incident"]; echo "<td class='datos2'>".$lang_label["incident"];
echo "<td class='datos2'>";
echo "<select name='create_incident'>"; echo "<select name='create_incident'>";
if ($type == 1){ if ($type == 1){
echo "<option value='1'>".$lang_label["yes"]; echo "<option value='1'>".$lang_label["yes"];
@ -177,9 +176,9 @@ echo "<tr>";
echo "<td colspan=5 align='right'>"; echo "<td colspan=5 align='right'>";
if ($id_rt != "-1") if ($id_rt != "-1")
echo '<input name="updbutton" type="submit" class="sub" value="'.$lang_label["update"].'">'; echo '<input name="updbutton" type="submit" class="sub upd" value="'.$lang_label["update"].'">';
else else
echo '<input name="crtbutton" type="submit" class="sub" value="'.$lang_label["add"].'">'; echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["add"].'">';
echo "</form>"; echo "</form>";
echo "</table>"; echo "</table>";

View File

@ -27,7 +27,7 @@ if (comprueba_login() == 0)
$id_link = entrada_limpia($_POST["id_link"]); $id_link = entrada_limpia($_POST["id_link"]);
$name = entrada_limpia($_POST["name"]); $name = entrada_limpia($_POST["name"]);
$link = entrada_limpia($_POST["link"]); $link = entrada_limpia($_POST["link"]);
$sql_update ="UPDATE tlink SET name = '".$name."', link ='".$link."' WHERE id_link = '".$id_link."'"; $sql_update ="UPDATE tlink SET name = '".$name."', link ='".$link."' WHERE id_link = '".$id_link."'";
$result=mysql_query($sql_update); $result=mysql_query($sql_update);
if (! $result) if (! $result)
echo "<h3 class='error'>".$lang_label["modify_link_no"]."</h3>"; echo "<h3 class='error'>".$lang_label["modify_link_no"]."</h3>";
@ -67,7 +67,7 @@ if (comprueba_login() == 0)
// Create link // Create link
echo "<h2>".$lang_label["setup_screen"]." &gt; "; echo "<h2>".$lang_label["setup_screen"]." &gt; ";
echo $lang_label["link_management"]."<a href='help/".$help_code."/chap9.php#91' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h2>"; echo $lang_label["link_management"]."<a href='help/".$help_code."/chap9.php#91' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h2>";
echo '<table class="fon" cellpadding="3" cellspacing="3" width="500">'; echo '<table class="databox" cellpadding="4" cellspacing="4" width="500">';
echo '<form name="ilink" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/links">'; echo '<form name="ilink" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/links">';
if ($creation_mode == 1) if ($creation_mode == 1)
echo "<input type='hidden' name='create' value='1'>"; echo "<input type='hidden' name='create' value='1'>";
@ -77,19 +77,27 @@ if (comprueba_login() == 0)
<?php if (isset($id_link)) {echo $id_link;} ?> <?php if (isset($id_link)) {echo $id_link;} ?>
<?php <?php
echo "'>"; echo "'>";
echo '<tr><td class="lb" rowspan="2" width="5"><td class="datos">'.$lang_label["link_name"].'<td class="datos"><input type="text" name="name" size="35" value="'.$nombre.'">'; echo '<tr>
echo '<tr><td class="datos2">'.$lang_label["link"].'<td class="datos2"><input type="text" name="link" size="35" value="'.$link.'">'; <td class="datos">'.$lang_label["link_name"].'</td>
echo '<tr><td colspan="5"><div class="raya"></div></td></tr>'; <td class="datos"><input type="text" name="name" size="35" value="'.$nombre.'">';
echo "<tr><td colspan='3' align='right'><input name='crtbutton' type='submit' class='sub' value='".$lang_label["update"]."'>"; echo '<tr>
echo '</form></table>'; <td class="datos2">'.$lang_label["link"].'</td>
<td class="datos2">
<input type="text" name="link" size="35" value="'.$link.'"></td>';
echo '</tr>';
echo "</table>";
echo "<table width='500px'>";
echo "<tr><td align='right'>
<input name='crtbutton' type='submit' class='sub upd' value='".$lang_label["update"]."'>";
echo '</form></td></tr></table>';
} }
else { // Main list view for Links editor else { // Main list view for Links editor
echo "<h2>".$lang_label["setup_screen"]." &gt; "; echo "<h2>".$lang_label["setup_screen"]." &gt; ";
echo $lang_label["link_management"]."<a href='help/".$help_code."/chap9.php#9' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>"; echo $lang_label["link_management"]."<a href='help/".$help_code."/chap9.php#9' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";
echo "<table cellpadding=3 cellspacing=3>"; echo "<table cellpadding='4' cellspacing='4' class='databox'>";
echo "<th width='180px'>".$lang_label["link_name"]; echo "<th width='180px'>".$lang_label["link_name"]."</th>";
echo "<th width='80px'>".$lang_label["delete"]; echo "<th width='80px'>".$lang_label["delete"]."</th>";
$sql1='SELECT * FROM tlink ORDER BY name'; $sql1='SELECT * FROM tlink ORDER BY name';
$result=mysql_query($sql1); $result=mysql_query($sql1);
$color=1; $color=1;
@ -102,11 +110,12 @@ if (comprueba_login() == 0)
$tdcolor = "datos2"; $tdcolor = "datos2";
$color = 1; $color = 1;
} }
echo "<tr><td class='$tdcolor'><b><a href='index.php?sec=gsetup&sec2=godmode/setup/links&form_edit=1&id_link=".$row["id_link"]."'>".$row["name"]."</a></b>"; echo "<tr><td class='$tdcolor'><b><a href='index.php?sec=gsetup&sec2=godmode/setup/links&form_edit=1&id_link=".$row["id_link"]."'>".$row["name"]."</a></b></td>";
echo '<td class="'.$tdcolor.'" align="center"><a href="index.php?sec=gsetup&sec2=godmode/setup/links&id_link='.$row["id_link"].'&borrar='.$row["id_link"].'" onClick="if (!confirm(\' '.$lang_label["are_you_sure"].'\')) return false;"><img border=0 src="images/cross.png"></a>'; echo '<td class="'.$tdcolor.'" align="center"><a href="index.php?sec=gsetup&sec2=godmode/setup/links&id_link='.$row["id_link"].'&borrar='.$row["id_link"].'" onClick="if (!confirm(\' '.$lang_label["are_you_sure"].'\')) return false;"><img border=0 src="images/cross.png"></a></td></tr>';
} }
echo "<tr><td colspan='2'><div class='raya'></div></td>"; echo "</table>";
echo "<tr><td colspan='2' align='right'>"; echo "<table width='290px'>";
echo "<tr><td align='right'>";
echo "<form method='post' action='index.php?sec=gsetup&sec2=godmode/setup/links&form_add=1'>"; echo "<form method='post' action='index.php?sec=gsetup&sec2=godmode/setup/links&form_add=1'>";
echo "<input type='submit' class='sub next' name='form_add' value='".$lang_label["add"]."'>"; echo "<input type='submit' class='sub next' name='form_add' value='".$lang_label["add"]."'>";
echo "</form></table>"; echo "</form></table>";

View File

@ -54,7 +54,7 @@ if (comprueba_login() == 0)
echo "<h2>".$lang_label["setup_screen"]." &gt; "; echo "<h2>".$lang_label["setup_screen"]." &gt; ";
echo $lang_label["general_config"]."<a href='help/".$help_code."/chap9.php#9' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h2>"; echo $lang_label["general_config"]."<a href='help/".$help_code."/chap9.php#9' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h2>";
echo "<form name='setup' method='POST' action='index.php?sec=gsetup&amp;sec2=godmode/setup/setup&update=1'>"; echo "<form name='setup' method='POST' action='index.php?sec=gsetup&amp;sec2=godmode/setup/setup&update=1'>";
echo '<table width="500" cellpadding="4" cellspacing="4" class="databox_color">'; echo '<table width="500" cellpadding="4" cellspacing="4" class="databox">';
echo '<tr><td class="datos">'.$lang_label["language_code"].'</td>'; echo '<tr><td class="datos">'.$lang_label["language_code"].'</td>';
echo '<td class="datos"><select name="language_code" onChange="javascript:this.form.submit();" width="180px">'; echo '<td class="datos"><select name="language_code" onChange="javascript:this.form.submit();" width="180px">';

View File

@ -156,26 +156,27 @@ if (comprueba_login() == 0)
} }
?> ?>
<table width='500' cellpadding='3' cellspacing='3'> <table width='500' cellpadding='4' cellspacing='4' class='databox'>
<?php <?php
if (isset($_GET["alta"])) if (isset($_GET["alta"]))
echo '<form name="new_user" method="post" action="index.php?sec=gusuarios&sec2=godmode/users/configure_user&nuevo_usuario=1"><tr><td class="lb" rowspan="9" width="5">'; echo '<form name="new_user" method="post" action="index.php?sec=gusuarios&sec2=godmode/users/configure_user&nuevo_usuario=1">';
else else
echo '<form name="user_mod" method="post" action="index.php?sec=gusuarios&sec2=godmode/users/configure_user&id_usuario_mio='.$id_usuario_mio.'"><tr><td class="lb" rowspan="11" width="5">'; echo '<form name="user_mod" method="post" action="index.php?sec=gusuarios&sec2=godmode/users/configure_user&id_usuario_mio='.$id_usuario_mio.'">';
?> ?>
<td class="datos"><?php echo $lang_label["id_user"] ?> <tr>
<td class="datos"><input type="text" name="nombre" value="<?php echo $id_usuario_mio ?>"> <td class="datos"><?php echo $lang_label["id_user"] ?></td>
<td class="datos"><input type="text" name="nombre" value="<?php echo $id_usuario_mio ?>"></td>
<tr><td class="datos2"><?php echo $lang_label["real_name"] ?> <tr><td class="datos2"><?php echo $lang_label["real_name"] ?>
<td class="datos2"><input type="text" name="nombre_real" value="<?php echo $nombre_real ?>"> <td class="datos2"><input type="text" name="nombre_real" value="<?php echo $nombre_real ?>"></td>
<tr><td class="datos"><?php echo $lang_label["password"] ?> <tr><td class="datos"><?php echo $lang_label["password"] ?>
<td class="datos"><input type="password" name="pass1" value="<?php echo $password ?>"> <td class="datos"><input type="password" name="pass1" value="<?php echo $password ?>"></td>
<tr><td class="datos2"><?php echo $lang_label["password"] ?> - <?php echo $lang_label["confirmation"] ?> <tr><td class="datos2"><?php echo $lang_label["password"] ?> - <?php echo $lang_label["confirmation"] ?></td>
<td class="datos2"><input type="password" name="pass2" value="<?php echo $password ?>"> <td class="datos2"><input type="password" name="pass2" value="<?php echo $password ?>"></td>
<tr><td class="datos">E-Mail <tr><td class="datos">E-Mail</td>
<td class="datos"><input type="text" name="direccion" size="40" value="<?php echo $direccion ?>"> <td class="datos"><input type="text" name="direccion" size="40" value="<?php echo $direccion ?>"></td>
<tr><td class="datos2"><?php echo $lang_label["telefono"] ?> <tr><td class="datos2"><?php echo $lang_label["telefono"] ?></td>
<td class="datos2"><input type="text" name="telefono" value="<?php echo $telefono ?>"> <td class="datos2"><input type="text" name="telefono" value="<?php echo $telefono ?>"></td>
<tr><td class="datos"><?php echo $lang_label["global_profile"] ?> <tr><td class="datos"><?php echo $lang_label["global_profile"] ?></td>
<td class="datos"> <td class="datos">
<?php if ($nivel == "1"){ <?php if ($nivel == "1"){
@ -186,8 +187,10 @@ if (comprueba_login() == 0)
echo $lang_label["normal_user"].'<input type="radio" class="chk" name="nivel" value="0" checked><a href="#" class="tip">&nbsp;<span>'.$help_label["users_msg2"].'</span></a>'; echo $lang_label["normal_user"].'<input type="radio" class="chk" name="nivel" value="0" checked><a href="#" class="tip">&nbsp;<span>'.$help_label["users_msg2"].'</span></a>';
} }
?> ?>
<tr><td class="datos2" colspan="2"><?php echo $lang_label["comments"] ?> <tr><td class="datos2" colspan="2"><?php echo $lang_label["comments"] ?></td>
<tr><td class="datos" colspan="2"><textarea name="comentarios" cols="60" rows="4"><?php echo $comentarios ?></textarea> <tr><td class="datos" colspan="2">
<textarea name="comentarios" cols="60" rows="4"><?php echo $comentarios ?></textarea>
</td></tr>
<?php <?php
if ($modo == "edicion") { // Only show groups for existing users if ($modo == "edicion") { // Only show groups for existing users
@ -195,26 +198,32 @@ if (comprueba_login() == 0)
echo '<input type="hidden" name="edicion" value="1">'; echo '<input type="hidden" name="edicion" value="1">';
echo '<input type="hidden" name="id_usuario_antiguo" value="'.$id_usuario_mio.'">'; echo '<input type="hidden" name="id_usuario_antiguo" value="'.$id_usuario_mio.'">';
echo '<tr><td class="datos2">'.$lang_label["group_avail"].'<td class="datos2"><select name="grupo" class="w155">'; echo '<tr><td class="datos2">'.$lang_label["group_avail"].'</td>
<td class="datos2">
<select name="grupo" class="w155">';
echo "<option value=''>".$lang_label["none"]; echo "<option value=''>".$lang_label["none"];
$sql1='SELECT * FROM tgrupo ORDER BY nombre'; $sql1='SELECT * FROM tgrupo ORDER BY nombre';
$result=mysql_query($sql1); $result=mysql_query($sql1);
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
echo "<option value='".$row["id_grupo"]."'>".$row["nombre"]; echo "<option value='".$row["id_grupo"]."'>".$row["nombre"]."</option>";
} }
echo '</select>'; echo '</select>';
echo "<tr><td class='datos'>".$lang_label["profiles"]; echo '</td></tr>';
echo "<td class='datos'><select name='perfil' class='w155'>"; echo "<tr><td class='datos'>".$lang_label["profiles"]."</td>";
echo "<td class='datos'>
<select name='perfil' class='w155'>";
$sql1='SELECT * FROM tperfil ORDER BY name'; $sql1='SELECT * FROM tperfil ORDER BY name';
$result=mysql_query($sql1); $result=mysql_query($sql1);
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
echo "<option value='".$row["id_perfil"]."'>".$row["name"]; echo "<option value='".$row["id_perfil"]."'>".$row["name"]."</option>";
} }
echo '</select>'; echo '</select>';
echo '<tr><td colspan="3"><div class="raya"></div></td></tr>'; echo '</td>';
echo '<tr><td align="right" colspan="3">'; echo '</tr></table>';
echo "<input name='uptbutton' type='submit' class='sub' value='".$lang_label["update"]."'></table><br>"; echo "<table width=500>";
echo "<tr><td align='right'>";
echo "<input name='uptbutton' type='submit' class='sub upd' value='".$lang_label["update"]."'></td></tr></table><br>";
// Show user profile / groups assigned // Show user profile / groups assigned
$sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$id_usuario_mio.'"'; $sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$id_usuario_mio.'"';
$result=mysql_query($sql1); $result=mysql_query($sql1);
@ -245,9 +254,10 @@ if (comprueba_login() == 0)
?> ?>
<?php if (isset($_GET["alta"])){ <?php if (isset($_GET["alta"])){
echo '<tr><td colspan="3"><div class="raya"></div></td></tr>'; echo '</tr></table>';
echo '<tr><td align="right" colspan="3">'; echo '<table width="500">';
echo '<input name="crtbutton" type="submit" class="sub" value="'.$lang_label["create"].'">'; echo '<tr><td align="right">';
echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["create"].'">';
} }
?> ?>
</form> </form>

View File

@ -29,7 +29,7 @@ if (comprueba_login() == 0)
<h2><?php echo $lang_label["user_management"] ?> &gt; <h2><?php echo $lang_label["user_management"] ?> &gt;
<?php echo $lang_label["users"] ?><a href="help/<?php echo $help_code; ?>/chap2.php#22" target="_help" class="help">&nbsp;<span><?php echo $lang_label["help"]; ?></span></a></h2> <?php echo $lang_label["users"] ?><a href="help/<?php echo $help_code; ?>/chap2.php#22" target="_help" class="help">&nbsp;<span><?php echo $lang_label["help"]; ?></span></a></h2>
<table cellpadding="3" cellspacing="3" width="700"> <table width="700" cellpadding="4" cellspacing="4" class="databox">
<th width="80px"><?php echo $lang_label["user_ID"]?> <th width="80px"><?php echo $lang_label["user_ID"]?>
<th width="155px"><?php echo $lang_label["last_contact"]?> <th width="155px"><?php echo $lang_label["last_contact"]?>
<th width="45px"><?php echo $lang_label["profile"]?> <th width="45px"><?php echo $lang_label["profile"]?>
@ -84,10 +84,11 @@ while ($rowdup=mysql_fetch_array($resq1)){
echo "<td class='$tdcolor' width='100'>".substr($real_name,0,16)."</td>"; echo "<td class='$tdcolor' width='100'>".substr($real_name,0,16)."</td>";
echo "<td class='$tdcolor'>".$comments."</td>"; echo "<td class='$tdcolor'>".$comments."</td>";
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/users/user_list&borrar_usuario=".$name."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a>"; echo "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/users/user_list&borrar_usuario=".$name."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a></td>";
} }
echo "<tr><td colspan='6'><div class='raya'></div></td></tr>"; echo "</tr></table>";
echo "<tr><td colspan='6' align='right'>"; echo "<table width=700>";
echo "<tr><td align='right'>";
echo "<form method=post action='index.php?sec=gusuarios&sec2=godmode/users/configure_user&alta=1'>"; echo "<form method=post action='index.php?sec=gusuarios&sec2=godmode/users/configure_user&alta=1'>";
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_user"]."'>"; echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_user"]."'>";
echo "</form></td></tr></table>"; echo "</form></td></tr></table>";

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

View File

@ -316,7 +316,6 @@ if ((isset($_POST["export"])) AND (! isset($_POST["update_agent"]))){
echo "</table>"; echo "</table>";
// Submit button // Submit button
echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
echo "<table width=570>"; echo "<table width=570>";
echo "<tr><td align='right'>"; echo "<tr><td align='right'>";
echo "<input type=submit name='export' class='sub wand' value=".$lang_label["export"].">"; echo "<input type=submit name='export' class='sub wand' value=".$lang_label["export"].">";

View File

@ -27,7 +27,7 @@ UNLOCK TABLES;
/*!40000 ALTER TABLE `tconfig_os` DISABLE KEYS */; /*!40000 ALTER TABLE `tconfig_os` DISABLE KEYS */;
LOCK TABLES `tconfig_os` WRITE; LOCK TABLES `tconfig_os` WRITE;
INSERT INTO `tconfig_os` VALUES (1,'Linux','Linux: All versions','so_linux.gif'),(2,'Solaris','Sun Solaris','so_solaris.gif'),(3,'AIX','IBM AIX','so_aix.gif'),(4,'BSD','OpenBSD, FreeBSD and Others','so_bsd.gif'),(5,'HP-UX','HP-UX Unix OS','so_hpux.gif'),(6,'BeOS','BeOS','so_beos.gif'),(7,'Cisco','CISCO IOS','so_cisco.gif'),(8,'MacOS','MAC OS','so_mac.gif'),(9,'Windows','Microsoft Windows OS','so_win.gif'),(10,'Other','Other SO','so_other.gif'),(11,'Network','Pandora Network Agent','network.gif'); INSERT INTO `tconfig_os` VALUES (1,'GNU/Linux','Linux: All versions','so_linux.gif'),(2,'Solaris','Sun Solaris','so_solaris.gif'),(3,'AIX','IBM AIX','so_aix.gif'),(4,'BSD','OpenBSD, FreeBSD and Others','so_bsd.gif'),(5,'HP-UX','HP-UX Unix OS','so_hpux.gif'),(6,'BeOS','BeOS','so_beos.gif'),(7,'Cisco','CISCO IOS','so_cisco.gif'),(8,'MacOS','MAC OS','so_mac.gif'),(9,'Windows','Microsoft Windows OS','so_win.gif'),(10,'Other','Other SO','so_other.gif'),(11,'Network','Pandora Network Agent','network.gif');
UNLOCK TABLES; UNLOCK TABLES;
/*!40000 ALTER TABLE `tconfig_os` ENABLE KEYS */; /*!40000 ALTER TABLE `tconfig_os` ENABLE KEYS */;
@ -44,7 +44,7 @@ INSERT INTO `tgrupo` VALUES (8,'Databases','database_gear',0,0);
INSERT INTO `tgrupo` VALUES (9,'Comms','transmit',0,0); INSERT INTO `tgrupo` VALUES (9,'Comms','transmit',0,0);
INSERT INTO `tgrupo` VALUES (10,'Others','house',0,0); INSERT INTO `tgrupo` VALUES (10,'Others','house',0,0);
INSERT INTO `tgrupo` VALUES (11,'Workstations','computer',0,0); INSERT INTO `tgrupo` VALUES (11,'Workstations','computer',0,0);
INSERT INTO `tgrupo` VALUES (12,'Applications','bricks',0,0); INSERT INTO `tgrupo` VALUES (12,'Applications','applications',0,0);
UNLOCK TABLES; UNLOCK TABLES;
/*!40000 ALTER TABLE `tgrupo` ENABLE KEYS */; /*!40000 ALTER TABLE `tgrupo` ENABLE KEYS */;