X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-rallyes.php;h=83b1150c9252fd86d21ee6287d3d86f0484aaeb8;hb=9ebbb5d10817b978a59bdb009b3f41b40fdb3c6c;hp=6185904b432c1f65d79d805083c21c48a80e0bbf;hpb=60494e212a67fe360bfbb481eb4928480a6f379b;p=mailer.git diff --git a/inc/modules/member/what-rallyes.php b/inc/modules/member/what-rallyes.php index 6185904b43..83b1150c92 100644 --- a/inc/modules/member/what-rallyes.php +++ b/inc/modules/member/what-rallyes.php @@ -32,17 +32,12 @@ ************************************************************************/ // 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); -} - elseif (!IS_LOGGED_IN()) -{ +} elseif (!IS_MEMBER()) { LOAD_URL("modules.php?module=index"); -} - elseif ((!EXT_IS_ACTIVE("rallye")) && (!IS_ADMIN())) -{ +} elseif (!EXT_IS_ACTIVE("rallye")) { ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "rallye"); return; }