]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-admin.php
More references to removed (still some left)
[mailer.git] / inc / modules / guest / action-admin.php
index d62329fd1a8fb76f15a72938f59fb61121f9bd99..5260a3ef79a545d2fd3d1091f08e6a2137becb24 100644 (file)
@@ -40,16 +40,14 @@ if (!defined('__SECURITY')) {
        return;
 }
 
-if (GET_ACTION("guest", $GLOBALS['what']) == "admin") {
-       // Only when one admin link is clicked...
-       $INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
-       if (FILE_READABLE($INC)) {
-               // Ok, we finally load the guest action module
-               include($INC);
-       } else {
-               ADD_FATAL(GUEST_404_ACTION_1.$GLOBALS['what'].GUEST_404_ACTION_2);
-       }
-} // END - if
+// Only when one admin link is clicked...
+$INC = sprintf("inc/modules/guest/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
+if (FILE_READABLE($INC)) {
+       // Ok, we finally load the guest action module
+       LOAD_INC($INC);
+} else {
+       addFatalMessage(getMessage('GUEST_404_ACTION'), $GLOBALS['what']);
+}
 
 //
 ?>