]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-admin.php
Deleting of entries added
[mailer.git] / inc / modules / guest / action-admin.php
index fce845e27a91c876aad076d7484bbe42b628d54a..94dbca97ce17a953a800f670596fe5d41edae7e2 100644 (file)
@@ -38,19 +38,16 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
        require($INC);
 }
 
-if (GET_ACTION("guest", $GLOBALS['what']) == "admin")
-{
+if (GET_ACTION("guest", $GLOBALS['what']) == "admin") {
        // Only when one admin link is clicked...
        $INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, $GLOBALS['what']);
-       if (file_exists($INC))
-       {
-            // Ok, we finally load the guest action module
+       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);
        }
-}
+} // END - if
+
 //
 ?>