2 /****************************************************************/
\r
3 /* Atutor-OpenCaps Module
\r
4 /****************************************************************/
\r
5 /* Copyright (c) 2010
\r
6 /* Written by Antonio Gamba
\r
7 /* Adaptive Technology Resource Centre / University of Toronto
\r
9 /* This program is free software. You can redistribute it and/or
\r
10 /* modify it under the terms of the GNU General Public License
\r
11 /* as published by the Free Software Foundation.
\r
12 /****************************************************************/
\r
14 class AtOpenCapsDebug
\r
18 * Static function: shows AT session and cookie variables
\r
20 static public function _seeAlSessionVars()
\r
24 if (count($_SESSION) == 0)
\r
26 echo '<br/> Noting in $_SESSION ';
\r
29 echo '<h3>Displaying PHP $_SESSION and $_COOKIE variables</h3>';
\r
30 echo '<br/><p>$_SESSION vars</p>';
\r
31 while ($var = each($_SESSION))
\r
33 printf ("Key <b>%s</b> = <b>%s</b><br>", $var['key'], $var['value']);
\r
37 if (count($_COOKIE) == 0)
\r
39 echo '<br/> No cookies set';
\r
42 echo '<br/><br/><p>$_COOKIE vars</p>';
\r
43 while ($var1 = each($_COOKIE))
\r
45 printf ("Key <b>%s</b> = <b>%s</b><br>", $var1['key'], $var1['value']);
\r
49 } // end _seeAlSessionVars
\r
51 } // end AtOpenCapsDebug class
\r