]> git.immae.eu Git - github/shaarli/Shaarli.git/log
github/shaarli/Shaarli.git
8 years agoBump version to v0.6.0 383/head v0.6.0
ArthurHoaro [Wed, 18 Nov 2015 12:38:30 +0000 (13:38 +0100)] 
Bump version to v0.6.0

Signed-off-by: ArthurHoaro <arthur@hoa.ro>
8 years agoMerge pull request #374 from virtualtam/cleanup
VirtualTam [Wed, 11 Nov 2015 18:22:04 +0000 (19:22 +0100)] 
Merge pull request #374 from virtualtam/cleanup

cleanup: remove the executable bit from source scripts

8 years agocleanup: remove the executable bit from source scripts 374/head
VirtualTam [Wed, 11 Nov 2015 18:06:12 +0000 (19:06 +0100)] 
cleanup: remove the executable bit from source scripts

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #373 from virtualtam/index/format-globals-comments
VirtualTam [Wed, 11 Nov 2015 17:58:32 +0000 (18:58 +0100)] 
Merge pull request #373 from virtualtam/index/format-globals-comments

index.php: group globals by theme, format comments

8 years agoindex.php: group globals by theme, format comments 373/head
VirtualTam [Wed, 11 Nov 2015 17:45:46 +0000 (18:45 +0100)] 
index.php: group globals by theme, format comments

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #275 from shaarli/plugin-proposition
Arthur [Sun, 8 Nov 2015 12:29:32 +0000 (13:29 +0100)] 
Merge pull request #275 from shaarli/plugin-proposition

Plugin proposition

8 years agoHandle errors raised by plugins in template. fixes #370 275/head
ArthurHoaro [Sun, 8 Nov 2015 12:22:44 +0000 (13:22 +0100)] 
Handle errors raised by plugins in template. fixes #370

8 years agoMerge pull request #286 from ArthurHoaro/plugin-demo_plugin
Arthur [Sun, 8 Nov 2015 11:54:02 +0000 (12:54 +0100)] 
Merge pull request #286 from ArthurHoaro/plugin-demo_plugin

PLUGIN demo_plugin

8 years agoPLUGIN demo_plugin 286/head
ArthurHoaro [Thu, 15 Oct 2015 10:50:40 +0000 (12:50 +0200)] 
PLUGIN demo_plugin

This plugin try to cover Shaarli's plugin API entirely.
Can be used by plugin developper to make their own.

8 years agoMerge pull request #281 from ArthurHoaro/plugin-wallabag
Arthur [Sun, 8 Nov 2015 11:46:17 +0000 (12:46 +0100)] 
Merge pull request #281 from ArthurHoaro/plugin-wallabag

PLUGIN wallabag

8 years agoMerge pull request #280 from ArthurHoaro/plugin-readityourself
Arthur [Sun, 8 Nov 2015 11:45:19 +0000 (12:45 +0100)] 
Merge pull request #280 from ArthurHoaro/plugin-readityourself

PLUGIN readityourself

8 years agoMerge pull request #279 from ArthurHoaro/plugin-addlink_toolbar
Arthur [Sun, 8 Nov 2015 11:45:07 +0000 (12:45 +0100)] 
Merge pull request #279 from ArthurHoaro/plugin-addlink_toolbar

PLUGIN: addlink_toolbar

8 years agounit tests for the wallabag plugin 281/head
ArthurHoaro [Sun, 8 Nov 2015 11:00:06 +0000 (12:00 +0100)] 
unit tests for the wallabag plugin
+ removed exit error if the config is not found
+ coding style

8 years agounit tests for readityourself plugin + remove hard error 280/head
ArthurHoaro [Sun, 8 Nov 2015 11:16:55 +0000 (12:16 +0100)] 
unit tests for readityourself plugin + remove hard error

8 years agounit test for addlink_toolbar + coding style 279/head
ArthurHoaro [Sun, 8 Nov 2015 11:40:14 +0000 (12:40 +0100)] 
unit test for addlink_toolbar + coding style

