Lines Matching +full:update +full:- +full:user +full:- +full:info -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)
19 define('DOKU_MESSAGEURL', 'https://update.dokuwiki.org/check/');
21 define('DOKU_MESSAGEURL', 'http://update.dokuwiki.org/check/');
33 global $INFO;
36 if ($conf['useacl'] && !$INFO['ismanager']) return;
43 if ($lm < time() - (60 * 60 * 24) || $lm < @filemtime(DOKU_INC . DOKU_SCRIPT)) {
53 $http->timeout = 12;
54 $resp = $http->get(DOKU_MESSAGEURL . $updateVersion);
60 Logger::debug("checkUpdateMessages(): unexpected HTTP response received", $http->error);
94 $commitInfo = shell_exec("git log -1 --pretty=format:'%h %cd' --date=short");
102 // we cannot use git on the shell -- let's do it manually!
112 $packedRefs = file_get_contents(DOKU_INC . '.git/packed-refs');
133 if ($ts && $date = date('Y-m-d', $ts)) {
140 $version['date'] = 'update version ' . $updateVersion;
151 * last commit. SHA is the short SHA of the last commit - this is only added on
154 * If no version can be determined "snapshot? update version XX" is returned.
155 * Where XX represents the update version number set in doku.php.
157 * @return string The version string e.g. "Release 2023-04-04a"
198 * @return array an os-release array, might be empty
205 if (@file_exists('/etc/os-release')) {
207 $osRelease = $reader('/etc/os-release');
232 global $INFO;
236 if ($INFO['isadmin'] || $INFO['ismanager']) {
239 msg('Your PHP version is too old (' . phpversion() . ' vs. 7.4+ needed)', -1);
244 msg('Your PHP version is too old', -1);
249 if ($mem === -1) {
253 Increase memory_limit in php.ini', -1);
256 … you might encounter problems with bigger pages. Increase memory_limit in php.ini', -1);
268 msg('Changelog is not writable', -1);
276 msg('Importing old changelog failed', -1);
282 msg('Importoldchangelog plugin not disabled after import', -1);
289 msg('conf directory is not writable', -1);
307 …('mb_string function overloading is enabled, this will cause problems and should be disabled', -1);
311 msg('mb_string extension not available - PHP only replacements will be used', 0);
315 msg('PHP is missing UTF-8 support in Perl-Compatible Regular Expressions (PCRE)', -1);
318 …msg('PHP is missing Unicode properties support in Perl-Compatible Regular Expressions (PCRE)', -1);
323 msg('No valid locale is set for your PHP setup. You should fix this', -1);
325 msg('Your locale <code>' . hsc($loc) . '</code> seems not to be a UTF-8 locale,
332 …Debugging support is enabled. If you don\'t need it you should set $conf[\'allowdebug\'] = 0', -1);
337 if (!empty($INFO['userinfo']['name'])) {
340 $INPUT->server->str('REMOTE_USER'),
341 $INFO['userinfo']['name']
343 msg('You are part of the groups ' . implode(', ', $INFO['userinfo']['grps']), 0);
348 msg('Your current permission for this page is ' . $INFO['perm'], 0);
350 if (file_exists($INFO['filepath']) && is_writable($INFO['filepath'])) {
352 } elseif (!file_exists($INFO['filepath']) && is_writable(dirname($INFO['filepath']))) {
355 msg('The current page is not writable by the webserver', -1);
358 if ($INFO['writable']) {
361 msg('The current page is not writable by you', -1);
387 -1
402 $http->max_redirect = 0;
403 $http->timeout = 3;
404 $http->sendRequest('https://www.dokuwiki.org', '', 'HEAD');
406 if (isset($http->resp_headers['date'])) {
407 $time = strtotime($http->resp_headers['date']);
408 $diff = $time - $now;
420 * Display a message to the user
429 * @param int $lvl -1 = error, 0 = info, 1 = success, 2 = notify
439 -1 => 'error',
440 0 => 'info',
454 if ($evt->advise_before()) {
455 /* Show msg normally - event could suppress message show */
472 $evt->advise_after();
477 * Determine whether the current user is allowed to view the message
488 global $INFO, $auth;
490 // is the message public? - everyone and anyone can see it
498 return !empty($INFO['userinfo']);
501 return $INFO['ismanager'];
504 return $INFO['isadmin'];
511 return $INFO['isadmin'];
528 echo "<!--\n";
530 echo "\n-->";
539 * Print info to debug log file
545 * @deprecated 2020-08-13
557 Logger::getInstance(Logger::LOG_DEBUG)->log(
589 $depth = count($backtrace) - 1;
618 $calls[$depth - $i] = sprintf(