/** * Returns the value of the $_REQUEST array. In PHP >= 4.1.0 it is defined as a mix * of the $_POST, $_GET and $_COOKIE arrays, but it didn't exist in earlier versions. * If we are running PHP < 4.1.0, then we will manually create it by merging the needed * arrays. * * @return An associative array containing the variables in the GET, POST and COOKIES header. * @static */ function getRequest() { if (phpversion() >= "4.1.0") { $requestVars = $_REQUEST; } else { $postVars = HttpVars::getPost(); $getVars = HttpVars::getGet(); $cookieVars = HttpVars::getCookie(); $requestVars = array_merge($getVars, $postVars, $cookieVars); } return $requestVars; }