X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Faction-logout.php;h=186f716c5160a21011e501fa2b8158afe8e70052;hb=d32a5a6c4e9287611853e7187a5d6d1b05794bdb;hp=03e2bca2e63a066d2f3a5bfdd3d6a074bfae69f1;hpb=963e55ca1ea79e255f235e359cde9f7862191dc5;p=mailer.git diff --git a/inc/modules/member/action-logout.php b/inc/modules/member/action-logout.php index 03e2bca2e6..186f716c51 100644 --- a/inc/modules/member/action-logout.php +++ b/inc/modules/member/action-logout.php @@ -37,21 +37,21 @@ if (!defined('__SECURITY')) { require($INC); } elseif (!IS_MEMBER()) { LOAD_URL("modules.php?module=index"); -} elseif ($BLOCK_MODE) { +} elseif ($GLOBALS['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']); -if (FILE_READABLE($INC_WHAT)) { +$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what'])); +if (INCLUDE_READABLE($INC)) { // Ok, we finally load the member action module - include_once($INC_WHAT); + LOAD_INC($INC); } else { - ADD_FATAL(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2); + addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('MEMBER_404_ACTION'), $GLOBALS['what'])); } //