mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Solved error 500 on resource exportation TICKETS #3604
This commit is contained in:
parent
224907d481
commit
623318e485
@ -17,15 +17,13 @@
|
|||||||
if (isset($_GET['get_ptr'])) {
|
if (isset($_GET['get_ptr'])) {
|
||||||
if ($_GET['get_ptr'] == 1) {
|
if ($_GET['get_ptr'] == 1) {
|
||||||
|
|
||||||
|
session_start ();
|
||||||
|
session_write_close ();
|
||||||
|
|
||||||
$ownDir = dirname(__FILE__) . '/';
|
$ownDir = dirname(__FILE__) . '/';
|
||||||
$ownDir = str_replace("\\", "/", $ownDir);
|
$ownDir = str_replace("\\", "/", $ownDir);
|
||||||
require_once ($ownDir.'../include/config.php');
|
require_once ($ownDir.'../include/config.php');
|
||||||
|
|
||||||
if (! isset ($_SESSION["id_usuario"])) {
|
|
||||||
session_start ();
|
|
||||||
session_write_close ();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Login check
|
// Login check
|
||||||
if (!isset($_SESSION["id_usuario"])) {
|
if (!isset($_SESSION["id_usuario"])) {
|
||||||
$config['id_user'] = null;
|
$config['id_user'] = null;
|
||||||
@ -323,6 +321,8 @@ function get_xml_resource() {
|
|||||||
function resource_exportation_extension_main() {
|
function resource_exportation_extension_main() {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
check_login();
|
||||||
|
|
||||||
if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||||
db_pandora_audit("ACL Violation", "Trying to access Setup Management");
|
db_pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||||
require ("general/noaccess.php");
|
require ("general/noaccess.php");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user