Some functions rewritten to hungarian notation, handling of array rewritten
[mailer.git] / inc / modules / member / what-surfbar_stats.php
index 38ae863068ba70b43bc88bc2eea00667d20bd915..a79ab6da58f32e91b67b2b285286bc6fd2ee19bc 100644 (file)
@@ -36,9 +36,9 @@ if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 } elseif (!IS_MEMBER()) {
-       LOAD_URL(URL."/modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("surfbar")) {
-       ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
+       LOAD_URL("modules.php?module=index");
+} elseif ((!EXT_IS_ACTIVE("surfbar")) && (!IS_ADMIN())) {
+       addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
        return;
 }