8 years agoPLUGIN: addlink_toolbar
ArthurHoaro [Thu, 15 Oct 2015 10:25:38 +0000 (12:25 +0200)] 
PLUGIN: addlink_toolbar

Add a field in linklist page to paste a new link.

Displayed in fields toolbar.

8 years agoPLUGIN readityourself
ArthurHoaro [Wed, 15 Jul 2015 10:04:22 +0000 (12:04 +0200)] 
PLUGIN readityourself

Add an icon for each link (linklist) for ReadItYourself

8 years agoMerge pull request #284 from ArthurHoaro/plugin-playvideos
Arthur [Sat, 7 Nov 2015 15:53:07 +0000 (16:53 +0100)] 
Merge pull request #284 from ArthurHoaro/plugin-playvideos

PLUGIN playvideos

8 years agoMerge pull request #285 from ArthurHoaro/plugin-qrcode
Arthur [Sat, 7 Nov 2015 15:52:53 +0000 (16:52 +0100)] 
Merge pull request #285 from ArthurHoaro/plugin-qrcode

PLUGIN QRCode

8 years agoMerge pull request #283 from ArthurHoaro/plugin-archiveorg
Arthur [Sat, 7 Nov 2015 15:52:41 +0000 (16:52 +0100)] 
Merge pull request #283 from ArthurHoaro/plugin-archiveorg

PLUGIN archiveorg

8 years agoMerge pull request #368 from ArthurHoaro/returnurl-again
Arthur [Sat, 7 Nov 2015 15:51:50 +0000 (16:51 +0100)] 
Merge pull request #368 from ArthurHoaro/returnurl-again

Fixes #356 -  adding a link should return added link's hash

8 years agoPLUGIN wallabag
ArthurHoaro [Wed, 15 Jul 2015 10:05:36 +0000 (12:05 +0200)] 
PLUGIN wallabag

Add a Wallabag icon in linklist for each link.

8 years agoAdd unit test for archiveorg plugin 283/head
ArthurHoaro [Sat, 7 Nov 2015 15:37:23 +0000 (16:37 +0100)] 
Add unit test for archiveorg plugin
+ coding style

8 years agoPLUGIN archiveorg
ArthurHoaro [Thu, 15 Oct 2015 10:47:04 +0000 (12:47 +0200)] 
PLUGIN archiveorg

Display an archive.org icon in linklist, foreach links.

8 years agoAdd unit tests for Playvideos plugin 284/head
ArthurHoaro [Sat, 7 Nov 2015 15:30:56 +0000 (16:30 +0100)] 
Add unit tests for Playvideos plugin
+ coding style

8 years agoPLUGIN playvideos
ArthurHoaro [Wed, 15 Jul 2015 10:01:06 +0000 (12:01 +0200)] 
PLUGIN playvideos

Display a button in buttons toolbar which allows to play all videos found.

8 years agoAdd unit tests for the QRCode plugin 285/head
ArthurHoaro [Sat, 7 Nov 2015 15:13:08 +0000 (16:13 +0100)] 
Add unit tests for the QRCode plugin
+ coding style

8 years agoPLUGIN QRCode
ArthurHoaro [Wed, 15 Jul 2015 10:02:56 +0000 (12:02 +0200)] 
PLUGIN QRCode

Add an icon in linklist to display links QRCode

8 years agoAdd plugins folder to test analysis
ArthurHoaro [Sat, 25 Jul 2015 08:39:13 +0000 (10:39 +0200)] 
Add plugins folder to test analysis

8 years agoUnit tests for Router and PluginManager.
ArthurHoaro [Thu, 16 Jul 2015 11:53:39 +0000 (13:53 +0200)] 
Unit tests for Router and PluginManager.

8 years agoTemplate upgrade to handle plugin zones
ArthurHoaro [Wed, 15 Jul 2015 09:47:12 +0000 (11:47 +0200)] 
Template upgrade to handle plugin zones

