+ return $count;
+}
+
+// Setter for element in $_POST
+function setPostRequestElement ($element, $value) {
+ // Is $element or $value an array?
+ if (is_array($element)) {
+ // Set array
+ $eval = "\$GLOBALS['raw_request']['post']['";
+
+ // Add all entries
+ $eval .= implode("']['", $element);
+
+ // Finish eval() command
+ $eval .= sprintf("'] = \"%s\";", SQL_ESCAPE($value));
+
+ // And run it
+ eval($eval);
+ } elseif (is_array($value)) {
+ // Escape element
+ $element = SQL_ESCAPE($element);
+
+ // Value is an array so set it directly
+ $GLOBALS['raw_request']['post'][$element] = $value;
+ } else {
+ // Debug message
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',value=' . $value . ' - BEFORE!');
+
+ // Escape both
+ $element = SQL_ESCAPE($element);
+ $value = SQL_ESCAPE($value);
+
+ // Debug message
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',value=' . $value . ' - AFTER!');
+
+ // Set regular entry
+ $GLOBALS['raw_request']['post'][$element] = $value;
+ }
+
+ // Update cache
+ $GLOBALS['cache_request']['post'][$element][NULL] = $value;