Commit Graph

197 Commits

Author SHA1 Message Date
Alexandre Alapetite
d477373ef2 SQLite: Bug creation new users
Not tested much yet. Some MySQL parts changed a bit too to double-check.
https://github.com/marienfressinaud/FreshRSS/issues/574
2014-08-09 19:58:39 +02:00
Alexandre Alapetite
274c8096e3 Experimental: Removed lazyload.js and use postpone attribute instead
https://github.com/marienfressinaud/FreshRSS/issues/316
The performance of lazyload.js was not good enough, and not really
needed anyway.
This change mostly affects mainly situations when the content of
articles is shown by default, not so much when they are collapsed
Using HTML5 lazyload and postpone attributes by default on all img,
audio, iframe, video.
http://www.w3.org/TR/resource-priorities/#attr-postpone
Postpone attribute is removed by JavaScript if the user does not want
the lazyload behaviour.
In the case when users do want the lazyload behaviour, in normal view
with articles hidden, we furthermore use the data-original approach to
be sure to support current browsers.
+Corrected some bugs with enclosures, and some images not appearing
before the first scroll.
+Now faster regex processing img and iframe at once (was not practical
with lazyload.js)
2014-08-02 19:57:15 +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
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
805c91da98 Add support for SQLite
https://github.com/marienfressinaud/FreshRSS/issues/100
Warning: MySQL has been changed too, so bugs may have been introduced
2014-07-05 01:52:41 +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
3275018238 Cleaning some hash functions 2014-07-03 00:43:02 +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
09602acc5f Add two wrappers (_t() and _i())
- _t() is a wrapper for Minz_Translate::t()
- Improve coding style of Translate.php
- _i() is a wrapper for FreshRSS::icon()
- queries.phtml shows how they work
- It is a lot easier to read files with these functions :)
2014-06-15 17:49:23 +02:00
Marien Fressinaud
a7e8332809 Improve system of queries
- Coding style
- More checks server side
- Default query name is "Query n°X"
- List of queries is moved into nav_menu, in a dropdown
- Better system to remove fields in JS (to a.remove elements, give an
  attibute data-remove="id_to_remove")
- Fix a bug in lib/Mine/Request.php (htmlspecialchars_utf8 can be applied on
  arrays now)
- Few theme improvements
- Add an element .no-mobile to apply to elements which should not appear on
  mobiles

See https://github.com/marienfressinaud/FreshRSS/pull/498
2014-06-14 09:04:31 +02:00
Alexandre Alapetite
1857d2121c lib_date comment
https://github.com/marienfressinaud/FreshRSS/issues/511
2014-06-01 14:56:50 +02:00
Alexandre Alapetite
a1adac617a lib_date comment
https://github.com/marienfressinaud/FreshRSS/issues/511
2014-06-01 14:55:03 +02:00
Alexandre Alapetite
ecac55d3d3 New search system, including date: and pubdate: and combination
Now also accepts combination of #tag and intitle: and inurl: and author:
and the new date: and pubdate:
https://github.com/marienfressinaud/FreshRSS/issues/511
Each search prefix stop at the first space (we should add a possibility
to have quotes for multiple words)
So if you want two words in title, write "intitle:word1 intitle:word2"

