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:
parent
4032cdbedd
commit
3502d79055
|
@ -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>
|
||||
|
||||
* general/error_install.php, general/error_perms.php, general/header.php,
|
||||
|
|
|
@ -50,14 +50,15 @@ if (! isset ($config["id_user"])) {
|
|||
if (isset($_SESSION["id_usuario"])) {
|
||||
$config["id_user"] = $_SESSION["id_usuario"];
|
||||
}
|
||||
}
|
||||
|
||||
if (! isset ($config["id_user"])) {
|
||||
require_once('../mobile/include/user.class.php');
|
||||
session_start ();
|
||||
session_write_close ();
|
||||
$user = $_SESSION['user'];
|
||||
$config["id_user"] = $user->getIdUser();
|
||||
else if (! isset ($config["id_user"])) {
|
||||
require_once('../mobile/include/user.class.php');
|
||||
session_start ();
|
||||
session_write_close ();
|
||||
$user = $_SESSION['user'];
|
||||
if(!empty($user)) {
|
||||
$config["id_user"] = $user->getIdUser();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Fixed the graph for cron (that it's login)
|
||||
|
|
Loading…
Reference in New Issue