diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2f52079b87..99e804d210 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-05-18 Miguel de Dios + + * include/fgraph.php: fixed the fgraph when cron get a report in PDF for to + send, and this situation the fgraph execute in localhost althought it'snt + login. + 2010-05-18 Sancho Lerena * pandoradb_data.sql: Update build/version to rc1. diff --git a/pandora_console/include/fgraph.php b/pandora_console/include/fgraph.php index 483bb00bc4..7e78e09ad5 100644 --- a/pandora_console/include/fgraph.php +++ b/pandora_console/include/fgraph.php @@ -48,8 +48,11 @@ if (! isset ($config["id_user"])) { $config["id_user"] = $_SESSION["id_usuario"]; } -// Session check -check_login (); +//Fixed the graph for cron (that it's login) +if ($_SERVER['REMOTE_ADDR'] != '127.0.0.1') { + // Session check + check_login (); +} /** * Show a brief error message in a PNG graph