Skip to content
Permalink
Browse files

xml interface update

- fixed version 1.2 dtd
- added log types 9..12 to version 1.3
  • Loading branch information...
following5 committed May 10, 2013
1 parent a93c994 commit 6372cbcf9d882408ac5304bd87305db6f502ddb6
Showing with 13 additions and 9 deletions.
  1. +2 −1 htdocs/doc/xml/xml11.htm
  2. +7 −6 htdocs/xml/ocxml11.php
  3. +3 −1 htdocs/xml/ocxml12.dtd
  4. +1 −1 htdocs/xml/ocxml13.php
@@ -1,7 +1,7 @@
<html>
<head>
<title>Dokumentation Opencaching XML-Interface Version 1.2</title>
<meta name="vs_showGrid" content="True">
<meta name="vs_showGrid" content="True" />
</head>
<body style="font-family: arial, sans-serif, Tahoma, Verdana; font-size:12px">
<h1>Dokumentation Opencaching XML-Interface Version 1.2</h1>
@@ -44,6 +44,7 @@ <h2>Änderungen in Version 1.3 (Mai 2013)</h2>
<li>Das &lt;date&gt;-Element von Logs enthält nun auch die Uhrzeit. 00:00:00 bedeutet, dass keine Uhrzeit geloggt wurde; alles andere bedeutet, dass mit Stunde und Minute geloggt wurde.</li>
<li>Element für Bildeigenschaften von &lt;attributes&gt; in &lt;picattr&gt; umbenannt, um Kollisionen mit dem Cache-Attribut-Element zu vermeiden.</li>
<li>Vorschaubild-Flag (<em>preview</em>) zu &lt;picattr&gt; hinzugefügt.</li>
<li>zusätzliche Logtypen 9 (archiviert), 10 (kann gesucht werden), 11 (momentan nicht verfügbar) und 12 (gesperrt)</li>
</ul>

<p>Der XML-Doctype lautet in allen Versionen "oc11xml".</p>
@@ -501,13 +501,14 @@ function outputXmlFile($sessionid, $filenr, $bXmlDecl, $bOcXmlTag, $bDocType, $z
if ($ocxmlversion >= 13)
{
$rsWaypoints = sql("SELECT `co`.`id`, `co`.`subtype` AS `type`,
`co`.`latitude`, `co`.`longitude`, `co`.`description`,
`ct`.`name` AS `type_name`
FROM `coordinates` `co`
INNER JOIN `coordinates_type` `ct` ON `ct`.`id`=`co`.`subtype`
$rsWaypoints = sql("SELECT `coordinates`.`id`, `coordinates`.`subtype` AS `type`,
`coordinates`.`latitude`, `coordinates`.`longitude`,
`coordinates`.`description`,
`coordinates_type`.`name` AS `type_name`
FROM `coordinates`
INNER JOIN `coordinates_type` ON `coordinates_type`.`id`=`coordinates`.`subtype`
WHERE `cache_id`='&1' AND `type`=1
ORDER BY `co`.`id` ASC", $r['id']);
ORDER BY `coordinates`.`id` ASC", $r['id']);
fwrite($f, $t2 . '<wpts>' . "\n");
while ($rWaypoint = sql_fetch_assoc($rsWaypoints))
{
@@ -98,7 +98,6 @@
<!ELEMENT hint (#PCDATA)>

<!-- cachelog -->

<!-- cacheid see cachedesc -->
<!-- userid see cache -->
<!ELEMENT logtype (#PCDATA)>
@@ -108,6 +107,9 @@
>
<!ELEMENT date (#PCDATA)>
<!ELEMENT text (#PCDATA)>
<!ATTLIST text
html CDATA #REQUIRED
>

<!-- picture -->
<!ELEMENT url (#PCDATA)>
@@ -1,6 +1,6 @@
<?php
/***************************************************************************
./xml/ocxml12.php
./xml/ocxml13.php
For license information see doc/license.txt

0 comments on commit 6372cbc

Please sign in to comment.
You can’t perform that action at this time.