From 566faa14760112f81eea78fe441d5adc1b872da1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 27 Dec 2011 21:09:22 +0400 Subject: [PATCH] implement neutral-format personal data export --- cache/export/.empty | 0 classes/dlg.php | 18 +++++++++ classes/pref_feeds.php | 21 +++++++---- classes/rpc.php | 79 +++++++++++++++++++++++++++++++++++++++- include/sanity_check.php | 8 ++++ js/prefs.js | 78 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 196 insertions(+), 8 deletions(-) create mode 100755 cache/export/.empty diff --git a/cache/export/.empty b/cache/export/.empty new file mode 100755 index 000000000..e69de29bb diff --git a/classes/dlg.php b/classes/dlg.php index bd18f54dc..2d1cb9cc5 100644 --- a/classes/dlg.php +++ b/classes/dlg.php @@ -16,6 +16,24 @@ class Dlg extends Protected_Handler { print ""; } + function exportData() { + + print "

You need to prepare exported data first by clicking the button below.

"; + + print "
"; + print ""; + + print ""; + + print "
"; + + + } + function importOpml() { header("Content-Type: text/html"); # required for iframe diff --git a/classes/pref_feeds.php b/classes/pref_feeds.php index ed3783d67..f9ed1b554 100644 --- a/classes/pref_feeds.php +++ b/classes/pref_feeds.php @@ -1398,15 +1398,15 @@ class Pref_Feeds extends Protected_Handler { print ""; # feeds pane - print "
"; + print "
"; + + print "

" . __("OPML") . "

"; + + print "

" . __("Import") . "

"; print "

" . __("Using OPML you can export and import your feeds, filters, labels and Tiny Tiny RSS settings.") . " "; - print "" . __("Note: Only main settings profile can be migrated using OPML.") . ""; - - print "

"; - - print "

" . __("Import") . "

"; + print __("Only main settings profile can be migrated using OPML.") . "

"; print "