+ if(isset($user_field_data['min']) && $user_field_data['max']) {\r
+ if(strlen($user_field_content) > $user_field_data['max']) {\r
+ if(isset($user_field_data['errors']['too_long'])) {\r
+ show_user_error($user_field_data['errors']['too_long']);\r
+ }\r
+ else {\r
+ show_fatal($err_indiv_errmsg_miss,array('ERRMSG' => 'too_long', 'INDIVIDUAL' => $user_field));\r
+ }\r
+ }\r
+ }\r
+\r
+ # Pruefung gegen frei definierbare Pruef-Funktion\r
+\r
+ if(isset($user_field_data['check']) && $user_field_data['check'] != '') {\r
+ if(function_exists($user_field_data['check']) && call_user_func($user_field_data['check'],$user_field_content) === false) {\r
+ if(isset($user_field_data['errors']['check_fail'])) {\r
+ show_user_error($user_field_data['errors']['check_fail']);\r
+ }\r
+ else {\r
+ show_fatal($err_indiv_errmsg_miss,array('ERRMSG' => 'check_fail', 'INDIVIDUAL' => $user_field));\r
+ }\r
+ }\r
+ }\r
+\r
+ # Pruefung gegen frei definierbaren regulaeren Ausdruck\r
+\r
+ if(isset($user_field_data['regex']) && $user_field_data['regex'] != '') {\r
+ if(!preg_match($user_field_data['regex'],$user_field_content)) {\r
+ if(isset($user_field_data['errors']['match_fail'])) {\r
+ show_user_error($user_field_data['errors']['match_fail']);\r
+ }\r
+ else {\r
+ show_fatal($err_indiv_errmsg_miss,array('ERRMSG' => 'match_fail', 'INDIVIDUAL' => $user_field));\r
+ }\r
+ }\r
+ }\r
+\r
+ # Formularfeld durch frei definierbare Funktion bearbeiten\r
+\r
+ if(isset($user_field_data['prepare']) && $user_field_data['prepare'] != '') {\r
+ if(function_exists($user_field_data['check'])) {\r
+ $user_field_content = call_user_func($user_field_data['prepare'],$user_field_content);\r
+ }\r
+ }\r
+\r
+ # Name der Template-Variable ermitteln\r
+\r
+ if(isset($user_field_data['tpl_var']) && $user_field_data['tpl_var'] != '') {\r
+ $tpl_var = $user_field_data['tpl_var'];\r
+ }\r
+ else {\r
+ $tpl_var = 'USER_'.$user_field;\r
+ }\r
+\r
+ # Fertige Formulardaten wegkopieren und fuer spaeter zur Verfuegung stellen\r
+\r
+ $prepared_user_fields[$tpl_var] = $user_field_content;\r
+ }\r