Commit Graph

67 Commits

Author SHA1 Message Date
Marien Fressinaud
73023bc12b Merge branch 'dev' into 252-extensions
Conflicts:
	app/FreshRSS.php
	app/Models/Configuration.php
	app/views/index/index.phtml
	app/views/index/normal.phtml
	lib/Minz/Configuration.php
	lib/Minz/Translate.php
	lib/lib_rss.php
2015-01-08 14:18:32 +01:00
Marien Fressinaud
09545b0a65 Fix calls to remove_query_by_get()
The function has been moved into lib_rss.php

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-07 15:37:24 +01:00
Marien Fressinaud
d3a93ea290 BREAKING FEATURE: Remove general in config
General attribute has been removed from system config.
Now subattributes (e.g. environment, salt, title, etc.) are directly accessible.

YOU HAVE TO FIX YOUR ./data/config.php file!

- Remove the general array
- Values inside this array must be kept
- To see what it must look like, please have a look to ./data/config.default.php
  (but keep your values!!).

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 18:53:36 +01:00
Marien Fressinaud
d27efeec04 Fix Controllers to use the correct config system
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 17:38:31 +01:00
Marien Fressinaud
7cca47d1ab Change name of user configuration var in Context
- FreshRSS_Context::$conf is replaced by FreshRSS_Context::$user_conf
- Introduce FreshRSS_Context::$system_conf
- Remove FreshRSS_Configuration object

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-05 22:45:03 +01:00
Marien Fressinaud
0b89867800 Merge branch 'dev' into 252-extensions
Conflicts:
	app/i18n/en/admin.php
	app/i18n/en/feedback.php
	app/i18n/en/gen.php
	app/i18n/fr/admin.php
	app/i18n/fr/feedback.php
	app/i18n/fr/gen.php
	app/views/index/normal.phtml
2014-12-17 21:41:33 +01:00
Marien Fressinaud
fee1ae997a Fix i18n for conf, entry, error, feed Controllers 2014-12-11 19:02:05 +01:00
Marien Fressinaud
70c1f0ebb0 Fix redirection after feed refresh
Fix https://github.com/FreshRSS/FreshRSS/issues/716
2014-12-09 12:43:33 +01:00
Marien Fressinaud
28c77f2290 Fix a bug with feed_before_insert hook
$feed->name() was called on a null value.

See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-08 13:12:12 +01:00
Marien Fressinaud
188b517daa Add a feed_before_insert hook
See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-08 13:05:56 +01:00
Marien Fressinaud
7ef4d6c033 Fix entry_before_insert hook
The hook must be called also in:
- feedController->addAction()
- importExportController->importJson()

See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-07 14:39:02 +01:00
Marien Fressinaud
08546af75f Add a first draft for hooks
- New Extension->registerHook($hook_name, $hook_function) method to register a new hook
- Only one hook works for the moment: entry_before_insert
- ExtensionManager::callHook will need to evolve based on future hooks

See https://github.com/FreshRSS/FreshRSS/issues/252
2014-12-06 18:48:00 +01:00
Marien Fressinaud
58deab37cd Fix Minz_Error::error() -> use default values 2014-10-30 19:57:08 +01:00
Marien Fressinaud
cf7350af47 Update i18n for limit of feeds
See https://github.com/marienfressinaud/FreshRSS/issues/680
2014-10-29 10:21:34 +01:00
Alexandre Alapetite
4cbd7e0583 Bug: unlock was not done for feeds with error 2014-10-28 23:32:55 +01:00
Alexandre Alapetite
c6f35ef51c Global limits for number of feeds and categories
New 'limits' sub-array in config.php with 'max_feeds' and
'max_categories'. If the values are < 0, then it is the default value
(16384).
https://github.com/marienfressinaud/FreshRSS/issues/680
2014-10-27 21:45:30 +01:00
Marien Fressinaud
1a22a87fb1 Use FreshRSS_Context::$conf only
- Replace $this->view->conf in controllers
- Replace $this->conf in views
2014-10-20 18:45:22 +02:00
Marien Fressinaud
79aa5beaf4 Refactor authentication system.
Big work, not finished. A lot of features have been removed.

