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:
slerena 2008-09-03 16:27:28 +00:00
parent 73cbae494e
commit f52b03b73a
4 changed files with 13 additions and 4 deletions

View File

@ -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>
* reporting/fgraph.php: Fixed bug where a graph wouldn't return

View File

@ -36,7 +36,7 @@ $resultado = get_db_sql ($sql);
if ($resultado != 0) {
echo "<h2>". __('You have ') . '
<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>';
}

View File

@ -53,9 +53,7 @@ function datos_raw ($id_agente_modulo, $periodo) {
$id_group = get_db_value ("id_grupo", "tagente", "id_agente", $id_agent);
// Different query for string data type
$id_tipo_modulo = dame_id_tipo_modulo_agentemodulo($id_agente_modulo);
if ( (dame_nombre_tipo_modulo ($id_tipo_modulo) == "generic_data_string" ) ||
(dame_nombre_tipo_modulo ($id_tipo_modulo) == "remote_tcp_string" ) ||
(dame_nombre_tipo_modulo ($id_tipo_modulo) == "remote_snmp_string" )) {
if (preg_match("/string/", dame_nombre_tipo_modulo ($id_tipo_modulo) )) {
$sql1="SELECT * FROM tagente_datos_string WHERE id_agente_modulo = ".
$id_agente_modulo." AND id_agente = $id_agent AND utimestamp > '".$periodo."'
ORDER BY timestamp DESC";

View File

@ -2058,6 +2058,7 @@ $date = get_parameter ("date");
$graphic_type = (string) get_parameter ('tipo');
$mode = get_parameter ("mode", 1);
$url = get_parameter ('url','');
$url = unsafe_string ($url);
if ($graphic_type) {
switch ($graphic_type) {