X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Findex.php;h=b74d1a162738cf88a05bde2061b1839502e13a94;hb=7d9e77e65d6300658a2bc308cb48f2744ce023eb;hp=27111a3f10b3b72ff64de8f1a7bdd80bb160e0f1;hpb=a954ccdf4aba81ec0e75a1836aa4bc14cb245aba;p=mailer.git diff --git a/inc/modules/index.php b/inc/modules/index.php index 27111a3f10..b74d1a1627 100644 --- a/inc/modules/index.php +++ b/inc/modules/index.php @@ -47,15 +47,15 @@ define('__GUEST_ADVERT', LOAD_TEMPLATE("guest_advert", true)); LOAD_TEMPLATE("guest_header"); // Add message here -if (!empty($_GET['msg'])) { +if (REQUEST_ISSET_GET(('msg'))) { // Default extension is "unknown" $ext = "unknown"; // Is extension given? - if (!empty($_GET['ext'])) $ext = SQL_ESCAPE($_GET['ext']); + if (REQUEST_ISSET_GET(('ext'))) $ext = REQUEST_GET(('ext')); // Which message shall we output? - $msg = convertCodeToMessage($_GET['msg']); + $msg = convertCodeToMessage(REQUEST_GET('msg')); // Load message template LOAD_TEMPLATE("message", false, $msg); @@ -83,13 +83,13 @@ if ((getConfig('guest_menu') == "Y") || (!EXT_IS_ACTIVE("sql_patches", true))) { LOAD_TEMPLATE("guest_menu_content"); // Disable block-mode by default -$BLOCK_MODE = false; +$GLOBALS['block_mode'] = false; // Construct FQFN $INC = sprintf("inc/modules/guest/action-%s.php", $GLOBALS['action']); // Is the file there? -if ((FILE_READABLE($INC)) && (VALIDATE_MENU_ACTION("guest", $GLOBALS['action'], $GLOBALS['what']))) { +if ((INCLUDE_READABLE($INC)) && (VALIDATE_MENU_ACTION("guest", $GLOBALS['action'], $GLOBALS['what']))) { // Requested module is available so we load it LOAD_INC_ONCE($INC); } else {