mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Fixed problem in tree view to metaconsola, not open popup
(cherry picked from commit 33bf0a4e7b455367155905d3e3033990a12c9269)
This commit is contained in:
parent
f38f5f052d
commit
d2238434f0
@ -1547,7 +1547,7 @@ function modules_get_next_data ($id_agent_module, $utimestamp = 0, $string = 0)
|
|||||||
*
|
*
|
||||||
* @return array The module value and the timestamp
|
* @return array The module value and the timestamp
|
||||||
*/
|
*/
|
||||||
function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0) {
|
function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0, $trash, $conexion = false, $order = 'ASC') {
|
||||||
$module = db_get_row('tagente_modulo', 'id_agente_modulo',
|
$module = db_get_row('tagente_modulo', 'id_agente_modulo',
|
||||||
$id_agent_module);
|
$id_agent_module);
|
||||||
|
|
||||||
@ -1571,8 +1571,8 @@ function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0) {
|
|||||||
FROM tagente_datos_string
|
FROM tagente_datos_string
|
||||||
WHERE id_agente_modulo = %d
|
WHERE id_agente_modulo = %d
|
||||||
AND utimestamp > %d AND utimestamp <= %d
|
AND utimestamp > %d AND utimestamp <= %d
|
||||||
ORDER BY utimestamp ASC",
|
ORDER BY utimestamp %s",
|
||||||
$id_agent_module, $datelimit, $date);
|
$id_agent_module, $datelimit, $date, $order);
|
||||||
break;
|
break;
|
||||||
//log4x
|
//log4x
|
||||||
case 24:
|
case 24:
|
||||||
@ -1580,20 +1580,20 @@ function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0) {
|
|||||||
FROM tagente_datos_log4x
|
FROM tagente_datos_log4x
|
||||||
WHERE id_agente_modulo = %d
|
WHERE id_agente_modulo = %d
|
||||||
AND utimestamp > %d AND utimestamp <= %d
|
AND utimestamp > %d AND utimestamp <= %d
|
||||||
ORDER BY utimestamp ASC",
|
ORDER BY utimestamp %s",
|
||||||
$id_agent_module, $datelimit, $date);
|
$id_agent_module, $datelimit, $date, $order);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$sql = sprintf ("SELECT datos AS data, utimestamp
|
$sql = sprintf ("SELECT datos AS data, utimestamp
|
||||||
FROM tagente_datos
|
FROM tagente_datos
|
||||||
WHERE id_agente_modulo = %d
|
WHERE id_agente_modulo = %d
|
||||||
AND utimestamp > %d AND utimestamp <= %d
|
AND utimestamp > %d AND utimestamp <= %d
|
||||||
ORDER BY utimestamp ASC",
|
ORDER BY utimestamp %s",
|
||||||
$id_agent_module, $datelimit, $date);
|
$id_agent_module, $datelimit, $date, $order);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$values = db_get_all_rows_sql ($sql, $search_in_history_db, false);
|
$values = db_get_all_rows_sql ($sql, $search_in_history_db, false, $conexion);
|
||||||
|
|
||||||
if ($values === false) {
|
if ($values === false) {
|
||||||
return array ();
|
return array ();
|
||||||
@ -2038,4 +2038,4 @@ function modules_change_relation_lock ($id_relation) {
|
|||||||
return ($result !== false ? $new_value : $old_value);
|
return ($result !== false ? $new_value : $old_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user