mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
2012-12-06 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_agents.php, include/functions_html.php, include/functions_netflow.php: cleaned source code style. * include/db/mysql.php: fixed into the function "mysql_db_process_sql" a big bug that runs fine the select querys in a metaconsole enviorement with several DBs but the insert querys make in the previous connection. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7235 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c422f1a9b5
commit
dcd02553b1
@ -1,3 +1,13 @@
|
|||||||
|
2012-12-06 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_agents.php, include/functions_html.php,
|
||||||
|
include/functions_netflow.php: cleaned source code style.
|
||||||
|
|
||||||
|
* include/db/mysql.php: fixed into the function
|
||||||
|
"mysql_db_process_sql" a big bug that runs fine the select querys in
|
||||||
|
a metaconsole enviorement with several DBs but the insert querys
|
||||||
|
make in the previous connection.
|
||||||
|
|
||||||
2012-12-06 Miguel de Dios <miguel.dedios@artica.es>
|
2012-12-06 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_agents.php,
|
* include/functions_agents.php,
|
||||||
|
@ -275,12 +275,13 @@ function mysql_db_process_sql($sql, $rettype = "affected_rows", $dbconnection =
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$start = microtime (true);
|
$start = microtime (true);
|
||||||
|
|
||||||
if ($dbconnection == '') {
|
if ($dbconnection == '') {
|
||||||
$result = mysql_query ($sql);
|
$dbconnection = $config['dbconnection'];
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
$result = mysql_query ($sql, $dbconnection);
|
$result = mysql_query ($sql, $dbconnection);
|
||||||
}
|
|
||||||
$time = microtime (true) - $start;
|
$time = microtime (true) - $start;
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
$backtrace = debug_backtrace ();
|
$backtrace = debug_backtrace ();
|
||||||
|
@ -1314,7 +1314,9 @@ function agents_get_agent_id ($agent_name, $io_safe_input = false) {
|
|||||||
* @return string Name of the given agent.
|
* @return string Name of the given agent.
|
||||||
*/
|
*/
|
||||||
function agents_get_name ($id_agent, $case = "none") {
|
function agents_get_name ($id_agent, $case = "none") {
|
||||||
$agent = (string) db_get_value ('nombre', 'tagente', 'id_agente', (int) $id_agent);
|
$agent = (string) db_get_value ('nombre',
|
||||||
|
'tagente', 'id_agente', (int) $id_agent);
|
||||||
|
|
||||||
// Version 3.0 has enforced case sensitive agent names
|
// Version 3.0 has enforced case sensitive agent names
|
||||||
// so we always should show real case names.
|
// so we always should show real case names.
|
||||||
switch ($case) {
|
switch ($case) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user