aboutsummaryrefslogtreecommitdiff
path: root/scripts/diag.php
diff options
context:
space:
mode:
authorpmichaud <pmichaud@524c5546-5005-0410-9a3e-e25e191bd360>2004-07-17 17:35:01 +0000
committerpmichaud <pmichaud@524c5546-5005-0410-9a3e-e25e191bd360>2004-07-17 17:35:01 +0000
commitfba5f40fb3f5bb9a3b3b84742144c7216bb962c6 (patch)
tree205af51d669277c3ed97dd73ade4a9aa4ccdca94 /scripts/diag.php
parenta75ff5c31744426d5c4fe2a9adc46166e3158416 (diff)
downloadpmwiki.svn-fba5f40fb3f5bb9a3b3b84742144c7216bb962c6.tar.bz2
Changed markup scheme.
git-svn-id: svn://pmwiki.org/trunk/pmwiki@99 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/diag.php')
-rw-r--r--scripts/diag.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/diag.php b/scripts/diag.php
index 0d3886b0..6a936f1a 100644
--- a/scripts/diag.php
+++ b/scripts/diag.php
@@ -10,6 +10,8 @@
software authors when debugging PmWiki or other scripts.
*/
+ini_set('track_errors','1');
+
if ($action=='diag') {
header('Content-type: text/plain');
print_r($GLOBALS);
@@ -23,4 +25,20 @@ if (@$_REQUEST['redirect'])
$_SESSION['redirect'] = ($_REQUEST['redirect']!='n');
$EnableRedirect = @$_SESSION['redirect'];
+function Ruleset() {
+ global $MarkupTable;
+ $out = array();
+ BuildMarkupRules();
+ foreach($MarkupTable as $id=>$m)
+ $out[] = sprintf("%-16s %-16s",$id,@$m['seq']);
+ return implode("\n",$out);
+}
+
+$HandleActions['ruleset'] = 'HandleRuleset';
+
+function HandleRuleset($pagename) {
+ header("Content-type: text/plain");
+ print Ruleset();
+}
+
?>