~ubuntu-branches/ubuntu/quantal/dokuwiki/quantal

« back to all changes in this revision

Viewing changes to inc/infoutils.php

  • Committer: Package Import Robot
  • Author(s): Tanguy Ortolo
  • Date: 2012-01-26 23:10:28 UTC
  • mfrom: (1.1.14) (19.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20120126231028-gdcxrxo3j4jqp2de
Tags: 0.0.20120125-1
* New upstream release.
* debian/patches/debianize.diff: updated for the new release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    $lm = @filemtime($cf);
25
25
 
26
26
    // check if new messages needs to be fetched
27
 
    if($lm < time()-(60*60*24) || $lm < @filemtime(DOKU_INC.'doku.php')){
 
27
    if($lm < time()-(60*60*24) || $lm < @filemtime(DOKU_INC.DOKU_SCRIPT)){
28
28
        $http = new DokuHTTPClient();
29
29
        $http->timeout = 8;
30
30
        $data = $http->get(DOKU_MESSAGEURL.$updateVersion);
66
66
            $chunk = fread($fh,2000);
67
67
            fclose($fh);
68
68
            $chunk = trim($chunk);
69
 
            $chunk = array_pop(explode("\n",$chunk));   //last log line
70
 
            $chunk = array_shift(explode("\t",$chunk)); //strip commit msg
 
69
            $chunk = @array_pop(explode("\n",$chunk));   //last log line
 
70
            $chunk = @array_shift(explode("\t",$chunk)); //strip commit msg
71
71
            $chunk = explode(" ",$chunk);
72
72
            array_pop($chunk); //strip timezone
73
73
            $date = date('Y-m-d',array_pop($chunk));
175
175
        msg('Lockdir is not writable',-1);
176
176
    }
177
177
 
 
178
    if(is_writable(DOKU_CONF)){
 
179
        msg('conf directory is writable',1);
 
180
    }else{
 
181
        msg('conf directory is not writable',-1);
 
182
    }
 
183
 
178
184
    if($conf['authtype'] == 'plain'){
179
185
        global $config_cascade;
180
186
        if(is_writable($config_cascade['plainauth.users']['default'])){