X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-profile.php;h=42c499227e43b356c8f448c255452d01a9944c8d;hb=36a31ecf3137283ddd5d7aad121bacf3df54e2e1;hp=87ce68aa670092c4dc3f2b99d6d7688af2b0571c;hpb=75ad748a68473ace540251427a74fb781b1145e9;p=mailer.git diff --git a/inc/extensions/ext-profile.php b/inc/extensions/ext-profile.php index 87ce68aa67..42c499227e 100644 --- a/inc/extensions/ext-profile.php +++ b/inc/extensions/ext-profile.php @@ -32,8 +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); } @@ -121,10 +120,10 @@ case "update": // Update an extension default: // Do stuff when extension is loaded // Do we have a daily-reset-run? - if (defined('__DAILY_RESET') && (!DEBUG_MODE) && ($CSS != 1)) + if (isBooleanConstantAndTrue('__DAILY_RESET') && (!DEBUG_MODE) && ($CSS != 1)) { // So let's check for profiles which needs an update - $INC_POOL[] = PATH."inc/profile-updte.php"; + $INC_POOL[] = sprintf("%sinc/profile-updte.php", PATH); } break; }