Skip to content
Snippets Groups Projects
Commit 3d7760aa authored by Andreas Gohr's avatar Andreas Gohr
Browse files

update for updatecheck function

Messages are now displayed to all users if ACL is not enabled. The update-URL
changed to http://update.dokuwiki.org/check/

darcs-hash:20060917145025-7ad00-1d64b90e51c1a49567a28b132caf79ae0f124c8e.gz
parent 847c2f3b
No related branches found
No related tags found
No related merge requests found
2
The first line of this file contains a number, indicating
which notification messages should not be displayed. This
is the only information sent to dokuwiki.org when the
updatecheck option is enabled. You usually don't need to
change this number as it gets updated when you install the
new release - but to ignore a certain message set it's
number here.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* @author Andreas Gohr <andi@splitbrain.org> * @author Andreas Gohr <andi@splitbrain.org>
*/ */
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/'); if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/');
if(!defined('DOKU_MESSAGEURL')) define('DOKU_MESSAGEURL','http://www.splitbrain.org/lib/exe/msg.php?msg='); if(!defined('DOKU_MESSAGEURL')) define('DOKU_MESSAGEURL','http://update.dokuwiki.org/check/');
require_once(DOKU_INC.'inc/HTTPClient.php'); require_once(DOKU_INC.'inc/HTTPClient.php');
/** /**
...@@ -18,7 +18,7 @@ function checkUpdateMessages(){ ...@@ -18,7 +18,7 @@ function checkUpdateMessages(){
global $conf; global $conf;
global $INFO; global $INFO;
if(!$conf['updatecheck']) return; if(!$conf['updatecheck']) return;
if($INFO['perm'] < AUTH_ADMIN) return; if($conf['useacl'] && $INFO['perm'] < AUTH_ADMIN) return;
$cf = $conf['cachedir'].'/messages.txt'; $cf = $conf['cachedir'].'/messages.txt';
$lm = @filemtime($cf); $lm = @filemtime($cf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment