]> git.mxchange.org Git - mailer.git/blobdiff - surfbar.php
add_mode in ADD_POINTS_REFSYSTEM() is now always lower-case
[mailer.git] / surfbar.php
index f0d1dab1e62f1c4deba399908d6dbb3c94836e39..93510abffa06ab1e94dddec7f5675b5992cd5684 100644 (file)
@@ -50,14 +50,14 @@ $msg = null;
 require ("inc/config.php");
 
 // Is the script installed?
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_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")) {
                // Surfbar deactivated
-               LOAD_URL(URL."/modules.php?module=login&msg=".CODE_EXTENSION_PROBLEM);
+               LOAD_URL(URL."/modules.php?module=login&msg=".CODE_EXTENSION_PROBLEM."&ext=surfbar");
        }
 
        // Is there a check value?
@@ -195,8 +195,5 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
        LOAD_URL("install.php");
 }
 
-// Close any open database connection here
-SQL_CLOSE($link, __FILE__, __LINE__);
-
 // Really all done here... ;-)
 ?>