40 $vars = array(
'_GET',
'_POST',
'_SESSION',
'_COOKIE',
'_SERVER');
43 foreach ($vars as $var) {
44 if (isset($GLOBALS[$var])) {
45 $arrayofvalues = $GLOBALS[$var];
47 if ($var ==
'_COOKIE') {
48 foreach ($arrayofvalues as $key => $val) {
49 if (preg_match(
'/^DOLSESSID_/', $key)) {
50 $arrayofvalues[$key] =
'*****hidden*****';
55 if ($var ==
'_SERVER') {
56 foreach ($arrayofvalues as $key => $val) {
57 if (preg_match(
'/^PHP_AUTH_PW/', $key)) {
58 $arrayofvalues[$key] =
'*****hidden*****';
62 $data[
"$".$var] = $this->getDataFormatter()->formatVar($arrayofvalues);