mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
2008-09-03 Sancho Lerena <slerena@artica.es>
* reporting/fgraph.php: URL passed should don't get slashes or don't work, used unsafe_string() to remove it. * datos_agente.php: was not showing async string data. Now it uses a regexp to search for string types. * logon_ok.php: Was using a wrong variable on message counter. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1079 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
97af45b63a
commit
01e1448def
@ -1,3 +1,13 @@
|
|||||||
|
2008-09-03 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
|
* reporting/fgraph.php: URL passed should don't get slashes or
|
||||||
|
don't work, used unsafe_string() to remove it.
|
||||||
|
|
||||||
|
* datos_agente.php: was not showing async string data. Now it
|
||||||
|
uses a regexp to search for string types.
|
||||||
|
|
||||||
|
* logon_ok.php: Was using a wrong variable on message counter.
|
||||||
|
|
||||||
2008-09-03 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
2008-09-03 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||||
|
|
||||||
* reporting/fgraph.php: Fixed bug where a graph wouldn't return
|
* reporting/fgraph.php: Fixed bug where a graph wouldn't return
|
||||||
|
@ -36,7 +36,7 @@ $resultado = get_db_sql ($sql);
|
|||||||
if ($resultado != 0) {
|
if ($resultado != 0) {
|
||||||
echo "<h2>". __('You have ') . '
|
echo "<h2>". __('You have ') . '
|
||||||
<a href="index.php?sec=messages&sec2=operation/messages/message">'
|
<a href="index.php?sec=messages&sec2=operation/messages/message">'
|
||||||
.$row["count"] . ' <img src="images/email.png" border="0">'
|
.$resultado . ' <img src="images/email.png" border="0">'
|
||||||
.__(' unread message(s).') . '</a></h2>';
|
.__(' unread message(s).') . '</a></h2>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,9 +53,7 @@ function datos_raw ($id_agente_modulo, $periodo) {
|
|||||||
$id_group = get_db_value ("id_grupo", "tagente", "id_agente", $id_agent);
|
$id_group = get_db_value ("id_grupo", "tagente", "id_agente", $id_agent);
|
||||||
// Different query for string data type
|
// Different query for string data type
|
||||||
$id_tipo_modulo = dame_id_tipo_modulo_agentemodulo($id_agente_modulo);
|
$id_tipo_modulo = dame_id_tipo_modulo_agentemodulo($id_agente_modulo);
|
||||||
if ( (dame_nombre_tipo_modulo ($id_tipo_modulo) == "generic_data_string" ) ||
|
if (preg_match("/string/", dame_nombre_tipo_modulo ($id_tipo_modulo) )) {
|
||||||
(dame_nombre_tipo_modulo ($id_tipo_modulo) == "remote_tcp_string" ) ||
|
|
||||||
(dame_nombre_tipo_modulo ($id_tipo_modulo) == "remote_snmp_string" )) {
|
|
||||||
$sql1="SELECT * FROM tagente_datos_string WHERE id_agente_modulo = ".
|
$sql1="SELECT * FROM tagente_datos_string WHERE id_agente_modulo = ".
|
||||||
$id_agente_modulo." AND id_agente = $id_agent AND utimestamp > '".$periodo."'
|
$id_agente_modulo." AND id_agente = $id_agent AND utimestamp > '".$periodo."'
|
||||||
ORDER BY timestamp DESC";
|
ORDER BY timestamp DESC";
|
||||||
|
@ -2058,6 +2058,7 @@ $date = get_parameter ("date");
|
|||||||
$graphic_type = (string) get_parameter ('tipo');
|
$graphic_type = (string) get_parameter ('tipo');
|
||||||
$mode = get_parameter ("mode", 1);
|
$mode = get_parameter ("mode", 1);
|
||||||
$url = get_parameter ('url','');
|
$url = get_parameter ('url','');
|
||||||
|
$url = unsafe_string ($url);
|
||||||
|
|
||||||
if ($graphic_type) {
|
if ($graphic_type) {
|
||||||
switch ($graphic_type) {
|
switch ($graphic_type) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user