aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/ /
* / Export: allow prepending notes with the Shaarli instance's URLVirtualTam2016-05-061-2/+14
|/ | | | | | | | | | | | | | | | 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>
* Merge pull request #551 from ArthurHoaro/hotfix/timezoneArthur2016-05-051-8/+12
|\ | | | | Use correct 'UTC' timezone
| * Use correct 'UTC' timezoneArthurHoaro2016-05-031-8/+12
| |
* | Merge pull request #532 from ArthurHoaro/hotfix/title-retrieve-the-returnArthur2016-05-031-3/+5
|\ \ | | | | | | Fixes #531 - Title retrieving is failing with multiple use case
| * | Fixes #531 - Title retrieving is failing with multiple use caseArthurHoaro2016-05-031-3/+5
| | | | | | | | | | | | see https://github.com/shaarli/Shaarli/issues/531 for details
* | | Refactor Netscape bookmark exportingVirtualTam2016-04-101-32/+25
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Fixes #480: add an option to urlencode redirector URLArthurHoaro2016-04-091-19/+11
| | | | | | | | | | | | | | | | * 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
* | Fixes #526: bad font size separator in tagcloud with some localeArthurHoaro2016-03-311-5/+10
|/ | | | | * Force the number format with number_format(). * Reduce the size deciment number to 2.
* Remove dev cache disablingArthurHoaro2016-03-261-1/+1
|
* Merge pull request #515 from ArthurHoaro/template-feedsArthur2016-03-251-299/+93
|\ | | | | Refactor RSS feeds generation, and do it through templates
| * Refactor filter in LinkDBArthurHoaro2016-03-251-72/+27
| | | | | | | | | | | | | | | | * 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 a FeedBuilder class which build data for both ATOM and RSS feed.ArthurHoaro2016-03-251-238/+41
| |
| * Plugin: add render_feed hook and call it while generating ATOM and RSS feed.ArthurHoaro2016-03-181-0/+6
| | | | | | | | Create an example of the new hook in the demo plugin.
| * Refactor showRSS, and make it use the RSS templateArthurHoaro2016-03-181-53/+67
| |
| * Refactor showAtom, and make it use the ATOM templateArthurHoaro2016-03-181-66/+59
| | | | | | | | | | | | | | | | Minor changes: * Fix the date which was in a invalid format. * Avoid empty categories (tags). * Use the locale to set the language
| * Add method assignAll() to pageBuilder to assign an array of dataArthurHoaro2016-03-181-0/+23
| |
* | Use generateLocation to set the redirection in login (and don't escape the url)ArthurHoaro2016-03-211-1/+1
|/
* Bump version to v0.6.5ArthurHoaro2016-03-021-2/+2
| | | | Signed-off-by: ArthurHoaro <arthur@hoa.ro>
* Fixes #503: check that HTTP_ACCEPT_LANGUAGE is set before calling autoLocale()ArthurHoaro2016-02-281-1/+4
|
* Bump version to v0.6.4ArthurHoaro2016-02-281-2/+2
| | | | Signed-off-by: ArthurHoaro <arthur@hoa.ro>
* Merge pull request #496 from ArthurHoaro/cross-searchArthur2016-02-281-41/+79
|\ | | | | Allow crossed search between terms and tags
| * Allow crossed search between terms and tagsArthurHoaro2016-02-281-41/+79
| | | | | | | | | | | | | | * Partial fix of #449 * Current use case: search term + click on tag. * LinkFilter now returns all links if no filter is given. * Unit tests.
* | Merge pull request #492 from ArthurHoaro/locale-sort-fixArthur2016-02-241-25/+6
|\ \ | |/ |/| Fixes #481: tag cloud fatal error
| * Fixes #481: tag cloud fatal errorArthurHoaro2016-02-191-4/+5
| | | | | | | | Only send LC_COLLATE to Collator and check that no error occured.
| * Apply the locale to all categories and move autolocale to Utils.phpArthurHoaro2016-02-191-21/+1
| |