} # And load the footer $footer = $CONFIG['footer_include']; } # Inject javascript unless sniffed if ($fetch->sniff == false) { $inject = true; } # Run through HTML parser $document = $parser->HTMLDocument($document, $insert, $inject, $footer); break; # CSS file # CSS file case 'css': # Run through CSS parser $document = $parser->CSS($document); break; # Javascript file # Javascript file case 'javascript': # Run through javascript parser $document = $parser->JS($document); break; } # Apply postparsing from plugins if ($foundPlugin && function_exists('postParse')) { $document = postParse($document, $fetch->parseType); } # Send output if (!DEBUG_MODE) { # Do we want to gzip this? Yes, if all of the following are true:
} // And load the footer $footer = $CONFIG['footer_include']; } // Inject javascript unless sniffed if ($fetch->sniff == false) { $inject = true; } // Run through HTML parser $document = $parser->HTMLDocument($document, $insert, $inject, $footer); break; // CSS file // CSS file case 'css': // Run through CSS parser $document = $parser->CSS($document); break; // Javascript file // Javascript file case 'javascript': // Run through javascript parser $document = $parser->JS($document); break; } // Apply postparsing from plugins if ($foundPlugin && function_exists('postParse')) { $document = postParse($document, $fetch->parseType); } // Apply the "badwords" filter if ($CONFIG['censor_words']) { $document = str_replace($CONFIG['censor_words'], '####', $document);