Lines Matching +full:commit +full:- +full:message
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);
67 // show messages through the usual message mechanism
92 // First try to get date and commit hash by calling Git
94 $args = ['git', 'log', '-1', '--pretty=format:%h %cd', '--date=short'];
103 // we cannot use git on the shell -- let's do it manually!
113 $packedRefs = file_get_contents(DOKU_INC . '.git/packed-refs');
124 // Get commit date from Git object
129 $commit = zlib_decode(file_get_contents($gitCommitObject));
130 $committerLine = explode("\n", $commit)[3];
134 if ($ts && $date = date('Y-m-d', $ts)) {
152 * last commit. SHA is the short SHA of the last commit - this is only added on
158 * @return string The version string e.g. "Release 2023-04-04a"
199 * @return array an os-release array, might be empty
206 if (@file_exists('/etc/os-release')) {
208 $osRelease = $reader('/etc/os-release');
240 msg('Your PHP version is too old (' . phpversion() . ' vs. 8.2+ needed)', -1);
245 msg('Your PHP version is too old', -1);
250 if ($mem === -1) {
254 Increase memory_limit in php.ini', -1);
257 … you might encounter problems with bigger pages. Increase memory_limit in php.ini', -1);
269 msg('Changelog is not writable', -1);
277 msg('Importing old changelog failed', -1);
283 msg('Importoldchangelog plugin not disabled after import', -1);
290 msg('conf directory is not writable', -1);
309 msg('mb_string extension not available - PHP only replacements will be used', 0);
313 msg('PHP is missing UTF-8 support in Perl-Compatible Regular Expressions (PCRE)', -1);
316 …msg('PHP is missing Unicode properties support in Perl-Compatible Regular Expressions (PCRE)', -1);
321 msg('No valid locale is set for your PHP setup. You should fix this', -1);
323 msg('Your locale <code>' . hsc($loc) . '</code> seems not to be a UTF-8 locale,
330 …Debugging support is enabled. If you don\'t need it you should set $conf[\'allowdebug\'] = 0', -1);
338 $INPUT->server->str('REMOTE_USER'),
353 msg('The current page is not writable by the webserver', -1);
359 msg('The current page is not writable by you', -1);
385 -1
400 $http->max_redirect = 0;
401 $http->timeout = 3;
402 $http->sendRequest('https://www.dokuwiki.org', '', 'HEAD');
405 if (isset($http->resp_headers['date'])) {
406 $time = strtotime($http->resp_headers['date']);
407 $diff = $time - $now;
419 * Display a message to the user
421 * If HTTP headers were not sent yet the message is added
422 * to the global message array else it's printed directly
427 * @param string $message
428 * @param int $lvl -1 = error, 0 = info, 1 = success, 2 = notify
431 * @param int $allow who's allowed to see the message, see MSG_* constants
434 function msg($message, $lvl = 0, $line = '', $file = '', $allow = MSG_PUBLIC) argument
438 -1 => 'error',
445 'msg' => $message,
453 if ($evt->advise_before()) {
454 /* Show msg normally - event could suppress message show */
471 $evt->advise_after();
476 * Determine whether the current user is allowed to view the message
480 * msg => string, the message;
481 * lvl => int, level of the message (see msg() function);
482 …* allow => int, flag used to determine who is allowed to see the message, see MSG_* c…
489 // is the message public? - everyone and anyone can see it
527 echo "<!--\n";
529 echo "\n-->";
544 * @deprecated 2020-08-13
556 Logger::getInstance(Logger::LOG_DEBUG)->log(
588 $depth = count($backtrace) - 1;
617 $calls[$depth - $i] = sprintf(