]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/action-
Security line in all includes changed
[mailer.git] / inc / modules / member / action-
index 456ce52d264cbd5a331f5c609bdb52b06854c604..93cd7421a3206a8487efe679ca7d1cfa146d6444 100644 (file)
@@ -32,7 +32,7 @@
  ************************************************************************/
 
 // 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()) {
@@ -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 {