]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-sponsor.php
Another column fix
[mailer.git] / inc / modules / guest / action-sponsor.php
index de40dbc7152aea6df5e38695bf1a0d4aba5773db..4f7c9b526e5f10ab4d5cd3f8da1e39132d598652 100644 (file)
@@ -31,8 +31,7 @@
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
        require($INC);
 }
@@ -42,11 +41,12 @@ ADD_DESCR("guest", basename(__FILE__));
 
 // Load the include file
 $INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, $GLOBALS['what']);
-if (file_exists($INC)) {
+if (FILE_READABLE($INC)) {
        // Ok, we finally load the guest action module
        include($INC);
 } else {
-       $FATAL[] = GUEST_404_ACTION_1.$GLOBALS['what'].GUEST_404_ACTION_2;
+       ADD_FATAL(GUEST_404_ACTION_1.$GLOBALS['what'].GUEST_404_ACTION_2);
 }
+
 //
 ?>