]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-
Fixed 'last' array, TODOs.txt updated
[mailer.git] / inc / modules / guest / action-
index 522ae20067107ac1810c91bf8d96418d351ae5b8..1dcd93d11ed31b97a499ab8ae858da252540dc52 100644 (file)
 
 // 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 ((!EXT_IS_ACTIVE("")) && (!IS_ADMIN())) {
-       addFatalMessage(__FILE__, __LINE__, EXTENSION_PROBLEM_EXT_INACTIVE, "");
+} elseif ((!EXT_IS_ACTIVE('')) && (!IS_ADMIN())) {
+       addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage(''));
        return;
 } elseif ($BLOCK_MODE) {
        // Block mode detected
@@ -49,13 +49,13 @@ if (!defined('__SECURITY')) {
 }
 
 // Add description as navigation point
-ADD_DESCR("guest", __FILE__);
+ADD_DESCR('guest', __FILE__);
 
 // Load the include file
 $INC = sprintf("inc/modules/guest/what-%s.php", $GLOBALS['what']);
-if (FILE_READABLE($INC)) {
+if (isIncludeReadable($INC)) {
        // Ok, we finally load the guest action module
-       LOAD_INC($INC);
+       loadInclude($INC);
 } elseif ($IS_VALID) {
        addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what'])));
 } else {