Commit Graph

180 Commits

Author SHA1 Message Date
Marien Fressinaud
1e5efc9299 Mark many as read must be a POST action
See https://github.com/marienfressinaud/FreshRSS/issues/599
2014-09-16 14:23:04 +02:00
Marien Fressinaud
69c7c1aa48 Change loading of base-theme css
If metadata.json indicates it should use "_template.css" or "_base.css",
base-theme/template|base.css is used. It facilitates theme maintenance.
2014-09-15 15:55:35 +02:00
Marien Fressinaud
b7b05ca3ce Import/Export: use transactions
List of articles must be iterated twice since feeds must be in DB before
using transaction for articles. It may be improved?

See https://github.com/marienfressinaud/FreshRSS/issues/591
2014-09-15 15:34:56 +02:00
Marien Fressinaud
0214576571 FIXME (import/export) Use entryDAO addEntryPrepare 2014-09-12 21:46:37 +02:00
Marien Fressinaud
3fa726a81e Import all .json files
Before, only feed_*.json and *starred*.json was imported. Now, all
*.json files are imported.
2014-09-12 21:34:42 +02:00
Marien Fressinaud
098f5e6d74 Log error if update.freshrss.org is unreachable 2014-09-12 21:10:45 +02:00
Marien Fressinaud
213bc2b9dd Check if update has been done during last minute
Cancel check action if update has been done during last hour.
2014-09-12 21:07:53 +02:00
Marien Fressinaud
d59eebf542 Add data/last_update.txt
Remember last update timestamp.
2014-09-08 20:07:09 +02:00
Marien Fressinaud
48f91da2e5 Check FRESHRSS_PATH is writable.
FRESHRSS_PATH needs to be writable before performing update.
2014-09-08 19:52:21 +02:00
Marien Fressinaud
ef1b35fc43 Merge branch 'dev' into 411-update-system
Conflicts:
	constants.php
2014-09-08 19:26:35 +02:00
Alexis Degrugillier
f002dbe4ce Add average on repartition charts.
It needs some verification on the value used to calculate the averages.
2014-09-01 20:58:05 -04:00
Marien Fressinaud
1316ada152 Fix bug add favorite entry
See https://github.com/marienfressinaud/FreshRSS/issues/494
2014-08-23 22:02:22 +02:00
Marien Fressinaud
ae54a14386 Fix problem with starred files for import/export
Improve guessFileType method

See https://github.com/marienfressinaud/FreshRSS/issues/494
2014-08-23 21:37:37 +02:00
Marien Fressinaud
17cf6fae6b Merge branch 'dev' of github.com:marienfressinaud/FreshRSS into dev 2014-08-23 20:55:08 +02:00
Alexis Degrugillier
b1139bf39c Add category reading option
Before, when a category was selected, it was expanded to show the feeds in that category.
Now, there is a parameter that allows the user to choose either if he wants the old behaviour or if he wants to expand only when needed (when selecting a feed or when clicking the appropriate button)
2014-08-23 08:18:47 -04:00
Alexandre Alapetite
fb664c2405 Correction pagination bug for read articles
https://github.com/marienfressinaud/FreshRSS/issues/587
2014-08-23 11:04:17 +02:00
Alexandre Alapetite
ea99ac1259 Syntax 581
#581
2014-08-19 21:55:49 +02:00
Alexis Degrugillier
393fce3e8a Add a feed selector in repartition statistics.
Before we could choose the feed in the statistics only from the feed options in the main view. Now with the new drop-down list, it is possible to choose it from the statistics page.
The rendering needs to be polished to be nicer.
2014-08-19 08:55:44 -04:00
Marien Fressinaud
e3bb80de17 Refactor import / export source code
See https://github.com/marienfressinaud/FreshRSS/issues/494
2014-08-17 22:14:13 +02:00
Marien Fressinaud
0f1133ddfe Fix some forward() actions
See https://github.com/marienfressinaud/FreshRSS/issues/494
2014-08-17 21:03:01 +02:00
Alexandre Alapetite
5c2f3349fa Long term cookie: purge old tokens
https://github.com/marienfressinaud/FreshRSS/issues/465
2014-08-13 20:09:23 +02:00
Alexandre Alapetite
359ccc8e4c Long term cookie minor change
https://github.com/marienfressinaud/FreshRSS/issues/465
2014-08-13 00:25:52 +02:00
Alexandre Alapetite
ee1b8f6f72 Long term cookie to keep session open
Token system
https://github.com/marienfressinaud/FreshRSS/issues/465
2014-08-13 00:09:48 +02:00
Marien Fressinaud
775ff40780 Improve import system
Catch more errors
Code refactoring
2014-08-12 22:55:43 +02:00
Marien Fressinaud
7900c5e550 Move htmlspecialchars_utf8 from Request to Helper
And remove html_chars_utf8 to use htmlspecialchars_utf8 instead in
importExportController
2014-08-12 21:56:34 +02:00
Marien Fressinaud
1b20f6bd02 New wrappers Minz_Request::good() and bad()
1. Set a notification message in session variable
2. Redirect to a specific url

First use in importExportController.php

See https://github.com/marienfressinaud/FreshRSS/conversations/576
2014-08-12 21:01:07 +02:00
Marien Fressinaud
909d8747ba Update system now uses HTTPS connection
- Add some curl checks
- Refactor code
2014-08-12 20:15:46 +02:00
Marien Fressinaud
8ffd59f34a Improve import system
Catch errors of zip_open and log it. A notification is shown to indicate
something went wrong.

