mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
2011-07-22 Miguel de Dios <miguel.dedios@artica.es>
* 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
This commit is contained in:
parent
55f5f49aaf
commit
1167360e3b
@ -1,3 +1,8 @@
|
|||||||
|
2011-07-22 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions.php: fixed the not login when open new window in some
|
||||||
|
cases.
|
||||||
|
|
||||||
2011-07-22 Sergio Martin <sergio.martin@artica.es>
|
2011-07-22 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* operation/events/events_marquee.php: Fixed a sql error
|
* operation/events/events_marquee.php: Fixed a sql error
|
||||||
|
@ -1205,15 +1205,16 @@ function check_sql ($sql) {
|
|||||||
|
|
||||||
function check_login () {
|
function check_login () {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
if (!isset ($config["homedir"])) {
|
if (!isset ($config["homedir"])) {
|
||||||
// No exists $config. Exit inmediatly
|
// No exists $config. Exit inmediatly
|
||||||
include("general/noaccess.php");
|
include("general/noaccess.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((isset($_SESSION["id_usuario"])) AND ($_SESSION["id_usuario"] != "")) {
|
if ((isset($_SESSION["id_usuario"])) AND ($_SESSION["id_usuario"] != "")) {
|
||||||
if (is_user ($_SESSION["id_usuario"])) {
|
if (is_user ($_SESSION["id_usuario"])) {
|
||||||
|
$config['id_user'] = $_SESSION["id_usuario"];
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user