maCookies=$_COOKIE; switch($_SERVER["REQUEST_METHOD"]) { default: //$oSystem->oError->gsGenerateFinalError("forbidden.request"); break; case "GET": $this->masExternalData= $_GET; break; case "POST": if(sizeof($_POST)>0) { $this->masExternalData=&$_POST; $this->msRawPostData=$HTTP_RAW_POST_DATA;; } else { $this->msRawPostData=$HTTP_RAW_POST_DATA; $this->masExternalData=false; } break; case "HEAD": $this->masExternalData=&$_GET; break; } } function gsGetXML() { return $this->msRawPostData; } function gvGetCookieValue($sCookieName) { return $this->maCookies[$sCookieName]; } function gbSetCookie($sName,$sValue) { $_COOKIES[$sName]=$sValue; } function gvGetVariable($sName,$bBeStrict=true) { if (isset($this->masExternalData[$sName])) { return $this->masExternalData[$sName]; } else { if ($bBeStrict===true) { return false; } else return false; } } }