X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Faction-;h=9f305f19f2f36d7a18c8d883d5d06252203a75a0;hp=93cd7421a3206a8487efe679ca7d1cfa146d6444;hb=3c4fbc22e3c04348734182d4d29bfef7eb050aa6;hpb=963e55ca1ea79e255f235e359cde9f7862191dc5 diff --git a/inc/modules/member/action- b/inc/modules/member/action- index 93cd7421a3..9f305f19f2 100644 --- a/inc/modules/member/action- +++ b/inc/modules/member/action- @@ -37,16 +37,19 @@ if (!defined('__SECURITY')) { require($INC); } elseif (!IS_LOGGED_IN()) { LOAD_URL(URL."/modules.php?module=index"); +} elseif ((!EXT_IS_ACTIVE("")) && (!IS_ADMIN())) { + ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, ""); + 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);