aboutsummaryrefslogtreecommitdiffhomepage
path: root/check_setup.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2014-07-11 16:03:59 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2014-07-11 16:03:59 +0200
commit3602405ec0dbc576fce09ff9e865ba2404622080 (patch)
tree45f9de611f4936091b0ed29a6a21fa4fef9b330b /check_setup.php
parent6400371ff93782d25cdbd50aa224c70145b3890a (diff)
downloadwallabag-3602405ec0dbc576fce09ff9e865ba2404622080.tar.gz
wallabag-3602405ec0dbc576fce09ff9e865ba2404622080.tar.zst
wallabag-3602405ec0dbc576fce09ff9e865ba2404622080.zip
WHAT. A. BIG. REFACTOR. + new license (we moved to MIT one)
Diffstat (limited to 'check_setup.php')
-rw-r--r--check_setup.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/check_setup.php b/check_setup.php
index 2b84a744..eee5d24a 100644
--- a/check_setup.php
+++ b/check_setup.php
@@ -1,5 +1,4 @@
1<?php 1<?php
2
3// PHP 5.3 minimum 2// PHP 5.3 minimum
4if (version_compare(PHP_VERSION, '5.3.3', '<')) { 3if (version_compare(PHP_VERSION, '5.3.3', '<')) {
5 die('This software require PHP 5.3.3 minimum'); 4 die('This software require PHP 5.3.3 minimum');
@@ -13,14 +12,11 @@ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
13 } 12 }
14} 13}
15 14
16// Check if /cache is writeable 15$writableFolders = array('cache', 'db');
17if (! is_writable('cache')) { 16foreach ($writableFolders as $folder) {
18 die('The directory "cache" must be writeable by your web server user'); 17 if (! is_writable($folder)) {
19} 18 die('The directory "' . $folder . '" must be writeable by your web server user');
20 19 }
21// Check if /db is writeable
22if (! is_writable('db')) {
23 die('The directory "db" must be writeable by your web server user');
24} 20}
25 21
26// install folder still present, need to install wallabag 22// install folder still present, need to install wallabag