File:  [mozdev] / annozilla / www / annozilla-update-test.rdf.php
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sat Jul 22 15:38:41 2006 UTC (12 years, 9 months ago) by matthew
Branches: MAIN
CVS tags: HEAD
Add HTTP headers

    1: <?xml version="1.0"?>
    2: <?php
    3:   header('Content-type: application/rdf+xml');
    4: // calc an offset of 1 hour
    5:   $offset = 3600;
    6: // calc the string in GMT not localtime and add the offset
    7:   $expire = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";
    8: //output the HTTP header
    9:   Header($expire);
   10: ?>
   11: <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   12:     xmlns:em="http://www.mozilla.org/2004/em-rdf#">
   13: 
   14:   <Description about="urn:mozilla:extension:{6a0d8528-3350-49b8-b26f-ea49fd8ea706}">
   15: 
   16:     <!-- Firefox 1.0 format: list of all available updates -->
   17:     <em:updates>
   18:       <Seq>
   19:         <li resource="urn:mozilla:extension:{6a0d8528-3350-49b8-b26f-ea49fd8ea706}:0.6.5"/>
   20:       </Seq>
   21:     </em:updates>
   22: 
   23:   </Description>
   24: 
   25:   <Description about="urn:mozilla:extension:{6a0d8528-3350-49b8-b26f-ea49fd8ea706}:0.6.5">
   26:     <em:version>0.6.5</em:version>
   27:     <em:targetApplication>
   28:       <Description>
   29:         <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- Firefox -->
   30:         <em:minVersion>1.0</em:minVersion>
   31:         <em:maxVersion>2.0b1</em:maxVersion>
   32:         <em:updateLink>http://downloads.mozdev.org/annozilla/annozilla-0.6.5.xpi</em:updateLink>
   33:       </Description>
   34:     </em:targetApplication>
   35:     <!-- Dependencies -->
   36:     <em:requires>
   37:       <Description>
   38:         <em:id>{1a78ab42-f996-4c90-a649-4e7a2dcad5c0}</em:id>
   39:         <em:name>annotations</em:name>
   40:         <em:homepageURL>http://annozilla.mozdev.org/</em:homepageURL>
   41:         <em:updateURL>http://annozilla.mozdev.org/annotations-update.rdf</em:updateURL>
   42:         <em:minVersion>0.3.3</em:minVersion>
   43:         <em:maxVersion>0.3.3</em:maxVersion>
   44:       </Description>
   45:     </em:requires>
   46:     <em:requires>
   47:       <Description>
   48:         <em:id>{f2ba8b04-849e-4818-861c-46a2b838326a}</em:id>
   49:         <em:name>xpointerlib</em:name>
   50:         <em:homepageURL>http://xpointerlib.mozdev.org/</em:homepageURL>
   51:         <em:updateURL>http://xpointerlib.mozdev.org/xpointerlib-update.rdf</em:updateURL>
   52:         <em:minVersion>0.2.2</em:minVersion>
   53:         <em:maxVersion>0.2.3</em:maxVersion>
   54:       </Description>
   55:     </em:requires>
   56: 
   57:   </Description>  
   58: 
   59: </RDF>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>