Lines Matching refs:msg

69     foreach ($msgs as $msg) {
70 if ($msg) msg($msg, 2);
180 msg('DokuWiki version: ' . getVersion(), 1);
182 msg('Your PHP version is too old (' . phpversion() . ' vs. 7.4+ needed)', -1);
184 msg('PHP version ' . phpversion(), 1);
187 msg('Your PHP version is too old', -1);
193 msg('PHP memory is unlimited', 1);
195 msg('PHP is limited to less than 16MB RAM (' . filesize_h($mem) . ').
198 msg('PHP is limited to less than 20MB RAM (' . filesize_h($mem) . '),
201 msg('PHP is limited to less than 32MB RAM (' . filesize_h($mem) . '),
204 msg('More than 32MB RAM (' . filesize_h($mem) . ') available.', 1);
209 msg('Changelog is writable', 1);
211 msg('Changelog is not writable', -1);
215 msg('Old changelog exists', 0);
219 msg('Importing old changelog failed', -1);
221 msg('Importing old changelog now.', 0);
223 msg('Old changelog imported', 1);
225 msg('Importoldchangelog plugin not disabled after import', -1);
230 msg('conf directory is writable', 1);
232 msg('conf directory is not writable', -1);
238 msg('conf/users.auth.php is writable', 1);
240 msg('conf/users.auth.php is not writable', 0);
246 msg('mb_string extension is available but will not be used', 0);
248 msg('mb_string extension is available and will be used', 1);
250 msg('mb_string function overloading is enabled, this will cause problems and should be disabled', -1);
254 msg('mb_string extension not available - PHP only replacements will be used', 0);
258 msg('PHP is missing UTF-8 support in Perl-Compatible Regular Expressions (PCRE)', -1);
261 msg('PHP is missing Unicode properties support in Perl-Compatible Regular Expressions (PCRE)', -1);
266 msg('No valid locale is set for your PHP setup. You should fix this', -1);
268 msg('Your locale <code>' . hsc($loc) . '</code> seems not to be a UTF-8 locale,
271 msg('Valid locale ' . hsc($loc) . ' found.', 1);
275 msg('Debugging support is enabled. If you don\'t need it you should set $conf[\'allowdebug\'] = 0', -1);
277 msg('Debugging support is disabled', 1);
281 msg(sprintf(
286 msg('You are part of the groups ' . implode(', ', $INFO['userinfo']['grps']), 0);
288 msg('You are currently not logged in', 0);
291 msg('Your current permission for this page is ' . $INFO['perm'], 0);
294 msg('The current page is writable by the webserver', 1);
296 msg('The current page can be created by the webserver', 1);
298 msg('The current page is not writable by the webserver', -1);
302 msg('The current page is writable by you', 1);
304 msg('The current page is not writable by you', -1);
325 msg(
333 msg('The search index seems to be working', 1);
335 msg(
354 msg("Server time seems to be okay. Diff: {$diff}s", 1);
356 msg("Your server's clock seems to be out of sync!
378 function msg($message, $lvl = 0, $line = '', $file = '', $allow = MSG_PUBLIC)
389 'msg' => $message,
398 /* Show msg normally - event could suppress message show */
401 $msgdata['msg'] .= ' [' . $basename . ':' . $msgdata['line'] . ']';
410 echo "ERROR(" . $msgdata['lvl'] . ") " . $msgdata['msg'] . "\n";
421 * in the $msg data structure
423 * @param array $msg dokuwiki msg structure:
424 * msg => string, the message;
425 * lvl => int, level of the message (see msg() function);
429 function info_msg_allowed($msg)
434 if (empty($msg['allow']) || ($msg['allow'] == MSG_PUBLIC)) return true;
436 // restricted msg, but no authentication
439 switch ($msg['allow']) {
451 'invalid msg allow restriction. msg="' . $msg['msg'] . '" allow=' . $msg['allow'] . '"',
463 * @param string $msg
468 function dbg($msg, $hidden = false)
472 print_r($msg);
476 echo hsc(print_r($msg, true));
484 * @param string $msg
490 function dbglog($msg, $header = '')
494 // was the msg as single line string? use it as header
495 if ($header === '' && is_string($msg) && strpos($msg, "\n") === false) {
496 $header = $msg;
497 $msg = '';
502 $msg