]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-guest.php
Fixed a comparison problem like string1 < string2
[mailer.git] / inc / modules / member / what-guest.php
index d6f565ef929f3efad0583d795b6da63ecc104367..e6876490bca5dd1ac5f3cf1fe9a9e88c5d18de93 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