Beispiel #1
0
function html_eventJS($input)
{
    return $input[1] . '=' . $input[2] . parseJS($input[3]) . $input[2];
}
Beispiel #2
0
         // Parse HTML
         $fetch->return = parseHTML($fetch->return, $fullDoc);
         // Encode the whole page?
         if ($options['encodePage']) {
             $fetch->return = encodeSource($fetch->return);
         }
         break;
         # CSS document
     # CSS document
     case 'css':
         $fetch->return = parseCSS($fetch->return);
         break;
         # Javascript document
     # Javascript document
     case 'javascript':
         $fetch->return = parseJS($fetch->return);
         break;
 }
 # Strip badwords
 $fetch->return = str_replace($badWords, '####', $fetch->return);
 # Post parsing
 if (!empty($foundPlugin) && function_exists('postParse')) {
     $fetch->return = postParse($fetch->return, $fetch->docType);
 }
 # Print debug info
 if (DEBUG_MODE) {
     echo '<pre>', print_r($fetch, true), '</pre>';
     ## Send output
 } else {
     # Do we want to compress? Yes if option is set, browser supports it, and zlib is available but compression not automated
     if (optGZIP && isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false && extension_loaded('zlib') && !ini_get('zlib.output_compression')) {