]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/action-bank.php
Began to rewrite whole script for newly added filters, new extension stub 'network...
[mailer.git] / inc / modules / member / action-bank.php
index ab4e84069a5cbe569042b0bd9d6ca3aec197774a..d334432548d6bbf323173bb55c534ce780955ecd 100644 (file)
@@ -37,6 +37,9 @@ if (!defined('__SECURITY')) {
        require($INC);
 } elseif (!IS_MEMBER()) {
        LOAD_URL("modules.php?module=index");
+} elseif ((!EXT_IS_ACTIVE("bank")) && (!IS_ADMIN())) {
+       ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
+       return;
 } elseif ($BLOCK_MODE) {
        // Block mode detected
        return;
@@ -46,7 +49,7 @@ if (!defined('__SECURITY')) {
 ADD_DESCR("member", __FILE__);
 
 // Load the include file
-$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, $GLOBALS['what']);
+$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
 if (FILE_READABLE($INC_WHAT)) {
        // Ok, we finally load the member action module
        include_once($INC_WHAT);