aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Merge pull request #486 from virtualtam/refactor/datetimeArthur2016-02-181-41/+24
|\ \ | | | | | | cleanup: use DateTime to format dates
| * | cleanup: use DateTime to format datesVirtualTam2016-02-171-41/+24
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #270 Modifications: - replace custom date parsing by DateTime calls - use proper date formatting for RSS feeds Deletions: - linkdate2timestamp() - linkdate2rfc822 - linkdate2iso8601 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* / Fixes #468: don't trim descriptionArthurHoaro2016-02-181-1/+1
|/ | | | | | Spaces at the start of shaares can be intended. Eg: markdown plugin. #468
* Merge pull request #461 from ArthurHoaro/tagcloud-sortArthur2016-02-151-3/+17
|\ | | | | Fixes #456: Tag cloud does not sort tags (fully) alphabetically
| * Fixes #456: Tag cloud does not sort tags (fully) alphabeticallyArthurHoaro2016-02-051-3/+17
| | | | | | | | | | | | | | * Use Collator class to sort tags using the locale (in PECL intl, included in most PHP installation). * Use strcasecmp if Collator is not found. Both sorts are case insensitive.
* | Remove first '-' char when saving tagsArthurHoaro2016-02-151-0/+2
| |
* | Merge pull request #479 from ArthurHoaro/pluginsadmin-error-urlArthur2016-02-151-1/+1
|\ \ | | | | | | Fixes typo in plugin admin redirection URL
| * | Fixes typo in plugin admin redirection URLArthurHoaro2016-02-151-1/+1
| | |
* | | Merge pull request #460 from ArthurHoaro/440-editlink-404Arthur2016-02-151-13/+34
|\ \ \ | | | | | | | | Fixes #440 - 404 error after editing a link
| * | | Fixes #440 - 404 error after editing a linkArthurHoaro2016-02-041-1/+1
| | | | | | | | | | | | | | | | Remove unnecessary escape().
| * | | Code cleanup: index.php - save_editArthurHoaro2016-02-041-12/+33
| | |/ | |/|
* | | Merge pull request #442 from ArthurHoaro/updaterArthur2016-02-151-10/+23
|\ \ \ | |_|/ |/| | Introduce the Updater class which
| * | Introduce the Updater class whichArthurHoaro2016-02-151-10/+23
| |/ | | | | | | | | | | | | * contains methods designed to be run once. * is able to upgrade the datastore or the configuration. * is based on methods names, stored in a text file with ';' separator (updates.txt). * begins with existing function 'mergeDeprecatedConfigFile()' (options.php).
* | Common hooks: process includes before header/footerArthurHoaro2016-02-101-1/+1
| |
* | Merge pull request #458 from ArthurHoaro/plugins-init-parametersArthur2016-02-041-1/+2
|\ \ | | | | | | Initialize plugin parameters array to avoid unnecessary warning.
| * | Initialize plugin parameters array to avoid unnecessary warning.ArthurHoaro2016-02-021-1/+2
| |/
* / Add a default value to ENABLE_UPDATECHECK to avoid unnecessary warning.ArthurHoaro2016-02-021-0/+3
|/
* Bump version to v0.6.3ArthurHoaro2016-01-311-2/+2
|
* Fixes #378 - Plugin administration UI.ArthurHoaro2016-01-311-0/+48
|
* Create 404 templateDimtion2016-01-201-5/+14
| | | | Solve #430 for links
* Logging: move logm() from index.php to application/Utils.phpVirtualTam2016-01-161-13/+5
| | | | | | | | | | | Relates to #436 Modifications: - inject dependencies to global variables ($_SERVER, $GLOBALS) - apply coding conventions - add test coverage Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Fixes #410 - Retrieve title fails in multiple casesArthurHoaro2016-01-111-50/+37
| | | | | | | | | * `get_http_url()` renamed to `get_http_response()`. * Use the same HTTP context to retrieve response headers and content. * Follow HTTP 301 and 302 redirections to retrieve the title (default max 3 redirections). * Add `LinkUtils` to extract titles and charset. * Try to retrieve charset from HTTP headers first (new), then HTML content. * Use mb_string to re-encode title if necessary.
* Merge pull request #424 from ArthurHoaro/searchArthur2016-01-061-93/+117
|\ | | | | Link filter refactoring
| * Fixes #426 - Do not filter with blank tags.ArthurHoaro2016-01-061-4/+6
| |
| * Link filter refactoringArthurHoaro2016-01-061-89/+111
| | | | | | | | | | | | | | | | | | | | * introduce class LinkFilter to handle link filter operation (and lighten LinkDB). * handle 'private only' in filtering. * update template to prefill search fields with current search terms. * coding style. * unit test (mostly move from LinkDB to LinkFilter). PS: preparation for #358 #315 and 'AND' search.