Fixed problems with access. Tiquet: #2479

This commit is contained in:
m-lopez-f 2015-07-29 10:43:14 +02:00
parent 25106d8383
commit ea850a7d7a

View File

@ -13,6 +13,8 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
session_start ();
error_reporting(1); error_reporting(1);
// Local settings for marquee extension // Local settings for marquee extension
@ -31,7 +33,6 @@ require_once ('../../include/functions_users.php');
global $config; global $config;
session_start ();
$config["id_user"] = $_SESSION["id_usuario"]; $config["id_user"] = $_SESSION["id_usuario"];
@ -39,9 +40,6 @@ $config["id_user"] = $_SESSION["id_usuario"];
// Session locking concurrency speedup! // Session locking concurrency speedup!
check_login (); check_login ();
session_write_close ();
if (!isInACL($_SERVER['REMOTE_ADDR'])) { if (!isInACL($_SERVER['REMOTE_ADDR'])) {
db_pandora_audit("ACL Violation", db_pandora_audit("ACL Violation",
"Trying to access marquee without ACL Access"); "Trying to access marquee without ACL Access");