X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Faction-members.php;h=3a3b270e6e9a7032cd3fc03bc7687d6b47f8711a;hb=0369c36aaab5af6ed44da1e13a53baef285f79b4;hp=911c408d0ba1e314b263637e723afc97623ee0d5;hpb=75ad748a68473ace540251427a74fb781b1145e9;p=mailer.git diff --git a/inc/modules/guest/action-members.php b/inc/modules/guest/action-members.php index 911c408d0b..3a3b270e6e 100644 --- a/inc/modules/guest/action-members.php +++ b/inc/modules/guest/action-members.php @@ -42,15 +42,13 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) ADD_DESCR("guest", basename(__FILE__)); // Load the include file -$INC = sprintf(PATH."inc/modules/guest/what-%s.php", $GLOBALS['what']); -if (file_exists($INC)) -{ +$INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, $GLOBALS['what']); +if (FILE_READABLE($INC)) { // Ok, we finally load the guest action module include($INC); -} - else -{ +} else { ADD_FATAL(GUEST_404_ACTION_1.$GLOBALS['what'].GUEST_404_ACTION_2); } + // ?>