$m) { $out .= sprintf("%-16s %-16s %-16s %s\n",$id,@$m['cmd'],@$m['seq'], @$m['dbg']); if(@$m['dbg']) $dbg++; } if($dbg) $out .= " [!] Markup rules possibly incompatible with PHP 5.5 or newer. Please contact the recipe maintainer for update or see www.pmwiki.org/wiki/PmWiki/CustomMarkup"; return $out; } $HandleActions['ruleset'] = 'HandleRuleset'; function HandleRuleset($pagename) { header("Content-type: text/plain"); print Ruleset(); } function StopWatchHTML($pagename, $print = 0) { global $StopWatch; StopWatch('now'); $l = strlen(count($StopWatch)); $out = '
'; foreach((array)$StopWatch as $i => $x) $out .= sprintf("%{$l}d: %s\n", $i, $x); $out .= ''; if (is_array($StopWatch)) array_pop($StopWatch); if ($print) print $out; return $out; }