summaryrefslogtreecommitdiff
path: root/include/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-14 09:38:56 +0400
committerAndrew Dolgov <[email protected]>2011-12-14 09:38:56 +0400
commit2604ad7d948117667550f9c487d6430a5c030d0b (patch)
tree43f3db68103e3947f4d00070eb042c4c79b807c0 /include/sanity_check.php
parent09e8bdfd18f81e432c5f392e398b8c8088168721 (diff)
add test for LOCK_DIRECTORY
Diffstat (limited to 'include/sanity_check.php')
-rw-r--r--include/sanity_check.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php
index aebe4f89d..224c13e9f 100644
--- a/include/sanity_check.php
+++ b/include/sanity_check.php
@@ -63,6 +63,10 @@
$err_msg = "ICONS_DIR defined in config.php is not writable (chmod -R 777 ".ICONS_DIR.").\n";
}
+ if (!is_writable(LOCK_DIRECTORY)) {
+ $err_msg = "LOCK_DIRECTORY defined in config.php is not writable (chmod -R 777 ".LOCK_DIRECTORY.").\n";
+ }
+
if (ini_get("open_basedir")) {
$err_msg = "PHP configuration option open_basedir is not supported. Please disable this in PHP settings file (php.ini).";
}