2010-05-24 Miguel de Dios <miguel.dedios@artica.es>

* include/fgraph.php: fixed again when execute fgraphs.php without login in
	the case is execute in host machine (as when execute the cron).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2786 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-05-24 10:17:11 +00:00
parent ee629775af
commit 0283809380
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-05-24 Miguel de Dios <miguel.dedios@artica.es>
* 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 <raulofpandora@gmail.com>
* several php files: Updated "add" or "create" icons.

View File

@ -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 ();
}