X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=surfbar.php;h=973d4e1b5d3933a8af868ff8d16278e9c9b29039;hp=bcedacfb55a12d4007802a8ae7eb1eff28973c60;hb=7076b0bf4f326c0dcb87daa0e02e15b0f42e619e;hpb=143e78d4231adddd9e706cbf55ec5dd8c1651890 diff --git a/surfbar.php b/surfbar.php index bcedacfb55..973d4e1b5d 100644 --- a/surfbar.php +++ b/surfbar.php @@ -47,17 +47,17 @@ $CSS = 0; $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