************************************************************************/
// 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);
}
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);
}
// Replace all array elements through
- foreach ($REPLACE['search'] as $k=>$v)
+ foreach ($REPLACE['search'] as $k => $v)
{
if (eregi("$v=", $test))
{