Odyssey
debugging.i
1 <?php
2 
3  if ($_GET['verbose'] == 1) {
4  GLOBAL $m_verbose;
5  $m_verbose = TRUE;
6  }
7 
8  function printc($string_blob_to_print) { // print 'console'
9  GLOBAL $m_verbose;
10  if ($m_verbose) {
11  print $string_blob_to_print."<br>";
12  }
13  }
14 
15  function verbose_state () {
16  GLOBAL $m_verbose;
17  if ($m_verbose) { printc ("verbose: on"); }
18  }
19 ?>