File:  [mozdev] / annozilla / www / annozilla-update-test.rdf.php
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Sat Jul 22 15:39:17 2006 UTC (12 years, 11 months ago) by matthew
Branches: MAIN
CVS tags: HEAD
Move script before content

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

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