+++ /dev/null
-<?php\r
-/****************************************************************/\r
-/* Atutor-OpenCaps Module \r
-/****************************************************************/\r
-/* Copyright (c) 2010 \r
-/* Written by Antonio Gamba \r
-/* Adaptive Technology Resource Centre / University of Toronto\r
-/*\r
-/* This program is free software. You can redistribute it and/or\r
-/* modify it under the terms of the GNU General Public License\r
-/* as published by the Free Software Foundation.\r
-/****************************************************************/\r
-\r
-class AtOpenCapsDebug\r
-{\r
-\r
- /**\r
- * Static function: shows AT session and cookie variables \r
- */\r
- static public function _seeAlSessionVars()\r
- {\r
- // trace $_SESSION\r
- \r
- if (count($_SESSION) == 0)\r
- {\r
- echo '<br/> Noting in $_SESSION ';\r
- } else {\r
- \r
- echo '<h3>Displaying PHP $_SESSION and $_COOKIE variables</h3>';\r
- echo '<br/><p>$_SESSION vars</p>';\r
- while ($var = each($_SESSION))\r
- {\r
- printf ("Key <b>%s</b> = <b>%s</b><br>", $var['key'], $var['value']);\r
- } \r
- }\r
- \r
- if (count($_COOKIE) == 0)\r
- {\r
- echo '<br/> No cookies set';\r
- } else {\r
- \r
- echo '<br/><br/><p>$_COOKIE vars</p>';\r
- while ($var1 = each($_COOKIE))\r
- {\r
- printf ("Key <b>%s</b> = <b>%s</b><br>", $var1['key'], $var1['value']);\r
- } \r
- }\r
- echo '<br/><br/>';\r
- } // end _seeAlSessionVars\r
- \r
-} // end AtOpenCapsDebug class\r
-?>
\ No newline at end of file