Add a bunch of plugin placeholders in templates

8 years agoPlugins TODO.md
ArthurHoaro [Wed, 15 Jul 2015 10:08:52 +0000 (12:08 +0200)] 
Plugins TODO.md

8 years agoPlugin system - CORE
ArthurHoaro [Wed, 15 Jul 2015 09:42:15 +0000 (11:42 +0200)] 
Plugin system - CORE

see shaarli/Shaarli#275

8 years agoFixes #356 368/head
ArthurHoaro [Wed, 4 Nov 2015 18:53:59 +0000 (19:53 +0100)] 
Fixes #356
 * adding a link should return added link's hash
* allow redirection relative urls in generateLocation

8 years agoBump version to 0.5.4 v0.5.4
VirtualTam [Mon, 14 Sep 2015 19:02:52 +0000 (21:02 +0200)] 
Bump version to 0.5.4

Fixes:
 - PHP session IDs: handle hash algorithms and bits per char representations

Minor changes:
 - HTTPS: support being served behing an SSL-enabled proxy
 - HTTP/Server utilities: refactor & add test coverage

Project & documentation:
 - improve/rewrite `README.md`
 - update contributor list
 - update `index.php` header

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoUpdate project information: contributors, `index.php` header
VirtualTam [Mon, 14 Sep 2015 18:54:13 +0000 (20:54 +0200)] 
Update project information: contributors, `index.php` header

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #346 from virtualtam/refactor/http-url-utils
VirtualTam [Mon, 14 Sep 2015 18:40:41 +0000 (20:40 +0200)] 
Merge pull request #346 from virtualtam/refactor/http-url-utils

HTTP: move server URL functions to `HttpUtils.php`

8 years agoHTTP: move server URL functions to `HttpUtils.php` 346/head
VirtualTam [Sun, 6 Sep 2015 19:31:37 +0000 (21:31 +0200)] 
HTTP: move server URL functions to `HttpUtils.php`

Relates to #333

Modifications:
 - refactor server URL utility functions
 - do not access global `$_SERVER` variables
 - add test coverage
 - improve readability
 - apply coding conventions

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoSSL detection: add support for `X-Forwarded-Proto`
Fanch [Tue, 1 Sep 2015 11:37:04 +0000 (13:37 +0200)] 
SSL detection: add support for `X-Forwarded-Proto`

Duplicates #332

See:
 - RFC 7239 - Forwarded HTTP Extension
   http://www.ietf.org/rfc/rfc7239.txt
 - RFC 6238 - Deprecating the "X-" Prefix and Similar Constructs in Application Protocols
   http://www.ietf.org/rfc/rfc6648.txt
 - StackOverflow - Custom HTTP headers: naming conventions
   http://stackoverflow.com/a/3561399

8 years agoMerge pull request #337 from doc75/doublon_url
VirtualTam [Tue, 8 Sep 2015 20:03:18 +0000 (22:03 +0200)] 
Merge pull request #337 from doc75/doublon_url

#325 small enhancement to fix the GetLinkFromUrl method

8 years agoUrl: introduce global helper functions for cleanup and scheme detection 337/head
Guillaume Virlet [Wed, 2 Sep 2015 11:55:39 +0000 (13:55 +0200)] 
Url: introduce global helper functions for cleanup and scheme detection

Relates to #314 & #326

Additions:
 - add global `cleanup_url()` and `get_url_scheme()` functions

Modifications:
 - replace `Url` usage in `index.php` by calls to global functions
 - fix `Url` tests not being run: PHPUnit expects a single test class per file
   - move classes to separate files

8 years agoMerge pull request #334 from virtualtam/refactor/http-utils
VirtualTam [Sun, 6 Sep 2015 18:32:01 +0000 (20:32 +0200)] 
Merge pull request #334 from virtualtam/refactor/http-utils

HTTP: move utils to a proper file, add tests

