]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/action-order.php
More extension-depending menus secured
[mailer.git] / inc / modules / member / action-order.php
index 2a42cbfbffe237e2e9fd4f0b3a10abee43e7f941..5b1492cab392c33588baf1a9b176a302ba05eb06 100644 (file)
@@ -37,16 +37,19 @@ if (!defined('__SECURITY')) {
        require($INC);
 } elseif (!IS_MEMBER()) {
        LOAD_URL("modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("order")) {
+       ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "order");
+       return;
 } elseif ($BLOCK_MODE) {
        // Block mode detected
        return;
 }
 
 // Add description as navigation point
-ADD_DESCR("member", basename(__FILE__));
+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);