     if ( $plugin ) \{
       header("Content-type: text/xml; charset=utf-8",true);
       echo ('<?xml version="1.0"?>' . "\n");
     ?>
     <!DOCTYPE RDF>
     <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
       xmlns:em="http://www.mozilla.org/2004/em-rdf#">
       <Description about="urn:mozilla:extension:<?php echo $pluginname ?>">
         <em:updates>
           <Seq>
             <li>
               <Description>
                 <em:version><?php echo $plugin["version"] ?></em:version>
                 <em:targetApplication>
                   <Description>
					 <?php echo $applications[$plugin["application"]] ?> 
                     <em:updateLink>http://{$SystemName}.{$DomainName}/SOGo-plugins/<?php echo $plugin["filename"] ?></em:updateLink>
                   </Description>
                 </em:targetApplication>
               </Description>
             </li>
           </Seq>
         </em:updates>
       </Description>
     </RDF>
     <?php
     \} else \{
       header("Content-type: text/plain; charset=utf-8", true, 404);
       echo( 'Plugin not found' );
     \}
