A bunch of little errors, including a fix to the balancehash computation
[Trubanc.git] / client / debug.php
blob308a6ad3e48d2e0c940ecc1b2b953c899e3b74e3
1 <?php
3 // Toggle client debugging output
5 if (@$_COOKIE['debug']) {
6 setcookie('debug', false);
7 $msg = "Debugging disabled";
8 } else {
9 if (setcookie('debug', 'debug')) $msg = "Debugging enabled";
10 else $msg = "Can't enable debugging. Need cookies.";
14 <html>
15 <head>
16 <title>Toggle Trubanc Client Debugging</title>
17 </head>
18 <body>
19 <?php echo "$msg\n"; ?>
20 </body>
21 </html>