X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Faction-admin.php;h=844be918d2eba2f1c30a6e51b047600f8a54f955;hp=9e7de939a9861a3d72bf11240f67383558f7caa8;hb=03f62d0b89aa9276ac37f4d616d940fae184d850;hpb=fb7120ffa230b62b54895bcf95952e1cf30f8594 diff --git a/inc/modules/guest/action-admin.php b/inc/modules/guest/action-admin.php index 9e7de939a9..844be918d2 100644 --- a/inc/modules/guest/action-admin.php +++ b/inc/modules/guest/action-admin.php @@ -38,7 +38,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } elseif ($GLOBALS['block_mode']) { // Block mode detected @@ -46,12 +46,12 @@ if (!defined('__SECURITY')) { } // Only when one admin link is clicked... -$INC = sprintf("inc/modules/guest/what-%s.php", SQL_ESCAPE($GLOBALS['what'])); -if (INCLUDE_READABLE($INC)) { +$INC = sprintf("inc/modules/guest/what-%s.php", getWhat()); +if (isIncludeReadable($INC)) { // Ok, we finally load the guest action module - LOAD_INC($INC); + loadInclude($INC); } else { - addFatalMessage(__FILE__, __LINE__, getMessage('GUEST_404_ACTION'), $GLOBALS['what']); + addFatalMessage(__FILE__, __LINE__, getMessage('GUEST_404_ACTION'), getWhat()); } //