]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-guest.php
Previous fix fixed, a lot constants rewritten (unfinished)
[mailer.git] / inc / modules / member / what-guest.php
index d6f565ef929f3efad0583d795b6da63ecc104367..f8be32e85b7f40d60676eb55ceef4f3ba93ac03b 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())
-{
-       LOAD_URL(URL."/modules.php?module=index");
+} elseif (!IS_MEMBER()) {
+       LOAD_URL("modules.php?module=index");
 }
 
 // Add description as navigation point
-ADD_DESCR("member", basename(__FILE__));
+ADD_DESCR("member", __FILE__);
 
 // Simply redirect...
-LOAD_URL (URL."/modules.php?module=index");
+LOAD_URL("modules.php?module=index");
 //
 ?>