Commit Graph

56 Commits

Author SHA1 Message Date
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
Alexandre Alapetite
7fa620cce5 SimplePie Fuite de mémoire PHP 5.2
https://github.com/marienfressinaud/FreshRSS/issues/415
http://simplepie.org/wiki/faq/i_m_getting_memory_leaks
(Pas testé)
2014-02-08 15:57:19 +01:00
Alexandre Alapetite
575d0002cc Rafraîchissement plus rapide en évitant une requête
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/351
2014-02-04 19:07:33 +01:00
Alexandre Alapetite
cf8ee6bd48 Rafraîchissement des flux en cache super rapide
Contribue à
https://github.com/marienfressinaud/FreshRSS/issues/351#issuecomment-31755012
Les flux non-modifiés et en cache ne coûtent maintenant presque plus
rien (304, ou délai de cache SimplePie non expiré), alors qu'avant
toutes les entrées étaient rechargées
2014-02-01 14:04:37 +01:00
Alexandre Alapetite
fb908d4557 Corrige rafraîchissement automatique après mise-à-jour avec Persona ou formulaire
Corrige
https://github.com/marienfressinaud/FreshRSS/issues/327#issuecomment-31958851
2014-01-18 00:34:46 +01:00
Alexandre Alapetite
7261a551e9 Essaye d'éviter les problèmes d'auto-remplissage des champs
Corrige
https://github.com/marienfressinaud/FreshRSS/issues/327#issuecomment-32635516
2014-01-17 22:47:21 +01:00
Alexandre Alapetite
92efd68a3a Début de mode multi-utilisateur avec http_auth
+ Légère optimisation de Minz_View.
+ Encore plus de tests de bibliothèques dans install.php
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/126 et
https://github.com/marienfressinaud/FreshRSS/issues/303
2013-12-30 01:03:32 +01:00
Alexandre Alapetite
96bdbafcea Refactorisation FreshRSS_Configuration
Implémente https://github.com/marienfressinaud/FreshRSS/issues/260
(évite les comparaisons de chaînes au profit des vrais booléens et
entiers)
Grosse simplification et réduction du code relatif à la configuration.
Supprime ConfigurationDAO.
Permet de simplifier considérablement configureController.
Évite de multiples copies des mêmes données en mémoire.
Évite de garder plusieurs versions de la configuration en mémoire
(auparavant : dans un tableau au niveau de ModelArray + au niveau de
FreshRSS_Configuration + en Session + des copies temporaires comme
ConfigurationDAO).
Ne stocke plus 'conf' en Session (n'était presque pas utilisé).
Évite de recharger plusieurs fois Translate inutilement.
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/303
2013-12-28 23:09:39 +01:00
Alexandre Alapetite
a1249e56a7 Petit changement utilisation de la date déclarée des articles 2013-12-27 16:24:40 +01:00
Alexandre Alapetite
badc60910a Petites corrections et sortie 0.7-beta3 2013-12-27 15:16:53 +01:00
Alexandre Alapetite
43fd0a5439 Mise à jour de f.url en base de données lorsque SimplePie découvre que l'adresse a changé
Et correction problème favicon lorsque l'adresse du flux a changé du
point de vue de SimplePie.
Plus petites optimisations.
2013-12-26 22:20:24 +01:00
Alexandre Alapetite
574d37bddc Favicons compatibles multi-utilisateurs
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/126
2013-12-26 19:58:17 +01:00