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; } }