* @copyright Curverider Ltd 2008 * @link http://elgg.org/ */ /** * Get some input from passed variables. * * @param $variable string The variable we want to return. * @param $default mixed A default value for the variable if it is not found. */ function get_input($variable, $default = "") { // TODO: Some nice filtering here if (isset($_REQUEST[$variable])) return trim($_REQUEST[$variable]); return $default; } ?>