2010-11-11 Sergio Martin <sergio.martin@artica.es>

* include/fgraph.php: Fixed session auth for 
	external access



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3573 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-11-11 11:19:37 +00:00
parent 4032cdbedd
commit 3502d79055
2 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2010-11-11 Sergio Martin <sergio.martin@artica.es>
* include/fgraph.php: Fixed session auth for
external access
2010-11-11 Raúl Mateos <raulofpandora@gmail.com> 2010-11-11 Raúl Mateos <raulofpandora@gmail.com>
* general/error_install.php, general/error_perms.php, general/header.php, * general/error_install.php, general/error_perms.php, general/header.php,

View File

@ -50,14 +50,15 @@ if (! isset ($config["id_user"])) {
if (isset($_SESSION["id_usuario"])) { if (isset($_SESSION["id_usuario"])) {
$config["id_user"] = $_SESSION["id_usuario"]; $config["id_user"] = $_SESSION["id_usuario"];
} }
} else if (! isset ($config["id_user"])) {
if (! isset ($config["id_user"])) {
require_once('../mobile/include/user.class.php'); require_once('../mobile/include/user.class.php');
session_start (); session_start ();
session_write_close (); session_write_close ();
$user = $_SESSION['user']; $user = $_SESSION['user'];
if(!empty($user)) {
$config["id_user"] = $user->getIdUser(); $config["id_user"] = $user->getIdUser();
}
}
} }
//Fixed the graph for cron (that it's login) //Fixed the graph for cron (that it's login)