From 566faa14760112f81eea78fe441d5adc1b872da1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 27 Dec 2011 21:09:22 +0400 Subject: implement neutral-format personal data export --- classes/dlg.php | 18 ++++++++++++ classes/pref_feeds.php | 19 ++++++++---- classes/rpc.php | 79 +++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 109 insertions(+), 7 deletions(-) (limited to 'classes') 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 "

" . __("Using OPML you can export and import your feeds, filters, labels and Tiny Tiny RSS settings.") . " "; + print "

" . __("OPML") . "

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

" . __("Import") . "

"; - print "

"; + print "

" . __("Using OPML you can export and import your feeds, filters, labels and Tiny Tiny RSS settings.") . " "; - print "

" . __("Import") . "

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

"; print "