ColonelMoutarde
34d8be086c
Better rand() ( #1977 )
...
http://php.net/manual/en/function.mt-rand.php
from php Doc
"Many random number generators of older libcs have dubious or unknown characteristics and are slow. The mt_rand() function is a drop-in replacement for the older rand(). It uses a random number generator with known characteristics using the » Mersenne Twister, which will produce random numbers four times faster than what the average libc rand() provides. "
2018-08-23 19:57:08 +02:00
Alexandre Alapetite
52d0988655
Use __DIR__ for relative include and require
...
For uniformity, and to avoid having PHP searching in include_path.
http://php.net/manual/function.include.php
https://github.com/FreshRSS/FreshRSS/pull/1715
https://github.com/FreshRSS/FreshRSS/pull/1711#issuecomment-350581350
2017-12-11 21:11:34 +01:00
Alexandre Alapetite
44c9ae51c4
Rewriten Favicon library using cURL
...
Reduce the number of requests, more robust, many more cases working,
reduced code
2017-04-23 14:06:37 +02:00
Alexandre Alapetite
e8d1a6dcc9
Cron refresh favicons
...
Related to
https://github.com/FreshRSS/FreshRSS/issues/1181
https://github.com/FreshRSS/FreshRSS/issues/1298
2016-10-12 15:47:04 +02:00
Alexandre Alapetite
c64918f839
Randomize favicon refresh
...
https://github.com/FreshRSS/FreshRSS/issues/1298
2016-10-12 09:49:38 +02:00
Alexandre Alapetite
b5ffa8cb47
Auto-refresh favicons
...
Every 15 days. https://github.com/FreshRSS/FreshRSS/issues/1181
2016-10-07 19:50:59 +02:00
Alexandre Alapetite
6248246735
Adjust caching for favicon with errors
2016-04-23 21:48:37 +02:00
Marien Fressinaud
f5043dbf71
Serve HTTP cache for default favicon + better headers
...
See da7d34d2ef (commitcomment-9439610)
2015-01-26 14:49:24 +01:00
Marien Fressinaud
da7d34d2ef
Default favicon served with HTTP code 200
...
Fix https://github.com/FreshRSS/FreshRSS/issues/760
2015-01-26 13:02:47 +01:00
Marien Fressinaud
7584364a4c
Fix behaviour when favicon url is not found
...
If url is not find, we copy default favicon into favicon dir so at the next
try, we don't search the url again.
See https://github.com/FreshRSS/FreshRSS/issues/290
See https://github.com/FreshRSS/FreshRSS/issues/727
2014-12-29 11:56:22 +01:00
Marien Fressinaud
ea79466582
Fix typo coding style
...
See https://github.com/FreshRSS/FreshRSS/issues/290
2014-12-29 11:46:01 +01:00
Marien Fressinaud
4f1fc70f87
Change favicon getter behaviour
...
- Use Favicon library
- Fix coding style
- Change default favicon
Fix https://github.com/FreshRSS/FreshRSS/issues/290
2014-12-29 11:44:25 +01:00
Alexandre Alapetite
3cff96fae3
Corrige problème favicons sous Nginx
...
https://github.com/marienfressinaud/FreshRSS/issues/364
2014-01-12 16:27:35 +01:00
Alexandre Alapetite
2c57e7254d
Favicons : test pour améliorer le cache HTTP
...
Test d'utilisation de PATH_INFO plutôt que QUERY_STRING pour améliorer
la mise en cache.
À tester sur différents serveurs
2013-12-26 20:11:18 +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
Alexandre Alapetite
58300c36ad
Cookie : sous-répertoire pour index (changements de répertoires !)
...
Implémente https://github.com/marienfressinaud/FreshRSS/issues/333
/public/ est renommé /p/
/public/index.php est déplacé dans /p/i/index.php
Le cookie de session est limité à /p/i/
2013-12-26 01:56:58 +01:00