See https://github.com/marienfressinaud/FreshRSS/issues/655
2014-10-06 23:29:20 +02:00
Marien Fressinaud
d65a9f9bd6 Refactor entryController
- Coding style
- Refactoring
- Comments (set of TODO)

See https://github.com/marienfressinaud/FreshRSS/issues/655
2014-10-06 11:59:27 +02:00
Marien Fressinaud
e2da6e6e6b Refactor feedController
See https://github.com/marienfressinaud/FreshRSS/issues/655
2014-10-05 23:20:16 +02:00
Marien Fressinaud
d8f4681382 Replace Minz_Log::record by corresponding methods
Please not use Minz_Log::record anymore!

See https://github.com/marienfressinaud/FreshRSS/issues/655
2014-10-05 19:35:29 +02:00
Marien Fressinaud
9a0d01be0c Coding style
Remove spaces before parenthesis.

See https://github.com/marienfressinaud/FreshRSS/issues/655
2014-10-05 18:24:28 +02:00
Marien Fressinaud
6c8b36f04e Let's begin the big refactoring!
Minz_Translate::t\s? replaces by _t

See https://github.com/marienfressinaud/FreshRSS/issues/655
2014-10-05 15:55:20 +02:00
Marien Fressinaud
5474803aa7 Add a TODO in feedController 2014-10-05 10:57:50 +02:00
Marien Fressinaud
dd945df0cb Fix category not change (updating feed on MySQL)
See https://github.com/marienfressinaud/FreshRSS/issues/646
2014-10-03 12:54:10 +02:00
Marien Fressinaud
94520ee326 Fix category not appear on feed.add page (GET)
Must apply to 0.8.1 and 0.9.1

See https://github.com/marienfressinaud/FreshRSS/issues/649
2014-10-02 22:02:09 +02:00
Marien Fressinaud
408ac31dd8 Hack for dragleave (triggered on children!)
See https://github.com/marienfressinaud/FreshRSS/issues/646
2014-10-02 19:02:43 +02:00
Marien Fressinaud
db4da3babc First draft for drag and drop
We can change feed category by drag and drop! Need improvements...

See https://github.com/marienfressinaud/FreshRSS/issues/646
2014-10-02 11:39:51 +02:00
Marien Fressinaud
a7bf7ced36 Fix links for feed management
See https://github.com/marienfressinaud/FreshRSS/issues/646
2014-10-01 12:18:32 +02:00
Marien Fressinaud
9e0a62727f Move empty cat action in the new Controller
feedController::delete is simpler than before.
Improve coding style

See https://github.com/marienfressinaud/FreshRSS/issues/646
2014-09-30 15:44:45 +02:00
Marien Fressinaud
17f686095d Remove queries at the same time as feeds
See https://github.com/marienfressinaud/FreshRSS/issues/625
2014-09-24 13:38:07 +02:00
Marien Fressinaud
d284958d52 Improve redirection when deleting an idle feed 2014-09-19 19:44:40 +02:00
Alexandre Alapetite
439a0e2991 SQL: improved performance for adding new articles 2014-07-07 18:25:48 +02:00
Alexandre Alapetite
bc8eb560af Add TTL to control feed freshness
https://github.com/marienfressinaud/FreshRSS/issues/250
2014-07-06 00:09:31 +02:00
Alexandre Alapetite
b34f59e85a Preparation #3 for SQLite
https://github.com/marienfressinaud/FreshRSS/issues/100
2014-07-03 22:48:29 +02:00
Alexandre Alapetite
d6f4141086 Preparation for SQLite
https://github.com/marienfressinaud/FreshRSS/issues/100
2014-07-03 21:26:30 +02:00
Alexandre Alapetite
63c9c47a76 SimplePie HTTP 301 Moved Permanently
Add support for HTTP 301 Moved Permanently in SimplePie
FreshRSS will automatically update the address of a feed, only in this
case.
2014-07-01 23:30:01 +02:00
Marien Fressinaud
5f974c2567 Merge branch '163-export' into dev
Conflicts:
	app/layout/aside_feed.phtml
