Marien Fressinaud
5932c3427b
Add entry_before_display hook
...
See https://github.com/FreshRSS/FreshRSS/issues/252
10 years ago
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
10 years ago
Marien Fressinaud
4c888590e6
Improve system/user types for extensions
...
- system extensions can only be managed by an administrator
- system extensions are loaded for all users (even if not logged)
- user extensions are loaded for logged users only
- system extensions loading is saved in global config.php file
See https://github.com/FreshRSS/FreshRSS/issues/252
10 years ago
Marien Fressinaud
2e4682ebd4
Add enable / disable extension features
...
See https://github.com/FreshRSS/FreshRSS/issues/252
10 years ago
Marien Fressinaud
a08c382e06
Separate views registration from controllers one.
...
- Add an Extension->registerViews() method.
- Views are first searched in extension paths, then in APP_PATH.
- It gives a way to override easily existing controllers / views.
- Change include into an include_once in Dispatcher for new controllers.
See https://github.com/FreshRSS/FreshRSS/issues/252
10 years ago
Marien Fressinaud
c6a682deb9
Extensions can define new views
...
- View base pathname is set to the extension directory
- An extension can now override an existing controller / view
See https://github.com/FreshRSS/FreshRSS/issues/252
10 years ago
Marien Fressinaud
f8aa66152f
Give possibility to register a new Controller.
...
- Add a Extension->registerController(name) method
- Controllers must be written in extension_dir/controllers/nameController.php
- Controllers must be named as FreshExtension_name_Controller
- Controllers must extend Minz_ActionController
See https://github.com/FreshRSS/FreshRSS/issues/252
10 years ago
Marien Fressinaud
9fc60317ee
First draft for listing and manipulate extensions
...
See https://github.com/FreshRSS/FreshRSS/issues/252
10 years ago
Marien Fressinaud
a2da70fd11
Fix security hole from ext.php script.
...
Now, ext.php can only serve file under a EXTENSIONS_PATH/ext_dir/static/ directory.
A 400 Bad Request error will be returned for other files.
See https://github.com/FreshRSS/FreshRSS/issues/252
And https://github.com/FreshRSS/FreshRSS/commit/f9b037742a0aeb49cab86782d1a59913c2de47b
10 years ago
Marien Fressinaud
f9b037742a
Update ext.php to serve any file from extensions
...
Add an extension->getFileUrl() method to facilitate url generation
10 years ago
Marien Fressinaud
1086ba4a2b
Enable extensions for users
10 years ago
Marien Fressinaud
86f69ca396
First draft for the new extension feature
...
- Only system extensions can be loaded for the moment by adding them in the config.php
file.
- Remove previous system (it will be added properly in the new system in the next step).
10 years ago
Marien Fressinaud
aa232d8fd5
Update the i18n system.
...
Follow recommendations from https://github.com/FreshRSS/FreshRSS/issues/334
10 years ago
Marien Fressinaud
ee5bbe4826
Fix bug size with SQLite
10 years ago
Alexandre Alapetite
9f97f7df88
Ne pas rafraîchir les flux des utilisateurs non logués depuis x jours
...
https://github.com/marienfressinaud/FreshRSS/issues/681
Warning: needs some testing
10 years ago
Alexandre Alapetite
2e5d4d97c9
More limit options in config.php
...
See e.g. https://github.com/marienfressinaud/FreshRSS/issues/681
https://github.com/marienfressinaud/FreshRSS/issues/680
https://github.com/marienfressinaud/FreshRSS/issues/656
10 years ago
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
10 years ago
Marien Fressinaud
80cffa6de5
Views are in dedicated actions + improve Context
...
- Seperate normal, global and rss outputs in dedicated actions (NOT WORKING YET!)
- Rewrite aside_flux and nav_menu to use Context object
- Improve Context object
See https://github.com/marienfressinaud/FreshRSS/issues/634
10 years ago
Marien Fressinaud
5797344aff
Fix a bug to get size of user (SQLite)
10 years ago
Marien Fressinaud
6009990935
Introduce FreshRSS_Auth::hasAccess('admin')
...
Replace Minz_Configuration::isAdmin($user). FreshRSS_Auth::hasAccess() could
be extended to others scopes later.
See https://github.com/marienfressinaud/FreshRSS/issues/655
10 years ago
Marien Fressinaud
031c1d802d
Fix a bug (has_transaction)
...
Introduced by the last commit.
10 years ago
Marien Fressinaud
e2da6e6e6b
Refactor feedController
...
See https://github.com/marienfressinaud/FreshRSS/issues/655
10 years ago
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
10 years ago
Marien Fressinaud
d284958d52
Improve redirection when deleting an idle feed
10 years ago
Marien Fressinaud
fc7d2a0bf2
Move http referer test into lib_rss
...
Rename method (coding style)
Change in app/FreshRSS.php
Improve test of app/install.php
10 years ago
Marien Fressinaud
17d1e67e82
Fix sqlite bug ON DELETE CASCADE
...
Foreign key constraints are not enabled by default.
See https://github.com/marienfressinaud/FreshRSS/issues/579
See http://stackoverflow.com/questions/13534040/sqlite3-foreign-keys-on-pdo
10 years ago
Alexandre Alapetite
a126d99b3c
Bug referer for systems with non-standard HTTP port
...
Now tests also for the scheme and port, which must be identical to the
ones in the referer.
https://github.com/marienfressinaud/FreshRSS/issues/565#issuecomment-53916915
https://github.com/marienfressinaud/FreshRSS/issues/554
10 years ago
Alexandre Alapetite
ee1b8f6f72
Long term cookie to keep session open
...
Token system
https://github.com/marienfressinaud/FreshRSS/issues/465
10 years ago
Marien Fressinaud
f2b1826b47
Fix missing Minz_ prefix in Minz_Helper
...
Nice bug :) It means another hidden bug is now corrected!
10 years ago
Marien Fressinaud
93b2a5f240
Coding style in Minz_Helper
10 years ago
Marien Fressinaud
7900c5e550
Move htmlspecialchars_utf8 from Request to Helper
...
And remove html_chars_utf8 to use htmlspecialchars_utf8 instead in
importExportController
10 years ago
Marien Fressinaud
ede94098be
Fix missing REQUEST_METHOD
...
Useful when executing actualize_script.php
10 years ago
Marien Fressinaud
22e2bf9239
Fix coding style of Minz_Request
10 years ago
Marien Fressinaud
08a9009c19
Fix a Minz_Session TODO
...
Not use additional variable to manipulate session variables
Fix coding style
10 years ago
Marien Fressinaud
ed7d8aa44f
Use REQUEST_URI instead of SCRIPT_NAME for cookies
...
See eceb7756cf (commitcomment-7345438)
10 years ago
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
10 years ago
Marien Fressinaud
bc71a577fe
Revert "Set session.gc_maxlifetime"
...
This reverts commit df47217839
.
See https://github.com/marienfressinaud/FreshRSS/issues/465
10 years ago
Marien Fressinaud
df47217839
Set session.gc_maxlifetime
...
Take the maxvalue between 1440 (24m) and cookie lifetime when calling
Minz_Session::keepCookie()
See https://github.com/marienfressinaud/FreshRSS/issues/465
10 years ago
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
10 years ago
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
10 years ago
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
10 years ago
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().
10 years ago
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
10 years ago
Alexandre Alapetite
d6f4141086
Preparation for SQLite
...
https://github.com/marienfressinaud/FreshRSS/issues/100
10 years ago
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 :)
10 years ago
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
10 years ago
Marien Fressinaud
27b678203b
Minz_Url separator is "?" instead of "/?"
...
See https://github.com/marienfressinaud/FreshRSS/pull/426
11 years ago
Marien Fressinaud
9d87f2f0aa
Export is fully implemented
...
- Export list of feeds (OPML)
- Export list of favourites (JSON)
- Export list of articles per feed (JSON)
11 years ago
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
11 years ago
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()
11 years ago