$value) { switch($key) { case 'HTTP_POST_VARS': case '_POST': case 'HTTP_GET_VARS': case '_GET': case 'HTTP_COOKIE_VARS': case '_COOKIE': case 'HTTP_SERVER_VARS': case '_SERVER': case 'HTTP_ENV_VARS': case '_ENV': case 'HTTP_POST_FILES': case '_FILES': case '_REQUEST': case 'HTTP_SESSION_VARS': case '_SESSION': case 'GLOBALS': case 'key': case 'value': break; default: unset($GLOBALS[$key]); } } // Unset variables used in foreach unset($GLOBALS['key']); unset($GLOBALS['value']); } /** * Displays error messages and warnings * @param string $str message * @param boolean $fatal fatal error or only warning */ function do_err($str, $fatal = TRUE) { global $IND, $warnings; $level = $fatal ? 'FATAL ERROR:' : 'WARNING:'; echo '
'.$IND.'' . $level . ' ' .$str. "
\n"; if($fatal) { echo '