mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-12 17:31:37 -04:00
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
25 lines
527 B
PHP
25 lines
527 B
PHP
#!/usr/bin/php
|
|
<?php
|
|
require('_cli.php');
|
|
|
|
$options = getopt('', array(
|
|
'user:',
|
|
));
|
|
|
|
if (empty($options['user'])) {
|
|
fail('Usage: ' . basename(__FILE__) . " --user username > /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);
|