X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Flogin.php;h=f9589cd58628335cb70c7f5719fc04152e472dd7;hb=8dd0d1496c53d3befb4b1c85806a811595d398e3;hp=8c493c055b609584b2671f0577304151d51bab26;hpb=c45b1827a16928c65ecc1aea6a9d7a504c4874d4;p=mailer.git diff --git a/inc/modules/login.php b/inc/modules/login.php index 8c493c055b..f9589cd586 100644 --- a/inc/modules/login.php +++ b/inc/modules/login.php @@ -35,7 +35,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif (!IS_LOGGED_IN()) { +} elseif (!IS_MEMBER()) { $URL = URL."/modules.php?module=index"; if ($check == "mem_only") $URL .= "&msg=".urlencode(LANG_MEM_ONLY_1.$GLOBALS['module'].LANG_MEM_ONLY_2); LOAD_URL($URL); @@ -62,7 +62,7 @@ if ($status != "CONFIRMED") { } // END - if // Recheck if he got logged out because bad cookies -if (!IS_LOGGED_IN()) { +if (!IS_MEMBER()) { $URL = URL."/modules.php?module=index"; LOAD_URL($URL); } // END - if @@ -96,7 +96,7 @@ OUTPUT_HTML(" "); $INC_ACTION = sprintf("%sinc/modules/member/action-%s.php", PATH, $act); -if ((file_exists($INC_ACTION)) && (is_readable($INC_ACTION)) && (VALIDATE_MENU_ACTION("member", GET_ACTION("member", $GLOBALS['what']), $GLOBALS['what']))) { +if ((FILE_READABLE($INC_ACTION)) && (VALIDATE_MENU_ACTION("member", GET_ACTION("member", $GLOBALS['what']), $GLOBALS['what']))) { // Requested module is available so we load it include ($INC_ACTION); } else {