aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front/controller/admin
Commit message (Collapse)AuthorAgeFilesLines
* Fix: soft fail if the mutex is not workingArthurHoaro2020-11-241-1/+6
| | | | | | And display the error in server admin page Fixes #1650
* Merge pull request #1635 from ArthurHoaro/feature/phpcsArthurHoaro2020-11-1013-25/+34
|\
| * Manually fix remaining PHPCS errorsArthurHoaro2020-11-092-3/+10
| |
| * Apply PHP Code Beautifier on source code for linter automatic fixesArthurHoaro2020-11-0913-25/+27
| |
* | Server admin: do not retrieve latest version without update_checkArthurHoaro2020-11-091-4/+11
|/ | | | | | | | | If the setting 'updates.check_updates' is disabled, do not retrieve the latest version on server administration page. Additionally, updated default values for - updates.check_updates from false to true - updates.check_updates_branch from stable to latest
* Feature: support any tag separatorArthurHoaro2020-11-053-4/+45
| | | | | | | | So it allows to have multiple words tags. Breaking change: commas ',' are no longer a default separator. Fixes #594
* Fix: redirect to referrer after bookmark deletionArthurHoaro2020-11-051-2/+2
| | | | | | Except if the referer points to a permalink (which has been deleted). Fixes #1622
* Remove unnecessary escape of refererArthurHoaro2020-10-281-1/+1
| | | | Fixes #1611
* Bulk creation: ignore blank linesArthurHoaro2020-10-271-0/+3
|
* Bulk creation: improve performances using memoizationArthurHoaro2020-10-271-9/+43
| | | | Reduced additional processing time per links from ~40ms to ~5ms
* Bulk creation: fix private status based on the first formArthurHoaro2020-10-271-1/+5
|
* Feature: bulk creation of bookmarksArthurHoaro2020-10-274-386/+458
| | | | | | | | | | | | | | | | | | | | | | | | | This changes creates a new form in addlink page allowing to create multiple bookmarks at once more easily. It focuses on re-using as much existing code and template component as possible. These changes includes: - a new form in addlink (hidden behind a button by default), containing a text area for URL, and tags/private status to apply to created links - this form displays a new template called editlink.batch, itself including editlink template multiple times - User interation in this new templates are handle by a new JS script (shaare-batch.js) making AJAX requests, and therefore does not need page reloading - ManageShaareController has been split into 3 distinct controllers: + ShaareAdd: displays addlink template + ShaareManage: various operation applied on existing shaares (change visibility, pin, deletion, etc.) + ShaarePublish: handles creation/edit forms and saving Shaare's form - Updated translations Fixes #137
* Fix rebase issueArthurHoaro2020-10-271-2/+2
|
* Feature: Share private bookmarks using a URL containing a private keyArthurHoaro2020-10-271-0/+26
| | | | | | | | | | - 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
* Feature: add a Server administration pageArthurHoaro2020-10-211-0/+87
| | | | | | | | | | | | 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
* Asynchronous retrieval of bookmark's thumbnailsArthurHoaro2020-10-201-1/+2
| | | | | | | | | 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
* Add a setting to retrieve bookmark metadata asynchrounouslyArthurHoaro2020-10-152-24/+41
| | | | | | | | | | | | | | - There is a new standalone script (metadata.js) which requests a new controller to get bookmark metadata and fill the form async - This feature is enabled with the new setting: general.enable_async_metadata (enabled by default) - general.retrieve_description is now enabled by default - A small rotating loader animation has a been added to bookmark inputs when metadata is being retrieved (default template) - Custom JS htmlentities has been removed and mathiasbynens/he library is used instead Fixes #1563
* Add strict types for bookmarks managementArthurHoaro2020-10-131-1/+1
| | | | | | | | Parameters typing and using strict types overall increase the codebase quality by enforcing the a given parameter will have the expected type. It also removes the need to unnecessary unit tests checking methods behavior with invalid input.
* Add Markdown Extra formatterArthurHoaro2020-10-131-1/+1
| | | | | | | | Library: [Parsedown Extra](https://github.com/erusev/parsedown-extra) Also sort dependencies alphabetically. Fixes #1169
* Security: fix multiple XSS vulnerabilities + fix search tags with special charsArthurHoaro2020-10-062-7/+7
| | | | | | 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 a bug preventing to edit bookmark with ID #0ArthurHoaro2020-09-301-1/+1
|
* Fix warning if the encoding retrieved from external headers is invalidArthurHoaro2020-09-301-1/+1
| | | | Also fixed the regex to support this failing header: charset="utf-8"\r\n"
* Fix redirection to referer after editing a linkArthurHoaro2020-09-221-1/+1
| | | | Fixes #1545
* Plugins: do not save metadata along plugin parametersArthurHoaro2020-09-121-0/+1
| | | | | | Also prevent the token to be saved. Fixes #1550
* Inject BookmarkServiceInterface in plugins dataArthurHoaro2020-09-031-2/+0
| | | | Related discussion: ilesinge/shaarli-related#7
* Move all admin controller into a dedicated groupArthurHoaro2020-08-132-21/+1
| | | | Also handle authentication check in a new middleware for the admin group.
* New basePath: fix officiel plugin paths and vintage templateArthurHoaro2020-07-263-52/+7
|
* Fix: visitor are allowed to chose nb of links per pageArthurHoaro2020-07-241-19/+1
|
* Update French translationArthurHoaro2020-07-231-1/+1
|
* Multiple small fixesArthurHoaro2020-07-231-6/+11
|
* Process Shaarli install through Slim controllerArthurHoaro2020-07-231-3/+7
|
* Process main page (linklist) through Slim controllerArthurHoaro2020-07-239-29/+23
| | | | | Including a bunch of improvements on the container, and helper used across new controllers.
* Process thumbnail synchronize page through Slim controllersArthurHoaro2020-07-232-1/+80
|
* Process token retrieve through Slim controllerArthurHoaro2020-07-231-0/+26
|
* Process plugins administration page through Slim controllersArthurHoaro2020-07-231-0/+98
|
* Process bookmarks import through Slim controllerArthurHoaro2020-07-232-15/+83
|
* Process bookmark exports through Slim controllersArthurHoaro2020-07-231-0/+92
|
* Pin bookmarks through Slim controllerArthurHoaro2020-07-231-0/+36
|
* Process change visibility action through Slim controllerArthurHoaro2020-07-231-1/+69
|
* Improve ManageTagController coverage and error handlingArthurHoaro2020-07-231-12/+32
|
* Use multi-level routes for existing controllers instead of 1 level everywhereArthurHoaro2020-07-235-19/+22
| | | | Also prefix most admin routes with /admin/
* Handle shaare creation/edition/deletion through Slim controllersArthurHoaro2020-07-232-1/+259
|
* Process manage tags page through Slim controllerArthurHoaro2020-07-232-1/+88
|
* Process configure page through Slim controllerArthurHoaro2020-07-231-0/+120
|
* Test ShaarliAdminControllerArthurHoaro2020-07-231-1/+3
|
* Process password change controller through SlimArthurHoaro2020-07-232-0/+159
|
* Process tools page through Slim controllerArthurHoaro2020-07-231-0/+49
|
* Initialize admin Slim controllersArthurHoaro2020-07-233-0/+129
- Reorganize visitor controllers - Fix redirection with Slim's requests base path - Fix daily links