-} elseif (!IS_LOGGED_IN()) {
- LOAD_URL(URL."/modules.php?module=index");
-} elseif ($BLOCK_MODE) {
+} elseif (!IS_MEMBER()) {
+ redirectToUrl('modules.php?module=index');
+} elseif ((!EXT_IS_ACTIVE('surfbar')) && (!IS_ADMIN())) {
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('surfbar'));
+ return;
+} elseif (isBlockModeEnabled()) {