]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/login.php
- Major change in LOAD_EMAIL_TEMPLATE(). The deprecated switch() block has
[mailer.git] / inc / modules / login.php
index 8c493c055b609584b2671f0577304151d51bab26..f9589cd58628335cb70c7f5719fc04152e472dd7 100644 (file)
@@ -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("   </TD>
   <TD valign=\"top\" align=\"center\" rowspan=\"3\" class=\"member_content\">");
 
 $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 {