aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
Commit message (Collapse)AuthorAgeFilesLines
* Minor improvements regarding #705 (coding style, unit tests, etc.)ArthurHoaro2017-01-051-2/+2
|
* Change templates set through administration UIKnah Tsaeb2017-01-051-1/+6
|
* Merge pull request #682 from ArthurHoaro/delete-buttonArthur2017-01-041-8/+8
|\ | | | | Bugfixes on link deletion, and use a GET form
| * Bugfixes on link deletion, and use a GET formArthurHoaro2016-12-161-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | Use a GET form to delete links: harmonize with edit_link and preparation for #585 Bug fixes: * LinkDB element can't be passed as reference, fix error: PHP Notice: Indirect modification of overloaded element of LinkDB has no effect * Resource cache folder setting wasn't set correctly
* | Merge pull request #731 from virtualtam/fix/api/namespacesVirtualTam2017-01-031-2/+2
|\ \ | | | | | | API: fix Slim namespaces
| * | API: fix Slim namespacesVirtualTam2017-01-021-2/+2
| | | | | | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | | Fix fatal error during the installArthurHoaro2017-01-031-2/+2
| | |
* | | Fixes presence of empty tags for private tags and in search resultsArthurHoaro2017-01-031-3/+3
|/ / | | | | | | | | | | | | * Private tags: make sure empty tags are properly filtered * Search results: * Use preg_split instead of function combination * Add normalize_spaces to remove extra whitespaces displaying empty tags search
* | Move PubSubHubbub code as a default pluginArthurHoaro2016-12-201-5/+0
| |
* | Merge pull request #666 from ArthurHoaro/slim-apiArthur2016-12-201-12/+44
|\ \ | |/ |/| REST API structure using Slim framework
| * REST API structure using Slim frameworkArthurHoaro2016-12-151-12/+32
| | | | | | | | | | | | * REST API routes are handle by Slim. * Every API controller go through ApiMiddleware which handles security. * First service implemented `/info`, for tests purpose.
| * Prepare settings for the API in the admin page and during the installArthurHoaro2016-12-121-0/+12
| | | | | | | | | | | | | | | | API settings: - api.enabled - api.secret The API settings will be initialized (and the secret generated) with an update method.
* | Fix a regression: permalinks change when old links are editedArthurHoaro2016-12-151-1/+3
|/ | | | fixes #713
* Bump version to v0.8.1ArthurHoaro2016-12-121-2/+2
| | | | Signed-off-by: ArthurHoaro <arthur@hoa.ro>
* Add a persistent 'shorturl' key to all linksArthurHoaro2016-12-121-33/+23
| | | | | | | 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.
* Apply the new ID system accros the whole codebaseArthurHoaro2016-12-121-35/+57
|
* Disable Firefox Social in the tools section if the page is not loaded using ↵Teromene2016-11-291-0/+1
| | | | HTTPS, as Firefox will deny the request.
* LinkDB: update datastore method namesVirtualTam2016-10-201-4/+4
| | | | | | Relates to https://github.com/shaarli/Shaarli/issues/95 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Minor code cleanup: PHPDoc, spelling, unused variables, etc.ArthurHoaro2016-10-201-6/+2
|
* New init function for plugins, supports errors reportingArthurHoaro2016-10-141-0/+1
| | | | | | | | 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.
* Merge pull request #622 from ArthurHoaro/update-dateArthur2016-10-121-1/+11
|\ | | | | Save link update dates and render it in templates and feeds
| * Save the update date in LinkDB and pass it to linklist templatesArthurHoaro2016-08-031-1/+11
| | | | | | | | It can be used as a timestamp by templates under the key 'updated_timestamp'.
* | Merge pull request #623 from ArthurHoaro/security/reverse-proxy-banArthur2016-10-121-1/+10
|\ \ | | | | | | Add trusted IPs in config and try to ban forwarded IP on failed login
| * | Add trusted IPs in config and try to ban forwarded IP on failed loginArthurHoaro2016-08-031-1/+10
| |/ | | | | | | | | | | | | | | * 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
* | Bump version to v0.8.0ArthurHoaro2016-10-121-2/+2
| | | | | | | | Signed-off-by: ArthurHoaro <arthur@hoa.ro>
* | composer: display an error message if the autoload script is missingVirtualTam2016-09-051-0/+10
| | | | | | | | | | | | | | Closes https://github.com/shaarli/Shaarli/issues/645 Relates to https://github.com/shaarli/Shaarli/issues/607 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | Refactor bookmark import using a generic Netscape parserVirtualTam2016-08-101-107/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Bugfix: wrong key used to get default private links settingArthurHoaro2016-08-071-1/+1
| |
* | Initialize a translation functionArthurHoaro2016-08-071-0/+1
| | | | | | | | It matches the API of ngettext().
* | Generate a token for every pagesArthurHoaro2016-08-061-9/+0
|/
* Merge pull request #604 from ArthurHoaro/no-deliciousArthur2016-07-231-1/+1
|\ | | | | Remove Delicious in project description in comments
| * Remove Delicious in project description in commentsArthurHoaro2016-07-231-1/+1
| |
* | Merge pull request #601 from ArthurHoaro/hotfix/title-missingArthur2016-07-231-7/+5
|\ \ | | | | | | Fixes #600 - Shaarli's title is not set with the new config manager
| * | Fixes #600 - Shaarli's title is not set with the new config managerArthurHoaro2016-07-191-7/+5
| |/ | | | | | | | | - Fixed title config key - Page title (in head tag) is no longer set through the config manager
* / Fix variable in configure.phpArthurHoaro2016-07-101-0/+1
|/
* Rename configuration key for better sectionsArthurHoaro2016-06-111-53/+53
|
* ConfigManager no longer uses singleton patternArthurHoaro2016-06-111-127/+190
|
* Remove remaining settings initialization in index.phpArthurHoaro2016-06-111-27/+6
| | | | Except for those which require external data (timezone and $_SERVER).
* Rename configuration keys and fix GLOBALS in templatesArthurHoaro2016-06-111-100/+102
|
* Set the default timezone in index.phpArthurHoaro2016-06-111-0/+2
|
* Replace $GLOBALS configuration with the configuration manager in the whole ↵ArthurHoaro2016-06-111-243/+200
| | | | code base
* Version bump: v0.7.0ArthurHoaro2016-05-141-2/+2
| | | | Signed-off-by: ArthurHoaro <arthur@hoa.ro>
* Merge pull request #560 from ArthurHoaro/nb-private-shaareArthur2016-05-141-137/+5
|\ | | | | Private links counter in the header
| * Add private link counterArthurHoaro2016-05-131-14/+3
| |
| * Extract PageBuilder class from index.phpArthurHoaro2016-05-131-123/+2
| |
* | Merge pull request #556 from ArthurHoaro/login-refillArthur2016-05-141-2/+5
|\ \ | | | | | | Prefill the login field when the authentication has failed
| * | Prefill the login field when the authentication has failedArthurHoaro2016-05-061-2/+5
| | |
* | | Merge pull request #559 from ArthurHoaro/startsEndWithCaseArthur2016-05-141-7/+7
|\ \ \ | | | | | | | | Fix startsWith and endsWith case
| * | | Fix startsWith and endsWith caseArthurHoaro2016-05-101-7/+7
| | |/ | |/|
* / | Don't redirect to ?post if ?addlink is reached while logged outArthurHoaro2016-05-111-6/+0
|/ /