Exemple #1
0
                 $insert = loadTemplate('framedForm.inc', $vars);
                 # Wrap in enable/disble override to prevent the overriden functions
                 # affecting anything in the mini-form (like ad codes)
                 if ($CONFIG['override_javascript']) {
                     $insert = '<script type="text/javascript">disableOverride();</script>' . $insert . '<script type="text/javascript">enableOverride();</script>';
                 }
             }
             # 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