| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: ArthurHoaro <arthur@hoa.ro>
|
|
|
|
|
|
|
| |
All existing link will keep their permalinks.
New links will have smallhash generated with date+id.
The purpose of this is to avoid collision between links due to their creation date.
|
| |
|
|
|
|
| |
HTTPS, as Firefox will deny the request.
|
|
|
|
|
|
| |
Relates to https://github.com/shaarli/Shaarli/issues/95
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
| |
|
|
|
|
|
|
|
|
| |
All plugins can optionally add an init function named `pluginname_init()` which is called when the plugin is loaded.
This function is aware of the config, and can return initialization errors, which are displayed in the header template.
Note that the previous error system hack no longer work.
|
|\
| |
| | |
Save link update dates and render it in templates and feeds
|
| |
| |
| |
| | |
It can be used as a timestamp by templates under the key 'updated_timestamp'.
|
|\ \
| | |
| | | |
Add trusted IPs in config and try to ban forwarded IP on failed login
|
| |/
| |
| |
| |
| |
| |
| |
| | |
* Add a new settings (which needs to be manually set): `security.trusted_proxies`
* On login failure, if the `REMOTE_ADDR` is in the trusted proxies, try to retrieve the forwarded IP in headers.
* If found, the client address is added in ipbans, else we do nothing.
Fixes #409
|
| |
| |
| |
| | |
Signed-off-by: ArthurHoaro <arthur@hoa.ro>
|
| |
| |
| |
| |
| |
| |
| | |
Closes https://github.com/shaarli/Shaarli/issues/645
Relates to https://github.com/shaarli/Shaarli/issues/607
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Relates to #607
Relates to #608
Relates to #493 (abandoned)
Additions:
- use Composer's autoload to load 3rd-party dependencies under vendor/
Modifications:
- [import] replace the current parser with a generic, stable parser
- move code to application/NetscapeBookmarkUtils
- improve status report after parsing
- [router] use the same endpoint for both bookmark upload and import dialog
- [template] update bookmark import options
- allow adding tags to all imported links
- allow selecting the visibility (privacy) of imported links
- [tests] ensure bookmarks are properly parsed and imported in the LinkDB
- reuse reference input from the parser's test data
See:
- https://github.com/shaarli/netscape-bookmark-parser
- https://getcomposer.org/doc/01-basic-usage.md#autoloading
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
| | |
|
| |
| |
| |
| | |
It matches the API of ngettext().
|
|/ |
|
|\
| |
| | |
Remove Delicious in project description in comments
|
| | |
|
|\ \
| | |
| | | |
Fixes #600 - Shaarli's title is not set with the new config manager
|
| |/
| |
| |
| |
| | |
- Fixed title config key
- Page title (in head tag) is no longer set through the config manager
|
|/ |
|
| |
|
| |
|
|
|
|
| |
Except for those which require external data (timezone and $_SERVER).
|
| |
|
| |
|
|
|
|
| |
code base
|
|
|
|
| |
Signed-off-by: ArthurHoaro <arthur@hoa.ro>
|
|\
| |
| | |
Private links counter in the header
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Prefill the login field when the authentication has failed
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fix startsWith and endsWith case
|
| | |/
| |/| |
|
|/ / |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Relates to #102
Additions:
- application:
- export: allow prepending note permalinks with the instance's URL
- test coverage
Modifications:
- export template: switch to an HTML form
- link selection (all/private/public)
- prepend note permalinks with the instance's URL
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|\
| |
| | |
Use correct 'UTC' timezone
|
| | |
|
|\ \
| | |
| | | |
Fixes #531 - Title retrieving is failing with multiple use case
|
| | |
| | |
| | |
| | | |
see https://github.com/shaarli/Shaarli/issues/531 for details
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Relates to https://github.com/shaarli/netscape-bookmark-parser/issues/5
Fixes:
- respect the Netscape bookmark format "specification"
Modifications:
- [application] introduce the NetscapeBookmarkUtils class
- [template] export - improve formatting, rename export selection parameter
- [template] export.bookmarks - template for Netscape exports
- [tests] bookmark filtering, additional field generation
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
| |
| |
| |
| |
| |
| |
| |
| | |
* New config: `$GLOBALS['config']['REDIRECTOR_URLENCODE']` (default `true`).
* Parameter added to LinkDB constructor.
* Fixes a bug with urlencode and escaped url.
* In `index.php`, LinkDB is now instanciate once for `importFile()` and `showDaily()`.
* TU
|
|/
|
|
|
| |
* Force the number format with number_format().
* Reduce the size deciment number to 2.
|
| |
|
|\
| |
| | |
Refactor RSS feeds generation, and do it through templates
|
| |
| |
| |
| |
| |
| |
| |
| | |
* search type now carried by LinkDB in order to factorize code between different search sources.
* LinkDB->filter split in 3 method: filterSearch, filterHash, filterDay (we know what type of filter is needed).
* filterHash now throw a LinkNotFoundException if it doesn't exist: internal implementation choice, still displays a 404.
* Smallhash regex has been rewritten.
* Unit tests update
|
| | |
|
| |
| |
| |
| | |
Create an example of the new hook in the demo plugin.
|