Lines Matching defs:msg
69 foreach ($msgs as $msg) {
70 if ($msg) msg($msg, 2);
234 msg('DokuWiki version: ' . getVersion(), 1);
236 msg('Your PHP version is too old (' . phpversion() . ' vs. 7.4+ needed)', -1);
238 msg('PHP version ' . phpversion(), 1);
241 msg('Your PHP version is too old', -1);
247 msg('PHP memory is unlimited', 1);
249 msg('PHP is limited to less than 16MB RAM (' . filesize_h($mem) . ').
252 msg('PHP is limited to less than 20MB RAM (' . filesize_h($mem) . '),
255 msg('PHP is limited to less than 32MB RAM (' . filesize_h($mem) . '),
258 msg('More than 32MB RAM (' . filesize_h($mem) . ') available.', 1);
263 msg('Changelog is writable', 1);
265 msg('Changelog is not writable', -1);
269 msg('Old changelog exists', 0);
273 msg('Importing old changelog failed', -1);
275 msg('Importing old changelog now.', 0);
277 msg('Old changelog imported', 1);
279 msg('Importoldchangelog plugin not disabled after import', -1);
284 msg('conf directory is writable', 1);
286 msg('conf directory is not writable', -1);
292 msg('conf/users.auth.php is writable', 1);
294 msg('conf/users.auth.php is not writable', 0);
300 msg('mb_string extension is available but will not be used', 0);
302 msg('mb_string extension is available and will be used', 1);
304 msg('mb_string function overloading is enabled, this will cause problems and should be disabled', -1);
308 msg('mb_string extension not available - PHP only replacements will be used', 0);
312 msg('PHP is missing UTF-8 support in Perl-Compatible Regular Expressions (PCRE)', -1);
315 msg('PHP is missing Unicode properties support in Perl-Compatible Regular Expressions (PCRE)', -1);
320 msg('No valid locale is set for your PHP setup. You should fix this', -1);
322 msg('Your locale <code>' . hsc($loc) . '</code> seems not to be a UTF-8 locale,
325 msg('Valid locale ' . hsc($loc) . ' found.', 1);
329 msg('Debugging support is enabled. If you don\'t need it you should set $conf[\'allowdebug\'] = 0', -1);
331 msg('Debugging support is disabled', 1);
335 msg(sprintf(
340 msg('You are part of the groups ' . implode(', ', $INFO['userinfo']['grps']), 0);
342 msg('You are currently not logged in', 0);
345 msg('Your current permission for this page is ' . $INFO['perm'], 0);
348 msg('The current page is writable by the webserver', 1);
350 msg('The current page can be created by the webserver', 1);
352 msg('The current page is not writable by the webserver', -1);
356 msg('The current page is writable by you', 1);
358 msg('The current page is not writable by you', -1);
379 msg(
387 msg('The search index seems to be working', 1);
389 msg(
408 msg("Server time seems to be okay. Diff: {$diff}s", 1);
410 msg("Your server's clock seems to be out of sync!
432 function msg($message, $lvl = 0, $line = '', $file = '', $allow = MSG_PUBLIC)
443 'msg' => $message,
452 /* Show msg normally - event could suppress message show */
455 $msgdata['msg'] .= ' [' . $basename . ':' . $msgdata['line'] . ']';
464 echo "ERROR(" . $msgdata['lvl'] . ") " . $msgdata['msg'] . "\n";
475 * in the $msg data structure
477 * @param array $msg dokuwiki msg structure:
478 * msg => string, the message;
479 * lvl => int, level of the message (see msg() function);
483 function info_msg_allowed($msg)
488 if (empty($msg['allow']) || ($msg['allow'] == MSG_PUBLIC)) return true;
490 // restricted msg, but no authentication
493 switch ($msg['allow']) {
505 'invalid msg allow restriction. msg="' . $msg['msg'] . '" allow=' . $msg['allow'] . '"',
517 * @param string $msg
522 function dbg($msg, $hidden = false)
526 print_r($msg);
530 echo hsc(print_r($msg, true));
538 * @param string $msg
544 function dbglog($msg, $header = '')
548 // was the msg as single line string? use it as header
549 if ($header === '' && is_string($msg) && strpos($msg, "\n") === false) {
550 $header = $msg;
551 $msg = '';
556 $msg