aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/FileUtils.php
Commit message (Collapse)AuthorAgeFilesLines
* PSR: use elseif instead of else ifArthurHoaro2018-02-281-1/+1
| | | | See https://www.php-fig.org/psr/psr-2/\#51-if-elseif-else
* Robustness: safer gzinflate/zlib usageVirtualTam2017-09-281-10/+16
| | | | | | | | | | | Relates to https://github.com/shaarli/Shaarli/pull/846 PHP's `gzinflate()` fails with an error when being passed an empty string See: - https://bugs.php.net/bug.php?id=71395 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Add history entries for API endpointArthurHoaro2017-05-071-1/+1
| | | | CHANGED: datetime is now store as an object in history store file
* Move database read/write to FileUtils class + additional unit testsArthurHoaro2017-03-211-10/+65
|
* Replace $GLOBALS configuration with the configuration manager in the whole ↵ArthurHoaro2016-06-111-3/+5
| | | | code base
* install: check file/directory permissions for Shaarli resourcesVirtualTam2015-11-241-0/+19
Relates to #40 Relates to #372 Additions: - FileUtils: IOException - ApplicationUtils: - check if Shaarli resources are accessible with sufficient permissions - basic test coverage - index.php: - check access permissions and redirect to an error page if needed: - before running the first installation Modifications: - LinkDB: - factorize datastore write code - check if the datastore (exists AND is writeable) OR (doesn't exist AND its parent dir is writable) - raise an IOException if needed Signed-off-by: VirtualTam <virtualtam@flibidi.net>