diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-11-27 10:50:03 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-11-27 10:50:03 +0100 |
commit | 560f6ea3cdac2767863c3be3a9e7933b6e37e88f (patch) | |
tree | 6f51d4b3402458e4de1a596b93ec752c8ac747b2 /inc/infoutils.php | |
parent | e0dd04a6493f1b7f7133f75c08f9ea55ee8bd50a (diff) | |
parent | c66c7229a0dfc4f9f06dadda98408679fa7a18d6 (diff) | |
download | rpg-560f6ea3cdac2767863c3be3a9e7933b6e37e88f.tar.gz rpg-560f6ea3cdac2767863c3be3a9e7933b6e37e88f.tar.bz2 |
Merge branch 'master' into bcrypt
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r-- | inc/infoutils.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index f1deec66b..2b8486906 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -24,7 +24,7 @@ function checkUpdateMessages(){ $lm = @filemtime($cf); // check if new messages needs to be fetched - if($lm < time()-(60*60*24) || $lm < @filemtime(DOKU_INC.'doku.php')){ + if($lm < time()-(60*60*24) || $lm < @filemtime(DOKU_INC.DOKU_SCRIPT)){ $http = new DokuHTTPClient(); $http->timeout = 8; $data = $http->get(DOKU_MESSAGEURL.$updateVersion); @@ -175,6 +175,12 @@ function check(){ msg('Lockdir is not writable',-1); } + if(is_writable(DOKU_CONF)){ + msg('conf directory is writable',1); + }else{ + msg('conf directory is not writable',-1); + } + if($conf['authtype'] == 'plain'){ global $config_cascade; if(is_writable($config_cascade['plainauth.users']['default'])){ |