]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/action-extras.php
More time() in SQL queries replace with UNIX_TIMESTAMP()
[mailer.git] / inc / modules / member / action-extras.php
index e84cc7836d41d0dc11feacc1caf8af8169e30c3f..4c5e8d6e4fccfb140f33aa1a9d1834714e506dce 100644 (file)
@@ -39,7 +39,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
 }
  elseif (!IS_LOGGED_IN())
 {
-       LOAD_URL(URL."/modules.php?module=index");
+       LOAD_URL("modules.php?module=index");
 }
  elseif ($BLOCK_MODE)
 {
@@ -51,15 +51,13 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
 ADD_DESCR("member", basename(__FILE__));
 
 // Load the include file
-$INC_WHAT = sprintf(PATH."inc/modules/member/what-%s.php", $GLOBALS['what']);
-if (file_exists($INC_WHAT))
-{
+$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, $GLOBALS['what']);
+if (FILE_READABLE($INC_WHAT)) {
        // Ok, we finally load the member action module
        include_once($INC_WHAT);
-}
- else
-{
+} else {
        ADD_FATAL(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
 }
+
 //
 ?>