xml interface update
- fixed version 1.2 dtd - added log types 9..12 to version 1.3
This commit is contained in:
@ -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 @@
|
||||
<li>Das <date>-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 <attributes> in <picattr> umbenannt, um Kollisionen mit dem Cache-Attribut-Element zu vermeiden.</li>
|
||||
<li>Vorschaubild-Flag (<em>preview</em>) zu <picattr> 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
|
||||
|
||||
|
Reference in New Issue
Block a user