]> git.immae.eu Git - github/shaarli/Shaarli.git/commit - index.php
install: check file/directory permissions for Shaarli resources 375/head
authorVirtualTam <virtualtam@flibidi.net>
Wed, 11 Nov 2015 21:49:58 +0000 (22:49 +0100)
committerVirtualTam <virtualtam@flibidi.net>
Tue, 24 Nov 2015 00:12:35 +0000 (01:12 +0100)
commit2e28269baed195d58bbe169841eed176b171db76
treef743e785edf708454ab53efa13f38e35f10447e6
parentc580024cfbe5f0d290b09157b9665d1b4131d7f4
install: check file/directory permissions for Shaarli resources

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>
application/ApplicationUtils.php [new file with mode: 0644]
application/FileUtils.php [new file with mode: 0644]
application/LinkDB.php
index.php
tests/ApplicationUtilsTest.php [new file with mode: 0644]
tests/LinkDBTest.php