2006-04-07 Jorge Gonzalez <jorge.gonzalez@artica.es>

* godmode/agentes/agent_template.php,
        godmode/agentes/module_manager_editor_data.php,
        godmode/agentes/module_manager_editor_network.php,
        godmode/agentes/module_manager_editor_wmi.php,
        godmode/agentes/module_manager_editor_plugin.php,
        godmode/agentes/module_manager_editor.php,
        godmode/agentes/module_manager_editor_prediction.php: Removed warning
        messages, and fixed mdoule_type errors.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@798 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
aloriel 2008-04-07 14:18:42 +00:00
parent 2f95662563
commit c7e6c0cecb
8 changed files with 29 additions and 9 deletions

View File

@ -1,4 +1,15 @@
2008-04-09 Sancho Lerena <slerena@gmail.com>
2006-04-07 Jorge Gonzalez <jorge.gonzalez@artica.es>
* godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor.php,
godmode/agentes/module_manager_editor_prediction.php: Removed warning
messages, and fixed mdoule_type errors.
2008-04-05 Sancho Lerena <slerena@gmail.com>
* pandoradb.sql: New header.

View File

@ -33,7 +33,7 @@ if (give_acl($id_user, 0, "AW")!=1) {
// ==========================
if (isset($_POST["template_id"])){
// Take agent data
$sql1='SELECT * FROM tagente WHERE id_agente = '.$id_agente;
$sql1="SELECT * FROM tagente WHERE id_agente = '.$id_agente.'";
$result=mysql_query($sql1);
if ($row=mysql_fetch_array($result)){
$intervalo = $row["intervalo"];
@ -62,7 +62,7 @@ if (isset($_POST["template_id"])){
while ($row2=mysql_fetch_array($result2)){
// Insert each module from tnetwork_component into agent
$module_sql = "INSERT INTO tagente_modulo
(id_agente, id_tipo_modulo, descripcion, nombre, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, ip_target, id_module_group)
(id_agente, id_tipo_modulo, descripcion, nombre, max, min, module_interval, tcp_port, tcp_send, tcp_rcv, snmp_community, snmp_oid, ip_target, id_module_group, id_modulo)
VALUES ( $id_agente,
'".$row2["type"]."',
'".$row2["description"]."',
@ -76,7 +76,8 @@ if (isset($_POST["template_id"])){
'".$row2["snmp_community"]."',
'".$row2["snmp_oid"]."',
'$direccion_agente',
'".$row2["id_module_group"]."'
'".$row2["id_module_group"]."',
'2'
)";
mysql_query ($module_sql);
$id_agente_modulo = mysql_insert_id();

View File

@ -70,10 +70,6 @@ if (($form_moduletype == "networkserver") && ($form_network_component != "") &&
$form_interval = $row["module_interval"];
$form_maxvalue = $row["max"];
$form_minvalue = $row["min"];
$form_export_id = $row["export_id"];
$form_disabled = $row["disabled"];
$form_post_process = $row["post_process"];
$form_max_timeout = $row["max_timeout"];
$form_max_timeout = "";
$form_id_export = 0;
$form_disabled = 0;

View File

@ -25,6 +25,8 @@ check_login();
$form_moduletype = get_parameter_post ("form_moduletype");
// get the module to update
$update_module_id = get_parameter_get ("update_module");
// the variable that checks whether the module is disabled or not must be setcommitedversion
$disabled_status = NULL;
// Specific ACL check
if (give_acl ($config["id_user"], 0, "AW")!=1) {

View File

@ -25,6 +25,8 @@ check_login();
$form_moduletype = get_parameter_post ("form_moduletype");
// get the module to update
$update_module_id = get_parameter_get ("update_module");
// the variable that checks whether the module is disabled or not must be setcommitedversion
$disabled_status = NULL;
// Specific ACL check
if (give_acl($config["id_user"], 0, "AW")!=1) {
@ -140,12 +142,14 @@ echo '</tr>';
echo '</tr><tr>';
echo '<td class="datos2">'.lang_string ("module_type")."</td>";
echo '<td class="datos2">';
if ($update_module_id != NULL){
echo "<span class='redi'>Not available in edition mode</span>";
echo "<input type='hidden' name='form_id_tipo_modulo' value='".$form_id_tipo_modulo."'>";
} else {
echo '<select name="form_id_tipo_modulo">';
if ($form_id_tipo_modulo != 0)
echo "<option value='".$form_id_tipo_modulo."'>".giveme_module_type($form_id_tipo_modulo)."</option>";
$sql1='SELECT id_tipo, nombre FROM ttipo_modulo WHERE categoria IN (3,4,5) ORDER BY nombre;';
$result=mysql_query($sql1);
while ($row=mysql_fetch_array($result)){

View File

@ -25,6 +25,8 @@ check_login();
$form_moduletype = get_parameter_post ("form_moduletype");
// get the module to update
$update_module_id = get_parameter_get ("update_module");
// the variable that checks whether the module is disabled or not must be setcommitedversion
$disabled_status = NULL;
// Specific ACL check
if (give_acl($config["id_user"], 0, "AW")!=1) {

View File

@ -25,6 +25,8 @@ check_login();
$form_moduletype = get_parameter_post ("form_moduletype");
// get the module to update
$update_module_id = get_parameter_get ("update_module");
// the variable that checks whether the module is disabled or not must be setcommitedversion
$disabled_status = NULL;
// Specific ACL check
if (give_acl($config["id_user"], 0, "AW")!=1) {

View File

@ -25,6 +25,8 @@ check_login();
$form_moduletype = get_parameter_post ("form_moduletype");
// get the module to update
$update_module_id = get_parameter_get ("update_module");
// the variable that checks whether the module is disabled or not must be setcommitedversion
$disabled_status = NULL;
// Specific ACL check
if (give_acl($config["id_user"], 0, "AW")!=1) {