2014-03-30 19:17:27 +02:00
Marien Fressinaud
19517baf13 Add a bookmark to easily subscribe to websites
- FeedController->addAction (GET) shows a confirmation page
- If already subscribe, redirect to Configure->feedAction
- Add a bookmark in aside_feed

See #425 #426 and #464
2014-03-30 17:52:42 +02:00
Marien Fressinaud
779afe9c4e Import of articles is implemented!
- Remove massiveImportAction and addCategories from FeedController
- Fix typo for some methods (camelCase)
- addCategoryObject and addFeedObject return id if corresponding object already
  exists in DB
- introduce addEntryObject. Return -1 if Entry already exist (in order to keep
  quite good performances)
- Complete importArticles method

Need some more tests + better performance
2014-03-30 14:28:13 +02:00
Marien Fressinaud
d464833922 Improve import / export functionnality
It is not finished yet and does not even work at all!!
- ZIP archive can be uploaded
- Entries are imported from starred.json and feed*.json but not added in DB for
  the moment.
- Fix export (add author, id -> guid, content -> content.content and add
  alternate)

See https://github.com/marienfressinaud/FreshRSS/issues/163
2014-03-28 22:13:42 +01:00
Alexandre Alapetite
608b3a8656 Link to logs in case of error when adding new feed
https://github.com/marienfressinaud/FreshRSS/issues/453
2014-03-10 20:16:41 +01:00
Alexis Degrugillier
3083af6288 Enhance feed adding popup
I added a new option in the category select. It allows the user to add dynamically
a new category and add the feed to the newly created category.

See #356
2014-03-09 21:45:25 -04:00
Marien Fressinaud
a34941f418 Improve code redirection for indexController
- add comments
- forward request is done in the controller (no Minz_Request::forward() in the
view, please)
- "soft" forward to the login form (no need of 302)
- show a 403 page (no authenticated) for rss output when token is wrong
2014-02-15 11:43:07 +01:00
Marien Fressinaud
4dd673157b Add possibility to anonymous to refresh feeds
Obviously, it's optional! (and deactivate by default)
Need some more tests?
See #351
2014-02-13 21:45:25 +01:00
Marien Fressinaud
178af19fb0 Add possibility to open notification in JavaScript + new message
Notifications can be opened directly in JavaScript
Class .notification is now id #notification
New message when there is no feed to refresh
See 06abbd02c2 (comments)
2014-02-13 21:01:12 +01:00
Alexandre Alapetite
11c4c733d6 Bug mise à jour favicons dans le cas de flux invalides 2014-02-11 23:04:12 +01:00
Alexandre Alapetite
0cabd1f50d Mutex par flux pour les actualisations
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/351
Nouvelle constante TMP_PATH comme répertoire pour stocker des fichiers
temporaires (si possible en mémoire et non sur disque, tel tmpfs pour
/tmp sur certaines distributions Linux)
Requiert PHP 5.2.1+ (contre 5.2.0 auparavant) pour le
`sys_get_temp_dir()`
2014-02-11 21:48:10 +01:00
Alexandre Alapetite
d48f612c43 Bug variable $feed utilisée en dehors de la boucle foreach
https://github.com/marienfressinaud/FreshRSS/issues/415
https://github.com/marienfressinaud/FreshRSS/issues/420
2014-02-11 21:26:09 +01:00
Alexandre Alapetite
a6b7243b16 un ->color oublié #2
Autre fichier oublié dans le patch précédent :-/
https://github.com/marienfressinaud/FreshRSS/issues/295
2014-02-11 15:58:13 +01:00