8 years agoHTTP: move utils to a proper file, add tests 334/head
VirtualTam [Tue, 1 Sep 2015 19:45:06 +0000 (21:45 +0200)] 
HTTP: move utils to a proper file, add tests

Relates to #333

Modifications:
 - move HTTP utils to 'application/HttpUtils.php'
 - simplify logic
   - replace 'http_parse_headers_shaarli' by built-in 'get_headers()'
   - remove superfluous '$status' parameter (provided by the HTTP headers)
 - apply coding conventions
 - add test coverage (unitary only)

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #338 from virtualtam/fix/unique-uniqid
VirtualTam [Sun, 6 Sep 2015 14:16:53 +0000 (16:16 +0200)] 
Merge pull request #338 from virtualtam/fix/unique-uniqid

Session ID: extend the regex to match possible hash representations

8 years agoSession ID: extend the regex to match possible hash representations 338/head
VirtualTam [Thu, 3 Sep 2015 21:12:58 +0000 (23:12 +0200)] 
Session ID: extend the regex to match possible hash representations

Improves #306
Relates to #335 & #336
Duplicated by #339

Issues:
 - PHP regenerates the session ID if it is not compliant
 - the regex checking the session ID does not cover all cases
   - different algorithms: md5, sha1, sha256, etc.
   - bit representations: 4, 5, 6

Fix:
 - `index.php`:
   - remove `uniqid()` usage
   - call `session_regenerate_id()` if an invalid cookie is detected
 - regex: support all possible characters - '[a-zA-Z,-]{2,128}'
 - tests: add coverage for all algorithms & bit representations

See:
 - http://php.net/manual/en/session.configuration.php#ini.session.hash-function
 - https://secure.php.net/manual/en/session.configuration.php#ini.session.hash-bits-per-character
 - http://php.net/manual/en/function.session-id.php
 - http://php.net/manual/en/function.session-regenerate-id.php
 - http://php.net/manual/en/function.hash-algos.php

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #344 from virtualtam/copying
VirtualTam [Sun, 6 Sep 2015 02:07:28 +0000 (04:07 +0200)] 
Merge pull request #344 from virtualtam/copying

COPYING: update contributor list

8 years agoCOPYING: update contributor list 344/head
VirtualTam [Sun, 6 Sep 2015 01:07:25 +0000 (03:07 +0200)] 
COPYING: update contributor list

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoUpdate README.md
VirtualTam [Sun, 6 Sep 2015 00:22:52 +0000 (02:22 +0200)] 
Update README.md

8 years agoMerge pull request #343 from virtualtam/readme
VirtualTam [Sun, 6 Sep 2015 00:16:39 +0000 (02:16 +0200)] 
Merge pull request #343 from virtualtam/readme

Rewrite README.md

8 years agoRewrite README.md 343/head
VirtualTam [Sat, 5 Sep 2015 23:56:37 +0000 (01:56 +0200)] 
Rewrite README.md

Modifications:
 - group content in sections
 - homogenize formatting
 - replace installation instructions by links to the corresponding wiki pages
 - update badges
   - use http://shields.io/ to generate SVGs with custom labels
   - master branch: update Travis label
   - stable branch: add Travis status
   - GitHub release: display the latest released version

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #340 from virtualtam/doc/update
VirtualTam [Fri, 4 Sep 2015 19:35:27 +0000 (21:35 +0200)] 
Merge pull request #340 from virtualtam/doc/update

Doc: sync from Wiki, generate HTML

8 years agoDoc: sync from Wiki, generate HTML 340/head
VirtualTam [Fri, 4 Sep 2015 19:25:47 +0000 (21:25 +0200)] 
Doc: sync from Wiki, generate HTML

Additions:
 - Installation/Download: how to get Shaarli
 - Community software: ShaarliOS app

