// Filter for loading configuration
function FILTER_LOAD_CONFIGURATION ($no = '0') {
+ // Is installation phase?
+ if (isInstallationPhase()) {
+ // Then don't load any configuration
+ return;
+ } // END - if
+
// Is the value null, it comes from the 'init' filter chain
if (is_null($no)) {
$no = '0';
// Is the module registered?
if (!isModuleRegistered(getRequestElement('module'))) {
// Is not a valid module
- redirectToUrl('index.php');
+ redirectToUrl('modules.php?module=index');
} // END - if
// Is the request element set?
// Update module counter
function FILTER_COUNT_MODULE () {
+ // Is installation phase?
+ if (isInstallationPhase()) {
+ // Then don't count any modules
+ return;
+ } // END - if
+
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'getModule()=' . getModule() . ' - ENTERED!');
// Do count all other modules but not accesses on CSS file css.php!
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `clicks`=`clicks`+1 WHERE `module`='%s' LIMIT 1",
// Do the final (general) compilation
$GLOBALS['__output'] = doFinalCompilation($GLOBALS['__output']);
- // Is the output mode not HTML?
- if (!isHtmlOutputMode()) {
- // Then remove entities
- $GLOBALS['__output'] = compileUriCode($GLOBALS['__output']);
- } // END - if
+ // Compile any other things out
+ $GLOBALS['__output'] = compileUriCode($GLOBALS['__output']);
// Extension 'rewrite' installed?
if ((isExtensionActive('rewrite')) && (!isCssOutputMode())) {
} // END - if
// Compile QUOT and other non-HTML codes
- $code = str_replace($charsCompile['from'], $charsCompile['to'], decodeEntities($code));
+ $code = str_replace($charsCompile['from'], $charsCompile['to'], $code);
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'code=' . $code);
// Return compiled code