diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 4922e46299..fd6fb28008 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-05-24 Miguel de Dios + + * include/fgraph.php: fixed again when execute fgraphs.php without login in + the case is execute in host machine (as when execute the cron). + 2010-05-21 Raúl Mateos * several php files: Updated "add" or "create" icons. diff --git a/pandora_console/include/fgraph.php b/pandora_console/include/fgraph.php index 7e78e09ad5..f0b3cad003 100644 --- a/pandora_console/include/fgraph.php +++ b/pandora_console/include/fgraph.php @@ -49,7 +49,8 @@ if (! isset ($config["id_user"])) { } //Fixed the graph for cron (that it's login) -if ($_SERVER['REMOTE_ADDR'] != '127.0.0.1') { +if (($_SERVER['SERVER_ADDR'] != $_SERVER['REMOTE_ADDR']) + && ($_SERVER['REMOTE_ADDR'] != '127.0.0.1')) { // Session check check_login (); }