/** * Method overload to still accept old cbpaidsubscriptions prefixes * * gets an ESCAPED and urldecoded request parameter for the plugin * you need to call stripslashes to remove escapes, and htmlspecialchars before displaying. * * @param string $name name of parameter in REQUEST URL * @param string $def default value of parameter in REQUEST URL if none found * @param string $postfix postfix for identifying multiple pagings/search/sorts (optional) * @return string|array value of the parameter (urldecode processed for international and special chars) and ESCAPED! and ALLOW HTML! */ public function _getReqParam( $name, $def=null, $postfix="" ) { global $_GET, $_POST; $prefixedName = $this->_getPrefix($postfix) . $name; // can not do this as it $name can be in array form with '[]' : if ( isset( $_POST[$prefixedName] ) || isset( $_GET[$prefixedName] ) ) { if ( ( cbGetParam( $_POST, $prefixedName, false ) !== false ) || ( cbGetParam( $_GET, $prefixedName, false ) !== false ) ) { return parent::_getReqParam( $name, $def, $postfix ); } else { // legacy urls: $prefixedName = 'cbpaidsubscriptions' . $postfix . $name; $value = cbGetParam( $_POST, $prefixedName, false ); if ( $value !== false ) { $value = cbGetParam( $_POST, $prefixedName, $def ); } else { $value = cbGetParam( $_GET, $prefixedName, $def ); if ( $value && is_string( $value ) ) { $value = urldecode( $value ); } } return $value; } }