From 1167360e3b4ff43a309a2ec7a8b78e46d7b90abe Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 22 Jul 2011 14:06:20 +0000 Subject: [PATCH] 2011-07-22 Miguel de Dios * include/functions.php: fixed the not login when open new window in some cases. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4622 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions.php | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index fdc0b922e5..405c9d1439 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-07-22 Miguel de Dios + + * include/functions.php: fixed the not login when open new window in some + cases. + 2011-07-22 Sergio Martin * operation/events/events_marquee.php: Fixed a sql error diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 5e3eb952a6..971a82e7c6 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -1205,15 +1205,16 @@ function check_sql ($sql) { function check_login () { global $config; - + if (!isset ($config["homedir"])) { // No exists $config. Exit inmediatly include("general/noaccess.php"); exit; } - + if ((isset($_SESSION["id_usuario"])) AND ($_SESSION["id_usuario"] != "")) { if (is_user ($_SESSION["id_usuario"])) { + $config['id_user'] = $_SESSION["id_usuario"]; return 0; } }