]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/action-surfbar.php
IS_LOGGED_IN() renamed to IS_MEMBER(), some HTML fixes
[mailer.git] / inc / modules / member / action-surfbar.php
index 8c80afd0debc10adb507b29fd486b0e53680685f..b957dd273e278c72c7850921e34b0dfc7e5168c6 100644 (file)
@@ -12,7 +12,7 @@
  * -------------------------------------------------------------------- *
  *                                                                      *
  * -------------------------------------------------------------------- *
- * Copyright (c) 2003, 2004, 2005, 2006, 2007 by Roland Haeder          *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -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()) {
        LOAD_URL(URL."/modules.php?module=index");
 } elseif ($BLOCK_MODE) {
        // Block mode detected
@@ -47,7 +47,7 @@ ADD_DESCR("member", basename(__FILE__));
 
 // Load the include file
 $INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, $GLOBALS['what']);
-if (file_exists($INC_WHAT)) {
+if (FILE_READABLE($INC_WHAT)) {
        // Ok, we finally load the member action module
        include_once($INC_WHAT);
 } else {