- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
- require($INC);
-} elseif (!IS_LOGGED_IN()) {
- LOAD_URL(URL."/modules.php?module=index");
-} elseif ((!EXT_IS_ACTIVE("")) && (!IS_ADMIN())) {
- addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "");
- return;
-} elseif ($BLOCK_MODE) {
+ exit();
+} elseif (!isMember()) {
+ redirectToIndexMemberOnlyModule();
+} elseif (isBlockModeEnabled()) {