# handle database updates etc..... if (isset($mySave) && ($mySave == '1' || $mySave == '2') || isset($myDuplicate)) { # check module-permission --------------------------------------------------------- # e_attributes # e_js_file # e_mb_mod # e_src $check = CHECK; $alert = "Security alert: You do not have the permission to use the specified "; $alert .= "module-path. Please contact your mapbender system administrator."; $mod = new administration(); $aGuis = $mod->getGuisByPermission(Mapbender::session()->get("mb_user_id"), true); $modPermAlert = false; if ($check == true) { if (isset($e_attributes) && preg_match("/((\\w+|\\/)+.php)/i", $e_attributes, $matches)) { $modPerm = $mod->checkModulePermission($aGuis, $matches[1], "e_attributes"); if ($modPerm == false) { $modPermAlert = true; } } if (isset($e_js_file) && preg_match("/((\\w+|\\/)+.php)/i", $e_js_file, $matches)) { $modPerm = $mod->checkModulePermission($aGuis, $matches[1], "e_js_file"); if ($modPerm == false) { $modPermAlert = true; } } if (isset($e_mb_mod) && preg_match("/((\\w+|\\/)+.php)/i", $e_mb_mod, $matches)) { $modPerm = $mod->checkModulePermission($aGuis, $matches[1], "e_mb_mod"); if ($modPerm == false) { $modPermAlert = true; }