Modifications:
 - Installation/Server requirements: PHP 5.4 EOL, PHP 7 announcements
 - Installation/Server configuration: improve Nginx security
 - Troubleshooting: PHP sessions on `free.fr`

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoBump version to v0.5.3 v0.5.3
ArthurHoaro [Wed, 2 Sep 2015 16:06:21 +0000 (18:06 +0200)] 
Bump version to v0.5.3

Fixes a bug that could prevent user to login.

8 years agoMerge pull request #336 from ArthurHoaro/login-hotfix 0.5.3
Arthur [Wed, 2 Sep 2015 15:55:11 +0000 (17:55 +0200)] 
Merge pull request #336 from ArthurHoaro/login-hotfix

Allow uppercase letters in PHP sessionid format

8 years agoAllow uppercase letters in PHP sessionid format 336/head
ArthurHoaro [Wed, 2 Sep 2015 15:00:38 +0000 (17:00 +0200)] 
Allow uppercase letters in PHP sessionid format

Fixes shaarli/Shaarli#335 - Wrong login/password since v0.5.2

Regression introduced in 06b6660a7e8891c6e1c47815cf50ee5b2ef5f270

8 years agoBump version to 0.5.2 v0.5.2
VirtualTam [Mon, 31 Aug 2015 18:36:13 +0000 (20:36 +0200)] 
Bump version to 0.5.2

Minor changes
 - fix Full Path Disclosure upon cookie forgery
 - fix regression preventing to load LinkDB info when adding an existing link
 - also extract HTTPS page metadata (title)
 - add PHP 7 to Travis platforms

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #326 from ArthurHoaro/bug-url
VirtualTam [Mon, 31 Aug 2015 18:31:41 +0000 (20:31 +0200)] 
Merge pull request #326 from ArthurHoaro/bug-url

Fixes #325 - Shaarli does not recognize saved links

8 years agoAdd HTTPS support for title extracting feature 326/head
ArthurHoaro [Mon, 31 Aug 2015 10:27:56 +0000 (12:27 +0200)] 
Add HTTPS support for title extracting feature

8 years agoFixes #325 - Shaarli does not recognize saved links
ArthurHoaro [Thu, 20 Aug 2015 17:47:01 +0000 (19:47 +0200)] 
Fixes #325 - Shaarli does not recognize saved links

PHP doesn't seem to autoconvert objects to strings when they're use as array indexes.

Fixes regression introduced in d9d776af19fd0a191f82525991dafbb56e1bcfcb

8 years agoMerge pull request #306 from ArthurHoaro/fpd
VirtualTam [Mon, 24 Aug 2015 19:25:33 +0000 (21:25 +0200)] 
Merge pull request #306 from ArthurHoaro/fpd

Avoid Full Path Disclosure error on session error.

8 years agoMerge pull request #327 from virtualtam/travis/php7
VirtualTam [Sun, 23 Aug 2015 22:30:05 +0000 (00:30 +0200)] 
Merge pull request #327 from virtualtam/travis/php7

travis: add PHP 7 to the tested environments

8 years agoAvoid Full Path Disclosure error on session error. 306/head
ArthurHoaro [Sat, 25 Jul 2015 11:15:47 +0000 (13:15 +0200)] 
Avoid Full Path Disclosure error on session error.

  * Add a function to validate session ID.
  * Generate a new session ID if an invalid token is passed.

8 years agotravis: add PHP 7 to the tested environments 327/head
VirtualTam [Fri, 21 Aug 2015 22:06:42 +0000 (00:06 +0200)] 
travis: add PHP 7 to the tested environments

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoBump version to 0.5.1 v0.5.1
VirtualTam [Mon, 17 Aug 2015 22:35:42 +0000 (00:35 +0200)] 
Bump version to 0.5.1

