X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Faction-main.php;h=e5051a153070f24825991adae691d19296181b29;hb=d26e8ed6303691be6c5a0eff216494bdd6cfbe8d;hp=4a1528f74153a590a9efd9a33e7cb101ecce9ffa;hpb=397eb5dee2611cfaa1ff494d73e6785b88109cd6;p=mailer.git diff --git a/inc/modules/guest/action-main.php b/inc/modules/guest/action-main.php index 4a1528f741..e5051a1530 100644 --- a/inc/modules/guest/action-main.php +++ b/inc/modules/guest/action-main.php @@ -35,7 +35,7 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif ($BLOCK_MODE) { +} elseif ($GLOBALS['block_mode']) { // Block mode detected return; } @@ -45,15 +45,11 @@ ADD_DESCR("guest", __FILE__); // Load the include file $INC = sprintf("inc/modules/guest/what-%s.php", SQL_ESCAPE($GLOBALS['what'])); -$IS_VALID = WHAT_IS_VALID($GLOBALS['action'], $GLOBALS['what'], "guest"); - -if ((FILE_READABLE($INC)) && ($IS_VALID)) { +if (INCLUDE_READABLE($INC)) { // Ok, we finally load the guest action module LOAD_INC($INC); -} elseif ($IS_VALID) { - addFatalMessage(sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what']))); } else { - addFatalMessage(sprintf(getMessage('GUEST_LOCKED_ACTION'), SQL_ESCAPE($GLOBALS['what']))); + addFatalMessage(__FILE__, __LINE__, getMessage('GUEST_404_ACTION'), $GLOBALS['what']); } //