Commit Graph

229 Commits

Author SHA1 Message Date
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
2014-10-21 16:55:19 +02:00
Marien Fressinaud
8a7bab3a55 Refactoring of indexController
Global view has been moved to a different action (all is not working)

See https://github.com/marienfressinaud/FreshRSS/issues/634
and https://github.com/marienfressinaud/FreshRSS/issues/655
2014-10-20 19:35:22 +02:00
Marien Fressinaud
61a2f9387f Fix i18n (french and english) 2014-10-20 12:42:46 +02:00
Marien Fressinaud
7080a32650 Add checking installation feature 2014-10-20 11:54:31 +02:00
Marien Fressinaud
74be86d7e8 Reorganise menus (aside and header) 2014-10-17 16:24:21 +02:00
Marien Fressinaud
5797344aff Fix a bug to get size of user (SQLite) 2014-10-17 16:24:21 +02:00
Alexandre Alapetite
1283e73d08 SimplePie: bug date CEST
https://github.com/marienfressinaud/FreshRSS/issues/659
https://github.com/simplepie/simplepie/pull/380
2014-10-14 20:00:06 +02:00
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
2014-10-07 10:16:38 +02:00
Marien Fressinaud
031c1d802d Fix a bug (has_transaction)
Introduced by the last commit.
2014-10-05 23:57:54 +02:00
Marien Fressinaud
e2da6e6e6b Refactor feedController
See https://github.com/marienfressinaud/FreshRSS/issues/655
2014-10-05 23:20:16 +02:00
Alexandre Alapetite
6c1fe11395 SimplePie timeout preference
https://github.com/marienfressinaud/FreshRSS/issues/656
TODO: Make a user setting
2014-10-05 20:27: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
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
d284958d52 Improve redirection when deleting an idle feed 2014-09-19 19:44:40 +02:00
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
2014-09-17 14:21:56 +02:00
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
2014-09-16 19:01:24 +02:00
Marien Fressinaud
ef1b35fc43 Merge branch 'dev' into 411-update-system
Conflicts:
	constants.php
2014-09-08 19:26:35 +02:00
Alexandre Alapetite
c3fd8877c0 Bug warning in case of invalid CDATA 2014-09-06 16:04:49 +02:00
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
2014-08-30 18:31:50 +02:00
Alexandre Alapetite
ee1b8f6f72 Long term cookie to keep session open
Token system
https://github.com/marienfressinaud/FreshRSS/issues/465
2014-08-13 00:09:48 +02:00
Marien Fressinaud
f2b1826b47 Fix missing Minz_ prefix in Minz_Helper
Nice bug :) It means another hidden bug is now corrected!
2014-08-12 22:27:07 +02:00
Marien Fressinaud
93b2a5f240 Coding style in Minz_Helper 2014-08-12 21:59:07 +02:00
Marien Fressinaud
7900c5e550 Move htmlspecialchars_utf8 from Request to Helper
And remove html_chars_utf8 to use htmlspecialchars_utf8 instead in
importExportController
2014-08-12 21:56:34 +02:00
Marien Fressinaud
ede94098be Fix missing REQUEST_METHOD
Useful when executing actualize_script.php
2014-08-12 21:15:12 +02:00
Marien Fressinaud
22e2bf9239 Fix coding style of Minz_Request 2014-08-12 21:12:02 +02:00
Marien Fressinaud
08a9009c19 Fix a Minz_Session TODO
Not use additional variable to manipulate session variables
Fix coding style
2014-08-12 21:10:10 +02:00
Marien Fressinaud
ed7d8aa44f Use REQUEST_URI instead of SCRIPT_NAME for cookies
See eceb7756cf (commitcomment-7345438)
2014-08-12 21:04:39 +02:00
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
2014-08-12 21:01:07 +02:00
Marien Fressinaud
bc71a577fe Revert "Set session.gc_maxlifetime"
This reverts commit df47217839.

See https://github.com/marienfressinaud/FreshRSS/issues/465
2014-08-11 18:39:22 +02:00
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
2014-08-10 23:41:36 +02:00
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
2014-08-10 20:29:43 +02:00
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
2014-08-09 23:29:13 +02:00
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