Minor changes
 - fix 404 after editing a link while being logged out
 - update local documentation
 - improve timezone detection at installation
 - improve feed cache handling
 - improve URL cleanup for new links
 - add a link to the shaarli/shaarli DockerHub repository

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoDoc: sync from Wiki, generate HTML
VirtualTam [Mon, 17 Aug 2015 22:33:25 +0000 (00:33 +0200)] 
Doc: sync from Wiki, generate HTML

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #314 from shaarli/clean-utm_term
VirtualTam [Sun, 16 Aug 2015 21:01:54 +0000 (23:01 +0200)] 
Merge pull request #314 from shaarli/clean-utm_term

clean utm_term url parameter

8 years agoREADME: add DockerHub badge
VirtualTam [Sun, 16 Aug 2015 12:50:16 +0000 (14:50 +0200)] 
README: add DockerHub badge

See [docker-shaarli](https://github.com/shaarli/docker-shaarli) for Dockerfiles and documentation

8 years agoLinks: refactor & improve URL cleanup 314/head
VirtualTam [Thu, 13 Aug 2015 23:14:07 +0000 (01:14 +0200)] 
Links: refactor & improve URL cleanup

Relates to #141
Relates to #133

Modifications
 - move URL cleanup to `application/Url.php`
 - rework the cleanup function
   - fragments: `#stuff`
   - GET parameters: `?var1=val1&var2=val2`
 - add documentation (APIs the params belong to)
 - add test coverage

Reference
 - http://php.net/parse_url
 - http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #309 from virtualtam/refactor/PageCache
VirtualTam [Thu, 13 Aug 2015 21:54:26 +0000 (23:54 +0200)] 
Merge pull request #309 from virtualtam/refactor/PageCache

CachedPage: move to a proper file, add tests

8 years agoCache: simplify cached content cleanup, improve tests 309/head
VirtualTam [Thu, 13 Aug 2015 19:39:51 +0000 (21:39 +0200)] 
Cache: simplify cached content cleanup, improve tests

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoCachedPage: move to a proper file, add tests
VirtualTam [Thu, 9 Jul 2015 20:14:39 +0000 (22:14 +0200)] 
CachedPage: move to a proper file, add tests

Modifications
 - rename `pageCache` to `CachedPage`
 - move utilities to `Cache`
 - do not access globals
 - apply coding rules
 - update LinkDB and test code
 - add test coverage

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #301 from ArthurHoaro/edit-link-redirect
VirtualTam [Thu, 13 Aug 2015 21:47:05 +0000 (23:47 +0200)] 
Merge pull request #301 from ArthurHoaro/edit-link-redirect

Fixes #299: prevent 404 on '?edit_link' while logged out

8 years agoFixes #299: prevent 404 on '?edit_link' while logged out 301/head
ArthurHoaro [Wed, 29 Jul 2015 13:32:41 +0000 (15:32 +0200)] 
Fixes #299: prevent 404 on '?edit_link' while logged out

 - add a use case for edit_link in logged out part.
 - *really* prevent loops on login screen.

8 years agoMerge pull request #313 from virtualtam/install/timezone
VirtualTam [Wed, 5 Aug 2015 14:34:40 +0000 (16:34 +0200)] 
Merge pull request #313 from virtualtam/install/timezone

Installation: default to the server's timezone

8 years agoInstallation: default to the server's timezone 313/head
VirtualTam [Tue, 4 Aug 2015 16:31:16 +0000 (18:31 +0200)] 
Installation: default to the server's timezone

Modifications
 - attempt to use the server's timezone
 - if none is set, use UTC
 - TimeZone: apply coding conventions
   - variable naming
   - no closing PHP tag

Relates to #274

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #294 from virtualtam/doc/update
VirtualTam [Tue, 4 Aug 2015 14:07:13 +0000 (16:07 +0200)] 
Merge pull request #294 from virtualtam/doc/update

Doc: sync from Wiki, generate HTML

8 years agoDoc: sync from Wiki, generate HTML 294/head
VirtualTam [Wed, 22 Jul 2015 03:02:10 +0000 (05:02 +0200)] 
Doc: sync from Wiki, generate HTML

Closes #291
Fixes #227

Modifications
 - HTML content: match the new Wiki structure
 - Makefile
   - generate a custom HTML sidebar
   - include the sidebar on all pages
   - infer and prepend page titles
   - handle relative links
   - add title metadata, e.g. Shaarli - <Page Name>

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #276 from virtualtam/tools/phpcs
VirtualTam [Fri, 31 Jul 2015 14:08:32 +0000 (16:08 +0200)] 
Merge pull request #276 from virtualtam/tools/phpcs

Add a generic rule to run PHPCS against different coding standards

8 years agoMerge pull request #303 from virtualtam/v0.5.0 v0.5.0
VirtualTam [Thu, 30 Jul 2015 09:43:43 +0000 (11:43 +0200)] 
Merge pull request #303 from virtualtam/v0.5.0

Bump version to 0.5.0

8 years agoBump version to 0.5.0 303/head
VirtualTam [Thu, 30 Jul 2015 09:20:51 +0000 (11:20 +0200)] 
Bump version to 0.5.0

Major changes
 - fix locale handling
 - fix note URLs
 - fix page redirections
 - fix daily RSS browsing
 - fix title display
 - fix links not being hidden when `HIDE_PUBLIC_LINKS` is set
 - restore compatibility with PHP 5.3
 - remove duplicate tags in links
 - remove annoying URL patterns
 - add Firefox Social API
 - Search/Filter by tag fieds can now be accessed quickly with the `Tab` key
 - update documentation
 - start code refactoring
   - move all settings to `data/config.php`
   - refactor Config, LinkDB, TimeZone, Utils
   - add unit test coverage
   - add Travis integration

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoAdd Requirements section in README (link to wiki).
ArthurHoaro [Fri, 24 Jul 2015 09:13:04 +0000 (11:13 +0200)] 
Add Requirements section in README (link to wiki).

Fixes #297

8 years agoMerge pull request #295 from Knah-Tsaeb/patch-1
Arthur [Thu, 23 Jul 2015 13:45:59 +0000 (15:45 +0200)] 
Merge pull request #295 from Knah-Tsaeb/patch-1

[fix]  #293 - Black thumbnails on picture wall after upgrade

8 years agoMerge pull request #289 from virtualtam/make-clean
VirtualTam [Wed, 22 Jul 2015 22:34:52 +0000 (00:34 +0200)] 
Merge pull request #289 from virtualtam/make-clean

Makefile: do not call `clean` before `test`

8 years ago[fix] #293 295/head
Knah Tsaeb [Wed, 22 Jul 2015 08:39:23 +0000 (10:39 +0200)] 
[fix]  #293

Black thumbnails on picture wall after upgrade #293

8 years agoMakefile: do not call `clean` before `test` 289/head
VirtualTam [Sat, 18 Jul 2015 09:56:41 +0000 (11:56 +0200)] 
Makefile: do not call `clean` before `test`

Fixes #288

Modifications:
 - call `make clean` explicitely to clean the workspace
 - add `make clean` to Travis instructions

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #290 from virtualtam/travis-container
VirtualTam [Sat, 18 Jul 2015 11:42:15 +0000 (13:42 +0200)] 
Merge pull request #290 from virtualtam/travis-container

Travis: use the container-based infrastructure

8 years agoTravis: use the container-based infrastructure 290/head
VirtualTam [Sat, 18 Jul 2015 11:23:00 +0000 (13:23 +0200)] 
Travis: use the container-based infrastructure

See http://docs.travis-ci.com/user/migrating-from-legacy/

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #271 from virtualtam/php53
Arthur [Wed, 15 Jul 2015 09:05:07 +0000 (11:05 +0200)] 
Merge pull request #271 from virtualtam/php53

PHP: ensure 5.3 compatibility

8 years agoPHP: ensure 5.3 compatibility, refactor timezone utilities 271/head
VirtualTam [Fri, 10 Jul 2015 23:29:12 +0000 (01:29 +0200)] 
PHP: ensure 5.3 compatibility, refactor timezone utilities

Relates to #250

Modifications
 - supported version
   - bump required version from 5.1.0 to 5.3.x
   - update README
   - add PHP 5.3 to Travis environments
 - rewrite array declarations: explicitely use array() instead of []
 - move checkPHPVersion to application/Utils.php
 - move timezone functions to application/TimeZone.php
   - cleanup code
   - improve test coverage

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMakefile: add a generic rule to run PHPCS against different coding standards 276/head
VirtualTam [Sun, 12 Jul 2015 21:04:43 +0000 (23:04 +0200)] 
Makefile: add a generic rule to run PHPCS against different coding standards

Relates to #95

Usage
 - list available standards
   $ ./vendor/bin/phpcs -i
 - run PHPCS against a given standard
   $ make PHPCS_<standard>

Examples
 $ make PHPCS_PSR1
 $ make PHPCS_Zend

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #257 from ArthurHoaro/tag-http-referer
VirtualTam [Sun, 12 Jul 2015 17:56:13 +0000 (19:56 +0200)] 
Merge pull request #257 from ArthurHoaro/tag-http-referer

Prevent redirection loop everytime we rely on HTTP_REFERER

8 years agoPrevent redirection loop everytime we rely on HTTP_REFERER: 257/head
ArthurHoaro [Mon, 6 Jul 2015 08:22:00 +0000 (10:22 +0200)] 
Prevent redirection loop everytime we rely on HTTP_REFERER:

  * search tag
  * delete tag
  * pagination
  * display privates only
  * delete link
  * new/edit/cancel link return page

Move location generation to Utils.php + unit tests.

Fixes #256

ninja

8 years agoEnglish mistake cf sebsauvage/Shaarli#221
Arthur [Sun, 12 Jul 2015 13:16:37 +0000 (15:16 +0200)] 
English mistake cf sebsauvage/Shaarli#221

8 years agoFixes warning 'Undefined index: searchtags' while filtering by tags.
ArthurHoaro [Sun, 12 Jul 2015 09:36:42 +0000 (11:36 +0200)] 
Fixes warning 'Undefined index: searchtags' while filtering by tags.

Happened if there were not any searchtags already present in the query.

8 years agoMerge pull request #262 from ArthurHoaro/dup-tags
Arthur [Sun, 12 Jul 2015 09:01:24 +0000 (11:01 +0200)] 
Merge pull request #262 from ArthurHoaro/dup-tags

Avoid tag duplicates

8 years agoAvoid tag duplicates 262/head
ArthurHoaro [Wed, 8 Jul 2015 14:28:31 +0000 (16:28 +0200)] 
Avoid tag duplicates

 * Prevent duplicate client side with awesomplete
 * Prevent duplicate server side (save_edit processing)

Fixes #261

8 years agoMerge pull request #268 from ArthurHoaro/dailrss-template
VirtualTam [Sat, 11 Jul 2015 17:09:52 +0000 (19:09 +0200)] 
Merge pull request #268 from ArthurHoaro/dailrss-template

Include the whole <item> in Daily RSS template

8 years agoMerge pull request #269 from virtualtam/fix/read-config
VirtualTam [Sat, 11 Jul 2015 10:48:24 +0000 (12:48 +0200)] 
Merge pull request #269 from virtualtam/fix/read-config

Fix: data/config.php was not imported

8 years agoInclude the whole <item> in dailyRSS 268/head
ArthurHoaro [Fri, 10 Jul 2015 13:41:59 +0000 (15:41 +0200)] 
Include the whole <item> in dailyRSS

Allow custom date format and title in templates.

Also a bit of code style review.

Fixes #182

8 years agoFix: data/config.php was not imported 269/head
VirtualTam [Fri, 10 Jul 2015 20:53:43 +0000 (22:53 +0200)] 
Fix: data/config.php was not imported

Relates to #255

Signed-off-by: VirtualTam <virtualtam@flibidi.net>