X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Faction-members.php;h=c24c213ab93f9ed0a52954719f5caa2a3bd63417;hp=d066e560368d8fe4a910cb3aeff8b79452664811;hb=3daede4c904e23905c3e48dd6749019deca0a0e0;hpb=497d9d8fcda61391c149af3747118bb2772c7c26 diff --git a/inc/modules/guest/action-members.php b/inc/modules/guest/action-members.php index d066e56036..c24c213ab9 100644 --- a/inc/modules/guest/action-members.php +++ b/inc/modules/guest/action-members.php @@ -35,6 +35,9 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); +} elseif ($BLOCK_MODE) { + // Block mode detected + return; } // Add description as navigation point @@ -45,8 +48,10 @@ $INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['wha if (FILE_READABLE($INC)) { // Ok, we finally load the guest action module include($INC); +} elseif ($IS_VALID) { + addFatalMessage(sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what']))); } else { - ADD_FATAL(GUEST_404_ACTION_1.$GLOBALS['what'].GUEST_404_ACTION_2); + addFatalMessage(sprintf(getMessage('GUEST_LOCKED_ACTION'), SQL_ESCAPE($GLOBALS['what']))); } //