$msg = null;
// Load the required file(s)
-require ("inc/config.php");
+require("inc/config.php");
// Is the script installed?
if (isBooleanConstantAndTrue('mxchange_installed')) {
// Only logged in users may use this surfbar!
- if (!IS_MEMBER()) {
- // Redirect
- LOAD_URL(URL."/modules.php?module=index");
- } elseif (!EXT_IS_ACTIVE("surfbar")) {
+ if (!EXT_IS_ACTIVE("surfbar")) {
// Surfbar deactivated
LOAD_URL(URL."/modules.php?module=login&msg=".CODE_EXTENSION_PROBLEM."&ext=surfbar");
+ } elseif (!IS_MEMBER()) {
+ // Redirect
+ LOAD_URL(URL."/modules.php?module=index");
}
// Handle tasks on self-maintenance