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
7d91d64bb5
commit
b9e853e3d1
|
@ -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>
|
||||
|
||||
* operation/events/events_marquee.php: Fixed a sql error
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue