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