<?php
/************************************************************************
* MXChange v0.2.1 Start: 10/24/2004 *
- * ================ Last change: 10/29/2004 *
+ * ================ Last change: 08/28/2008 *
* *
* -------------------------------------------------------------------- *
* File : ext-rewrite.php *
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);
if (empty($title)) $title = "---";
// Already registered module?
- if (ereg($mod, $_CONFIG['rewrite_skipped_mods']))
+ if (ereg($mod, $_CONFIG['rewrite_skip']))
{
// Found
$y = ' checked';
$CFG_DUMMY[$key] = $value;
}
- // Count cache hits
- $CFG_DUMMY['cache_hits']++;
+ // Count cache hits if exists
+ if ((isset($CFG_DUMMY['cache_hits'])) && (EXT_IS_ACTIVE("cache"))) {
+ $CFG_DUMMY['cache_hits']++;
+ } // END - if
} else {
// Load config from DB
$result_config = SQL_QUERY_ESC("SELECT * FROM "._MYSQL_PREFIX."_config WHERE config=%d LIMIT 1",