From d666dc89caeccbc2d5a35e3644098d988b642d40 Mon Sep 17 00:00:00 2001 From: aloriel Date: Thu, 10 Apr 2008 10:25:52 +0000 Subject: [PATCH] 2008-04-10 Jorge Gonzalez * include/functions_db.php: Added a new function solving the bug while adding network modules. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@804 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_db.php | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 243e35c00f..423dbcce32 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2008-04-10 Jorge Gonzalez + + * include/functions_db.php: Added a new function solving the bug + while adding network modules. + 2008-04-09 Sancho Lerena * AUTHORS: Updated. diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index 3107d08e67..00471fcd62 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -381,6 +381,21 @@ function dame_nombre_pluginid($id){ return $pro; } +// --------------------------------------------------------------- +// Returns id of a moduletype +// --------------------------------------------------------------- + +function giveme_module_type($id){ + require("config.php"); + $query1="SELECT id_tipo, nombre FROM ttipo_modulo WHERE id_tipo = ".$id; + $resq1=mysql_query($query1); + if ($rowdup=mysql_fetch_array($resq1)) + $pro=$rowdup["nombre"]; + else + $pro = ""; + return $pro; +} + // --------------------------------------------------------------- // Returns agent name, given a ID of agente_module table // ---------------------------------------------------------------