Lines Matching +full:php +full:- +full:version
1 <?php
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);
76 * Return DokuWiki's version (split up in date and type)
82 $version = [];
83 //import version string
84 if (file_exists(DOKU_INC . 'VERSION')) {
86 $version['date'] = trim(io_readFile(DOKU_INC . 'VERSION'));
87 $version['type'] = 'Release';
89 $version['type'] = 'Git';
90 $version['date'] = 'unknown';
94 $args = ['git', 'log', '-1', '--pretty=format:%h %cd', '--date=short'];
97 [$version['sha'], $date] = explode(' ', $commitInfo);
98 $version['date'] = hsc($date);
99 return $version;
103 // we cannot use git on the shell -- let's do it manually!
113 $packedRefs = file_get_contents(DOKU_INC . '.git/packed-refs');
116 return $version;
122 $version['sha'] = $headCommit;
134 if ($ts && $date = date('Y-m-d', $ts)) {
135 $version['date'] = $date;
141 $version['date'] = 'update version ' . $updateVersion;
142 $version['type'] = 'snapshot?';
144 return $version;
148 * Return DokuWiki's version
150 * This returns the version in the form "Type Date (SHA)". Where type is either
152 * last commit. SHA is the short SHA of the last commit - this is only added on
155 * If no version can be determined "snapshot? update version XX" is returned.
156 * Where XX represents the update version number set in doku.php.
158 * @return string The version string e.g. "Release 2023-04-04a"
163 $version = getVersionData();
164 $sha = empty($version['sha']) ? '' : ' (' . $version['sha'] . ')';
165 return $version['type'] . ' ' . $version['date'] . $sha;
176 $data['php'] = 'PHP ' . PHP_VERSION;
199 * @return array an os-release array, might be empty
206 if (@file_exists('/etc/os-release')) {
208 $osRelease = $reader('/etc/os-release');
209 } elseif (@file_exists('/etc/synoinfo.conf') && @file_exists('/etc/VERSION')) {
212 $synoVersion = $reader('/etc/VERSION');
217 $osRelease['VERSION'] = $synoVersion['productversion'];
219 …$osRelease['PRETTY_NAME'] = implode(' ', [$osRelease['NAME'], $osRelease['VERSION'], $osRelease['S…
238 msg('DokuWiki version: ' . getVersion(), 1);
240 msg('Your PHP version is too old (' . phpversion() . ' vs. 8.2+ needed)', -1);
242 msg('PHP version ' . phpversion(), 1);
245 msg('Your PHP version is too old', -1);
250 if ($mem === -1) {
251 msg('PHP memory is unlimited', 1);
253 msg('PHP is limited to less than 16MB RAM (' . filesize_h($mem) . ').
254 Increase memory_limit in php.ini', -1);
256 msg('PHP is limited to less than 20MB RAM (' . filesize_h($mem) . '),
257 … you might encounter problems with bigger pages. Increase memory_limit in php.ini', -1);
259 msg('PHP is limited to less than 32MB RAM (' . filesize_h($mem) . '),
260 … but that should be enough in most cases. If not, increase memory_limit in php.ini', 0);
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);
296 msg('conf/users.auth.php is writable', 1);
298 msg('conf/users.auth.php is not writable', 0);
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;
428 * @param int $lvl -1 = error, 0 = info, 1 = success, 2 = notify
438 -1 => 'error',
453 if ($evt->advise_before()) {
454 /* Show msg normally - event could suppress message show */
471 $evt->advise_after();
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(