X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Frewrite_functions.php;h=13f9a3b48691528698b81342cea670b074b08462;hb=8ba389b59f6d41f88752cae896143135e575f34a;hp=14343603a51ae43d28dd8a71c8c3fe4043f3645f;hpb=75ad748a68473ace540251427a74fb781b1145e9;p=mailer.git diff --git a/inc/libs/rewrite_functions.php b/inc/libs/rewrite_functions.php index 14343603a5..13f9a3b486 100644 --- a/inc/libs/rewrite_functions.php +++ b/inc/libs/rewrite_functions.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); } @@ -41,10 +40,10 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) // function REWRITE_LINKS($HTML) { - global $_GET, $CONFIG; + global $_CONFIG; // Skip rewriting for the admin area (which search engine may enter here???) - if (ereg($GLOBALS['module'], $CONFIG['rewrite_skipped_mods'])) return $HTML; + if (ereg($GLOBALS['module'], $_CONFIG['rewrite_skip'])) return $HTML; // Strip slashes with double-backslashes for the preg_replace() function $URL = str_replace("/", "\\/", URL); @@ -102,7 +101,7 @@ function REWRITE_LINKS($HTML) } // Replace all array elements through - foreach ($REPLACE['search'] as $k=>$v) + foreach ($REPLACE['search'] as $k => $v) { if (eregi("$v=", $test)) {