From cf0eb9d48e1fe5fb26c4669d17e0aa381aa484e2 Mon Sep 17 00:00:00 2001 From: raulmateos Date: Tue, 21 Nov 2006 17:35:59 +0000 Subject: [PATCH] 2006-11-21 Raul Mateos * general/footer.php: Change time() function to $_SERVER['REQUEST_TIME'] for optimization, Esteban's suggestion. Changed text from Pandora to Pandora FMS. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@268 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/general/footer.php | 6 +++--- pandora_console/operation/agentes/estado_alertas.php | 2 +- pandora_console/operation/agentes/status_monitor.php | 6 +++--- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2fc1d12c74..5d8c994a30 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2006-11-21 Raul Mateos + + * general/footer.php: Change time() function to $_SERVER['REQUEST_TIME'] + for optimization, Esteban's suggestion. Changed text from Pandora to + Pandora FMS. + 2006-11-17 Raul Mateos * operation/agentes/estado_generalagente.php: Clear code, small adapt to diff --git a/pandora_console/general/footer.php b/pandora_console/general/footer.php index 0b4b256e76..46e18e610a 100644 --- a/pandora_console/general/footer.php +++ b/pandora_console/general/footer.php @@ -1,4 +1,4 @@ -
'; if (isset($_SESSION['id_usuario'])) { - echo $lang_label["gen_date"]." ".date("D F d, Y H:i:s",time())."
"; + echo $lang_label["gen_date"]." ".date("D F d, Y H:i:s",$_SERVER['REQUEST_TIME'])."
"; } ?> - Pandora is a SourceForge registered project + Pandora FMS is a SourceForge registered project \ No newline at end of file diff --git a/pandora_console/operation/agentes/estado_alertas.php b/pandora_console/operation/agentes/estado_alertas.php index b3a0fbfed0..4a7f16cc09 100644 --- a/pandora_console/operation/agentes/estado_alertas.php +++ b/pandora_console/operation/agentes/estado_alertas.php @@ -82,7 +82,7 @@ if (comprueba_login() == 0) { } else { echo "
"; } - echo "
"; + echo "
"; echo ""; echo ""; @@ -107,7 +107,7 @@ if (comprueba_login() == 0) { if (mysql_num_rows($result)){ while ($row=mysql_fetch_array($result)){ //while there are agents if ($row["disabled"] == 0) { - if ((isset($ag_modulename)) && ($ag_modulename != "---")) + if ((isset($ag_modulename)) && ($ag_modulename != "ALL")) $query_gen='SELECT * FROM tagente_modulo WHERE id_agente = '.$row["id_agente"].' AND nombre = "'.entrada_limpia($_POST["ag_modulename"]).'" AND ( (id_tipo_modulo = 2) OR (id_tipo_modulo = 9) OR (id_tipo_modulo = 12) OR (id_tipo_modulo = 18) OR (id_tipo_modulo = 6))'; else $query_gen='SELECT * FROM tagente_modulo WHERE id_agente = '.$row["id_agente"].' AND ( (id_tipo_modulo = 2) OR (id_tipo_modulo = 9) OR (id_tipo_modulo = 12) OR (id_tipo_modulo = 18) OR (id_tipo_modulo = 6))';