From 618f424e8f20db158df9ba2e032d9c819864fd91 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Nov 2005 15:22:05 +0100 Subject: [PATCH] xml-export: improved interface, fixes --- xml-export.php | 118 +++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 94 insertions(+), 24 deletions(-) diff --git a/xml-export.php b/xml-export.php index c97b964ff..f1100d39b 100644 --- a/xml-export.php +++ b/xml-export.php @@ -7,11 +7,26 @@ require_once "functions.php"; require_once "db.php"; - define('SCHEMA_VERSION', 1); - - header("Content-Type: application/xml"); + if ($_GET["export"]) { + header("Content-Type: application/xml"); + } ?> + + + + +

XML Export

+
+ Export only starred
+ Export only unread
+

+
+ + + + + Source database schema is invalid (got version $schema_version; expected ".SCHEMA_VERSION.")"; print ""; return; - } + } */ print "$schema_version"; -?> + if ($schema_version > 1) { + $owner_uid = $_SESSION["uid"]; + print "$owner_uid"; + } - + print "" . time() . ""; +?> Source database schema is invalid + (got version $schema_version)"; + } + + print "" . db_num_rows($result) . ""; + +?> + + + +"; foreach (array_keys($line) as $key) { + $line[$key] = str_replace("", "", $line[$key]); + print "<$key>"; } @@ -81,3 +149,5 @@ + +