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
This commit is contained in:
Alexandre Alapetite
2016-10-23 13:37:48 +02:00
parent 6d42acf5fd
commit fcb9280fc8
10 changed files with 128 additions and 45 deletions

View File

@@ -4,16 +4,16 @@ require('_cli.php');
$options = getopt('', array(
'user:',
'password::',
'api-password::',
'language::',
'email::',
'token::',
'password:',
'api-password:',
'language:',
'email:',
'token:',
));
if (empty($options['user'])) {
fail('Usage: ' . basename(__FILE__) . " --user=username --password='password' --api-password='api_password'" .
" --language=en --email=user@example.net --token='longRandomString'");
fail('Usage: ' . basename(__FILE__) . " --user username --password 'password' --api-password 'api_password'" .
" --language en --email user@example.net --token 'longRandomString'");
}
$username = $options['user'];
if (!ctype_alnum($username)) {