very simple debugging switch
authorDaniel Hromada <hromi@Aphrodité.(none)>
Wed, 26 Jan 2011 22:35:07 +0000 (23:35 +0100)
committerDaniel Hromada <hromi@Aphrodité.(none)>
Wed, 26 Jan 2011 22:35:07 +0000 (23:35 +0100)
wwwroot/debugswitch.php [new file with mode: 0644]

diff --git a/wwwroot/debugswitch.php b/wwwroot/debugswitch.php
new file mode 100644 (file)
index 0000000..ac1749d
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+if ($_SESSION['debugging']) {
+  $_SESSION['debugging']=false;
+  echo "debugging turned off; refresh to turn it on";
+} else {
+  $_SESSION['debugging']=true;
+  echo "debugging turned on; refresh to turn it off";
+}
+?>
This page took 0.116693 seconds and 4 git commands to generate.