/**
* Initializes the input parameters array
*
* @param string $p_reqMethod
*/
private static function InitInput(&$p_reqMethod) {
self::TranslateMethod($p_reqMethod);
if (!isset($GLOBALS['CampRequestInput'][$p_reqMethod])) {
switch($p_reqMethod) {
case 'GET':
$input = &$_GET;
break;
case 'POST':
$input = &$_POST;
break;
case 'COOKIE':
$input = &$_COOKIE;
break;
case 'FILES':
$input = &$_FILES;
break;
case 'DEFAULT':
$input = array_merge($_COOKIE, $_REQUEST);
break;
default:
return;
}
require_once($GLOBALS['g_campsiteDir'].'/classes/Input.php');
$GLOBALS['CampRequestInput'][$p_reqMethod] = Input::CleanMagicQuotes($input);
}
}