From: Andrew Dolgov Date: Fri, 2 Sep 2005 10:18:45 +0000 (+0100) Subject: OPML export X-Git-Tag: 1.0.3~72 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9a4506c87de04bcde0d6da3da7c289f58d69312b;p=tt-rss.git OPML export --- diff --git a/backend.php b/backend.php index 5b996316..94ddb22f 100644 --- a/backend.php +++ b/backend.php @@ -572,11 +572,10 @@ href=\"javascript:updateFeedList()\">Refresh  OPML: Import  + href=\"opml.php?op=import\">Import  Export"; + href=\"opml.php?op=export\">Export"; - } } diff --git a/opml.php b/opml.php new file mode 100644 index 00000000..05ad1943 --- /dev/null +++ b/opml.php @@ -0,0 +1,34 @@ +"; + print ""; + print "" . date("r", time()) . ""; + print ""; + + $result = pg_query("SELECT * FROM ttrss_feeds ORDER BY title"); + + while ($line = pg_fetch_assoc($result)) { + $title = $line["title"]; + $url = $line["feed_url"]; + + print ""; + } + + print ""; + } + +?> diff --git a/prefs.js b/prefs.js index 075d85a0..b468a362 100644 --- a/prefs.js +++ b/prefs.js @@ -297,17 +297,6 @@ function localPiggieFunction(enable) { } } -function exportOPML() { - - -} - -function importOPML() { - - -} - - function init() { // IE kludge diff --git a/ttrss_schema.sql b/ttrss_schema.sql index 8be0d3da..364087f1 100644 --- a/ttrss_schema.sql +++ b/ttrss_schema.sql @@ -36,6 +36,7 @@ create table ttrss_entries (id serial not null primary key, content text not null, content_hash varchar(250) not null, last_read timestamp, + marked boolean not null default false, date_entered timestamp not null default NOW(), no_orig_date boolean not null default false, comments varchar(250) not null default '',