aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front/controller/visitor
Commit message (Collapse)AuthorAgeFilesLines
* Inject current template name in templatesArthurHoaro2021-01-191-0/+4
| | | | | | Use either legacy key _PAGE_ or new 'template' one. Related to https://github.com/kalvn/Shaarli-Material/issues/118
* Daily RSS Cache: invalidate cache base on the dateArthurHoaro2020-12-171-2/+3
| | | | | | Currently the cache is only invalidated when the datastore changes, while it should rely on selected period of time. Fixes #1659
* Merge pull request #1644 from ArthurHoaro/fix/daily-rssArthurHoaro2020-12-161-1/+1
|\ | | | | Daily RSS - Remove relative description (today, yesterday)
| * Daily RSS - Remove relative description (today, yesterday)ArthurHoaro2020-11-151-1/+1
| | | | | | | | It is not useful for the RSS feed, as every new entry will be 'yesterday', and it requires an update the next day.
* | Fix: soft fail if the mutex is not workingArthurHoaro2020-11-241-1/+6
|/ | | | | | And display the error in server admin page Fixes #1650
* Apply PHP Code Beautifier on source code for linter automatic fixesArthurHoaro2020-11-099-28/+36
|
* Merge pull request #1621 from ArthurHoaro/feature/tag-separatorsArthurHoaro2020-11-083-11/+20
|\
| * Feature: support any tag separatorArthurHoaro2020-11-053-11/+20
| | | | | | | | | | | | | | | | So it allows to have multiple words tags. Breaking change: commas ',' are no longer a default separator. Fixes #594
* | Display error details even with dev.debug set to falseArthurHoaro2020-11-051-3/+8
|/ | | | | | | It makes more sense to display the error even if it's unexpected. Only for logged in users. Fixes #1606
* Feature: add weekly and monthly view/RSS feed for daily pageArthurHoaro2020-10-271-46/+59
| | | | | | | | | - Heavy refactoring of DailyController - Add a banner like in tag cloud to display monthly and weekly links - Translations: t() now supports variables with optional first letter uppercase Fixes #160
* Move utils classes to Shaarli\Helper namespace and folderArthurHoaro2020-10-271-1/+1
|
* Feature: Share private bookmarks using a URL containing a private keyArthurHoaro2020-10-271-1/+3
| | | | | | | | | | - Add a share link next to « Permalink » in linklist (using share icon from fork awesome) - This link generates a private key associated to the bookmark - Accessing the bookmark while logged out with the proper key will display it Fixes #475
* Merge pull request #1604 from ArthurHoaro/feature/server-admin-pageArthurHoaro2020-10-272-11/+29
|\ | | | | Feature: add a Server administration page
| * Feature: add a Server administration pageArthurHoaro2020-10-212-11/+29
| | | | | | | | | | | | | | | | | | | | | | | | It contains mostly read only information about the current Shaarli instance, PHP version, extensions, file and folder permissions, etc. Also action buttons to clear the cache or sync thumbnails. Part of the content of this page is also displayed on the install page, to check server requirement before installing Shaarli config file. Fixes #40 Fixes #185
* | Merge pull request #1601 from ArthurHoaro/feature/psr3ArthurHoaro2020-10-241-1/+0
|\ \
| * | Use PSR-3 logger for login attemptsArthurHoaro2020-10-201-1/+0
| |/ | | | | | | Fixes #1122
* / Dislay an error if an exception occurs in the error handlerArthurHoaro2020-10-201-4/+1
|/ | | | Related to #1598
* Asynchronous retrieval of bookmark's thumbnailsArthurHoaro2020-10-201-6/+4
| | | | | | | | | This feature is based general.enable_async_metadata setting and works with existing metadata.js file. The script is compatible with any template: - the thumbnail div bloc must have attribute - the bookmark bloc must have attribute with the bookmark ID as value Fixes #1564
* Inject ROOT_PATH in plugin instead of regenerating it everywhereArthurHoaro2020-10-161-0/+1
|
* Security: fix multiple XSS vulnerabilities + fix search tags with special charsArthurHoaro2020-10-062-5/+14
| | | | | | XSS vulnerabilities fixed in editlink, linklist, tag.cloud and tag.list. Also fixed tag search with special characters: urlencode function needs to be applied on raw data, before espaping, otherwise the rendered URL is wrong.
* Fix invalid redirection using the path of an external domainArthurHoaro2020-09-221-0/+7
| | | | Fixes #1554
* Merge pull request #1539 from ArthurHoaro/feature/manual-root-urlArthurHoaro2020-09-221-1/+1
|\
| * Fix subfolder configuration in unit testsArthurHoaro2020-09-121-1/+1
| |
* | Properly handle 404 errorsArthurHoaro2020-09-121-0/+29
|/ | | | | | Use 404 template instead of default Slim error page if the route is not found. Fixes #827
* Merge pull request #1538 from ArthurHoaro/feature/plugins-bookmark-serviceArthurHoaro2020-09-061-12/+14
|\ | | | | Inject BookmarkServiceInterface in plugins data
| * Inject BookmarkServiceInterface in plugins dataArthurHoaro2020-09-031-12/+14
| | | | | | | | Related discussion: ilesinge/shaarli-related#7
* | Improve backward compatibility for LegacyRouterArthurHoaro2020-09-031-2/+2
|/ | | | | | | LegacyRouter is no longer used for routing, only in existing plugins to match the _PAGE_ parameter. So we change a few of its values there, to match the new ones defined in TemplatePage. @see discussion in shaarli/Shaarli#1537
* Better handling of plugin incompatibilityArthurHoaro2020-08-271-1/+2
| | | | | If a PHP is raised while executing plugin hook, Shaarli will display an error instead of rendering the error page (or just ending in fatal error for default hooks). Also added phpErrorHandler which is handled differently that regular errorHandler by Slim.:
* Move error handling to dedicated controller instead of middlewareArthurHoaro2020-08-211-0/+45
|
* Move all admin controller into a dedicated groupArthurHoaro2020-08-131-0/+13
| | | | Also handle authentication check in a new middleware for the admin group.
* Remove anonymous permission and initialize bookmarks on loginArthurHoaro2020-08-011-5/+0
|
* Better support for notes permalinkArthurHoaro2020-07-282-1/+6
|
* Fix redirection after post install loginArthurHoaro2020-07-271-1/+1
|
* New basePath: fix officiel plugin paths and vintage templateArthurHoaro2020-07-266-110/+29
|
* Fix: visitor are allowed to chose nb of links per pageArthurHoaro2020-07-241-0/+33
|
* Fix default link and redirection in install controllerArthurHoaro2020-07-241-2/+2
|
* Multiple small fixesArthurHoaro2020-07-232-10/+5
|
* Process login through Slim controllerArthurHoaro2020-07-231-10/+117
|
* Process Shaarli install through Slim controllerArthurHoaro2020-07-231-0/+173
|
* Process main page (linklist) through Slim controllerArthurHoaro2020-07-235-5/+257
| | | | | Including a bunch of improvements on the container, and helper used across new controllers.
* Use multi-level routes for existing controllers instead of 1 level everywhereArthurHoaro2020-07-233-4/+19
| | | | Also prefix most admin routes with /admin/
* Explicitly define base and asset path in templatesArthurHoaro2020-07-231-1/+14
| | | | | | | With the new routes, all pages are not all at the same folder level anymore (e.g. /shaare and /shaare/123), so we can't just use './' everywhere. The most consistent way to handle this is to prefix all path with the proper variable, and handle the actual path in controllers.
* Handle shaare creation/edition/deletion through Slim controllersArthurHoaro2020-07-233-8/+10
|
* Process password change controller through SlimArthurHoaro2020-07-231-0/+8
|
* Initialize admin Slim controllersArthurHoaro2020-07-238-0/+807
- Reorganize visitor controllers - Fix redirection with Slim's requests base path - Fix daily links