From fcb9280fc87c159539f5832ab35f174cd515654e Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 23 Oct 2016 13:37:48 +0200 Subject: CLI export ZIP export, OPML export. Corrected height of feeds select in Pafat theme. https://github.com/FreshRSS/FreshRSS/pull/1338 https://github.com/FreshRSS/FreshRSS/issues/1039 https://github.com/FreshRSS/FreshRSS/issues/1277 --- cli/export-opml-for-user.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cli/export-opml-for-user.php (limited to 'cli/export-opml-for-user.php') diff --git a/cli/export-opml-for-user.php b/cli/export-opml-for-user.php new file mode 100644 index 000000000..bce4efd63 --- /dev/null +++ b/cli/export-opml-for-user.php @@ -0,0 +1,24 @@ +#!/usr/bin/php + /path/to/file.opml.xml'"); +} + +$username = cliInitUser($options['user']); + +fwrite(STDERR, 'FreshRSS exporting OPML for user “' . $username . "”…\n"); + +$importController = new FreshRSS_importExport_Controller(); + +$ok = false; +$ok = $importController->exportFile(true, false, array(), 0, $username); + +invalidateHttpCache($username); + +done($ok); -- cgit v1.2.3 From 6d55a4f6b4e0ede12f1da495f9266bcd4ed89785 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 23 Oct 2016 13:41:12 +0200 Subject: +x execution rights export --- cli/export-opml-for-user.php | 0 cli/export-zip-for-user.php | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 cli/export-opml-for-user.php mode change 100644 => 100755 cli/export-zip-for-user.php (limited to 'cli/export-opml-for-user.php') diff --git a/cli/export-opml-for-user.php b/cli/export-opml-for-user.php old mode 100644 new mode 100755 diff --git a/cli/export-zip-for-user.php b/cli/export-zip-for-user.php old mode 100644 new mode 100755 -- cgit v1.2.3 From 1f03e8a3aec8ff4b7bbba45bc3fd14a0552c2bc4 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 23 Oct 2016 13:44:14 +0200 Subject: CLI typo in usage example --- cli/export-opml-for-user.php | 2 +- cli/export-zip-for-user.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/export-opml-for-user.php') diff --git a/cli/export-opml-for-user.php b/cli/export-opml-for-user.php index bce4efd63..95b12281f 100755 --- a/cli/export-opml-for-user.php +++ b/cli/export-opml-for-user.php @@ -7,7 +7,7 @@ $options = getopt('', array( )); if (empty($options['user'])) { - fail('Usage: ' . basename(__FILE__) . " --user username > /path/to/file.opml.xml'"); + fail('Usage: ' . basename(__FILE__) . " --user username > /path/to/file.opml.xml"); } $username = cliInitUser($options['user']); diff --git a/cli/export-zip-for-user.php b/cli/export-zip-for-user.php index f8d24238b..3004569cc 100755 --- a/cli/export-zip-for-user.php +++ b/cli/export-zip-for-user.php @@ -8,7 +8,7 @@ $options = getopt('', array( )); if (empty($options['user'])) { - fail('Usage: ' . basename(__FILE__) . " --user username --max-feed-entries 100 > /path/to/file.zip'"); + fail('Usage: ' . basename(__FILE__) . " --user username --max-feed-entries 100 > /path/to/file.zip"); } $username = cliInitUser($options['user']); -- cgit v1.2.3