Examples of dates:
date:2014
date:2014-02/2014-04 or date:201402/201404
date:P1W for the last week
2014-06-01 14:40:38 +02:00
Alexandre Alapetite
17a603b333 SimplePie patch accepted
Merged into master branch of SimplePie
https://github.com/simplepie/simplepie/pull/352
2014-05-17 12:08:47 +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
27b678203b Minz_Url separator is "?" instead of "/?"
See https://github.com/marienfressinaud/FreshRSS/pull/426
2014-03-30 15:42:32 +02:00
Marien Fressinaud
9ea3819402 Better OPML import / export
- use a new OPML library (https://github.com/marienfressinaud/lib_opml)
- import has been completely rewritten (far better!)
- introduce addFeedObject and addCategoryObject (in DAO for the moment).
  Permit to add easily feeds and categories (check if they already exist in DB)
- introduce html_chars_utf8 (wrap htmlspecialchars for UTF-8)
2014-03-29 20:18:57 +01:00
Marien Fressinaud
9d87f2f0aa Export is fully implemented
- Export list of feeds (OPML)
- Export list of favourites (JSON)
- Export list of articles per feed (JSON)
2014-03-27 20:36:51 +01:00
Alexandre Alapetite
c8aa451c76 Minz: remove url_rewriting
As suggested
https://github.com/marienfressinaud/FreshRSS/issues/163#issuecomment-38478669

At the same time, removes a bunch of (almost) dead code such as
Minz_Router (the few remaining lines being moved to Minz_FrontController
to avoid a class)

Contributes to https://github.com/marienfressinaud/FreshRSS/issues/303
2014-03-24 20:55:18 +01:00
Alexandre Alapetite
5081ffaf39 Minz: remove one layer of ob_ (experimental)
https://github.com/marienfressinaud/FreshRSS/issues/303#issuecomment-38351311
https://github.com/marienfressinaud/FreshRSS/issues/163
* Remove Minz_Response (not needed anymore)
* Move Minz_Request::reseted to Minz_Dispatcher::reset()
2014-03-22 17:56:07 +01:00
Alexandre Alapetite
72ae58d455 Minz: remove Minz_Cache
https://github.com/marienfressinaud/FreshRSS/issues/163#issuecomment-37990319
https://github.com/marienfressinaud/FreshRSS/issues/303
2014-03-22 13:20:49 +01:00
Marien Fressinaud
996c387f50 Add some helpers to Minz_Log class
Add following methods:
- Minz_Log::debug($msg)
- Minz_Log::notice($msg)
- Minz_Log::warning($msg)
- Minz_Log::error($msg)
2014-03-16 19:43:17 +01:00
Alexandre Alapetite
b07f9157b1 New unsafe autologin mode
https://github.com/marienfressinaud/FreshRSS/issues/440
2014-03-02 13:35:09 +01:00
Alexandre Alapetite
11b807e4c3 Bug usernames with uppercase
https://github.com/marienfressinaud/FreshRSS/issues/439
2014-03-02 00:08:45 +01:00
Alexandre Alapetite
f44683b567 API streamContents for categories and feeds
https://github.com/marienfressinaud/FreshRSS/issues/13
2014-02-28 20:22:50 +01:00
Alexandre Alapetite
6dffb8706f Alpha version of Google Reader compatible API
https://github.com/marienfressinaud/FreshRSS/issues/13
Hardcoded passwords, no possibility to add/delete feeds or edit
categories yet.
2014-02-27 22:48:11 +01:00
Alexandre Alapetite
db120b4ed4 Test si crypt() fonctionne pour PHP 5.3.3
https://github.com/marienfressinaud/FreshRSS/issues/432
2014-02-23 12:16:23 +01:00
Alexandre Alapetite
d51048196b Revert "SimplePie : tolérance caractères UTF-8 invalides"
This reverts commit 7e66db7782.
2014-02-17 00:15:42 +01:00
Alexandre Alapetite
0d387081df SimplePie: Update to 1.4-dev
Manual merge of SimplePie master (1.4-dev)
Preparation to ease submitting patches upstream.
2014-02-17 00:12:56 +01:00
Alexandre Alapetite
7e66db7782 SimplePie : tolérance caractères UTF-8 invalides
Meilleure implémentation de
f5251384c4
pour corriger https://github.com/marienfressinaud/FreshRSS/issues/419
Revert partiel de
316778ef47 (diff-d8be58dcfea709da6131af81563c5c9fR1350)
2014-02-16 21:34:30 +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
9f6fa5f7c6 Better function isPost
Use $_SERVER['REQUEST_METHOD'] instead of empty($_POST)
Possibly related to #413
2014-02-11 23:42:24 +01:00
Alexandre Alapetite
18403d9720 SQL : Supprime c.color
Implémente décision
https://github.com/marienfressinaud/FreshRSS/issues/295
Install.php pourrait peut-être être mis à jour pour supprimer
automatiquement la colonne, mais ce n'est pas fait dans ce patch.
2014-02-11 15:30:52 +01:00
Alkarex
f5251384c4 Tolère certaines séquences UTF-8 invalides
Corrige https://github.com/marienfressinaud/FreshRSS/issues/419
À re-tester sur d'autres flux
2014-02-11 15:05:11 +01:00
Alexandre Alapetite
9aab83af11 SimplePie : Meilleur cache des flux avec signature MD5
Contribue à
https://github.com/marienfressinaud/FreshRSS/issues/351#issuecomment-31755012
Pour les flux qui ne supportent pas les requêtes conditionnelles.
Filtre les tags et commentaires gênants avant la signature (style
<lastBuildDate> qui change tout le temps sans que le contenu change,
<slash:comments>, ainsi que les commentaires XML qui détruisent le cache
comme <!-- généré en X secondes -->)

Il reste quelques flux à débogger dont le cache n'est pas encore
optimal. C'est pour cela qu'il reste quelques syslog(LOG_DEBUG, ...).

Au passage, évite que SimplePie fasse une double requête pour vérifier
le cache si le serveur est un peu lent.

Un jour, il faudra nettoyer les changements faits à SimplePie et leur
remonter les patchs les plus intéressants.
2014-02-02 22:09:16 +01:00
Alexandre Alapetite
02d1dac0bb Rafraîchissement des flux en cache compatible multi-utilisateurs
Compatibilité multi-utilisateurs pour la mise à jour rapide des flux
avec cache
Correction de
cf8ee6bd48 (commitcomment-5247478)
Contribue à
https://github.com/marienfressinaud/FreshRSS/issues/351#issuecomment-31755012
2014-02-01 20:13:42 +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
5e9c60752c Actualize : Tolère PHP lancé en CGI plutôt que CLI
Corrige https://github.com/marienfressinaud/FreshRSS/issues/405
+ Message d'erreur en cas de problème de droits dans ./data/ (par
exemple si le cron utilise un mauvais utilisateur)
2014-02-01 12:23:12 +01:00
Alexandre Alapetite
fdefc8c731 Formatage des nombres
https://github.com/marienfressinaud/FreshRSS/pull/398
2014-01-27 22:35:27 +01:00
Alexandre Alapetite
3f15f847c0 Filtre <link />
Corrige https://github.com/marienfressinaud/FreshRSS/issues/400
2014-01-27 17:58:02 +01:00
Alexandre Alapetite
1031c19779 Formatage nombres
Implémente https://github.com/marienfressinaud/FreshRSS/issues/395
2014-01-26 17:11:24 +01:00
Marien Fressinaud
a46ee26e35 Fallback config pour 0.7-beta 2014-01-25 23:03:53 +01:00
Marien Fressinaud
84c30445d4 Corrige bug initialisation environnement
L'environnement était toujours à SILENT et plus rien n'était loggué.
2014-01-25 22:50:38 +01:00
Marien Fressinaud
675d0c3862 Corrige bug pages d'erreur
Il ne s'agissait que d'un problème de casse :)
Voir #391
2014-01-25 22:02:58 +01:00
Alexandre Alapetite
bc6aba67bb Bug récupération flux tronqués
Corrige https://github.com/marienfressinaud/FreshRSS/issues/381
2014-01-22 21:34:59 +01:00
Alexandre Alapetite
6f117abfb6 Bugs chargement des articles complets
Corrige https://github.com/marienfressinaud/FreshRSS/issues/365
Ajoute le nettoyage correct du HTML par SimplePie, ainsi que le décodage
des caractères HTML dans l'URL, et enfin un message dans le syslog pour
chaque article téléchargé
2014-01-18 22:54:53 +01:00
Alexandre Alapetite
fdd179d344 Corrections vue globale
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/353
2014-01-18 19:29:44 +01:00
Alexandre Alapetite
41033768c3 Mode anonyme pour connexion avec formulaire
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/361
2014-01-18 01:00:17 +01:00
Alexandre Alapetite
d58886a937 Implémentation de l'indentification par mot de passe
Implémentation de
https://github.com/marienfressinaud/FreshRSS/issues/104
2014-01-12 03:10:31 +01:00
Alexandre Alapetite
c7a28e836e README blibliothèques incluses + ajout librairies pour le mot de passe
Préparation https://github.com/marienfressinaud/FreshRSS/issues/104
2014-01-11 15:38:41 +01:00