]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-sponsor.php
Fixes for rallye extension, refs are now no longer removed from rallye if ref was...
[mailer.git] / inc / modules / member / what-sponsor.php
index 6fecc2371af24427ed9f1a18cb41c0b1d498c114..22cbc52e11377d497700e5b3409aec8f16117911 100644 (file)
  ************************************************************************/
 
 // 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(URL."/modules.php?module=index");
 }