See https://github.com/marienfressinaud/FreshRSS/issues/494
2014-08-11 19:18:12 +02:00
Marien Fressinaud
94570aaf5a Improve system import/export
Miss checking presence of zip extension during import

See https://github.com/marienfressinaud/FreshRSS/issues/494
2014-08-11 19:02:27 +02:00
Marien Fressinaud
93a77f84d4 Change cookie lifetime to 1 month.
See https://github.com/marienfressinaud/FreshRSS/issues/465
2014-08-10 21:08:10 +02:00
Marien Fressinaud
eceb7756cf Add possibility to keep logged in with form
Add an option to keep logged in.
Change lifetime of session cookie to 1 year.

See https://github.com/marienfressinaud/FreshRSS/issues/465
2014-08-10 20:29:43 +02:00
Marien Fressinaud
1e71e67250 Merge branch 'dev' into 411-update-system 2014-08-10 12:47:54 +02:00
Marien Fressinaud
3ca8c7ec4c Litlle improvements (update system)
- Check UPDATE_FILENAME exists before applying update
- Add empty line at the end of files
2014-08-10 11:52:18 +02:00
Marien Fressinaud
9a5d6245fb Improve update API
Update script must implement 4 functions:
- apply_update() to perform the update (most important). Return true if
  all is ok, else false.
- need_info_update() returns true if we need more info for update, else
  false. If this function always returns false, you don't need to
  implement following functions (but it's better to not forget)
- ask_info_update() should be a HTML form to ask infos. Method must be
  post and action must point to _url('update', 'apply') (or leave it
  blank)
- save_info_update() is called for POST requests (to save form from
  ask_info_update())
2014-08-10 10:55:51 +02:00
Marien Fressinaud
7ed111b1bf Add translations for update system 2014-08-10 10:35:17 +02:00
Marien Fressinaud
e7dba0ce7c Add basic system of update
- Check on update.freshrss.org for new updates
- Download script
- Apply script
- Need translations and verifications

NOTE: current script on server indicates version 0.7.3 is an update
of 0.8-dev ==> IT'S ONLY FOR MY TESTS!

Script just does a backup of ./data actually...

See https://github.com/marienfressinaud/FreshRSS/issues/411
2014-08-09 23:29:13 +02:00
Alexandre Alapetite
b68c5c6630 Dynamic favicon: remove the same number in the title
Now the number of unread articles in only shown in the favicon
https://github.com/marienfressinaud/FreshRSS/issues/539
2014-08-09 22:00:20 +02:00
Alexandre Alapetite
2b25aa8f68 Option to hide (or not) feeds/categories with no unread article
https://github.com/marienfressinaud/FreshRSS/issues/430
https://github.com/marienfressinaud/FreshRSS/issues/575
2014-08-09 18:46:22 +02:00
Marien Fressinaud
d007b22beb Change view import/export if no zip extension
Show a select with only one choice is there is no zip extension on
the server.
Fix typo.

See https://github.com/marienfressinaud/FreshRSS/issues/494
2014-08-09 00:23:22 +02:00
Marien Fressinaud
fda8eba4d1 Add a test to check presence of Zip archive.
A notification is shown if we cannot use ZipArchive.

See https://github.com/marienfressinaud/FreshRSS/issues/494
2014-08-09 00:12:37 +02:00
Marien Fressinaud
84826491a3 Improve export function
If there is only one file to export, we don't need of a .zip archive.
So it is exported as a simple file (.json or .opml)

See https://github.com/marienfressinaud/FreshRSS/issues/494
2014-08-08 23:53:16 +02:00
Alexandre Alapetite
35be1769de Basic protection against XSRF using Referer
https://github.com/marienfressinaud/FreshRSS/issues/554
Also edited the error controler to use the log message passed in
Minz_Error::error().
2014-08-01 20:20:25 +02:00
Marien Fressinaud
4a0e5ac037 Merge pull request #548 from aledeg/more-stats
Add article repartition in stats
2014-07-29 00:07:07 +02:00
plopoyop
ad9fbf3887 Correct bug in add/remove users 2014-07-26 13:29:55 +02:00
Alexis Degrugillier
d049c1bc80 Add article repartition in stats
Add article repartition per hour, per day of week, per month for all feeds but also for individual feeds.
2014-07-24 21:57:59 -04:00
Alexandre Alapetite
e507256d0b Stats idle feed small bug
Some feeds were listed more than once. A bit more independent from the
SQL query.
https://github.com/marienfressinaud/FreshRSS/issues/544
2014-07-23 00:24:00 +02:00
Alexandre Alapetite
937cb4b066 Idle feeds: link to configuration page
https://github.com/marienfressinaud/FreshRSS/issues/544
2014-07-22 13:41:31 +02:00
Alexandre Alapetite
2da4c13263 Number of unread articles as prefix in page title
https://github.com/marienfressinaud/FreshRSS/issues/536
2014-07-13 22:36:34 +02:00
Marien Fressinaud
85bae5436c Fix bug changement default view
- It was impossible to set default view to "Show all articles"
- "0" was compared to 0 ("O" === 0 => false)
- cast value from Minz_Request into integer
2014-07-10 20:44:35 +02:00
Alexandre Alapetite
0f842c1aea SQL: removed superfluous transactions to avoid some dead locks 2014-07-08 14:14:02 +02:00