@@ 186-193 (lines=8) @@ | ||
183 | $field_param2 = value_find_float($field_param2); |
|
184 | $default = (ustrlen($default) == 0 ? NULL : value_find_float($default)); |
|
185 | } |
|
186 | elseif ($field['field_type'] == FIELD_TYPE_STRING) |
|
187 | { |
|
188 | $regex_check = ustrcut($_REQUEST['regex_check'], MAX_FIELD_REGEX); |
|
189 | $regex_search = ustrcut($_REQUEST['regex_search'], MAX_FIELD_REGEX); |
|
190 | $regex_replace = ustrcut($_REQUEST['regex_replace'], MAX_FIELD_REGEX); |
|
191 | $default = ustrcut($_REQUEST['def_value'], $field_param1); |
|
192 | $default = (ustrlen($default) == 0 ? NULL : value_find_string($default)); |
|
193 | } |
|
194 | elseif ($field['field_type'] == FIELD_TYPE_MULTILINED) |
|
195 | { |
|
196 | $regex_check = ustrcut($_REQUEST['regex_check'], MAX_FIELD_REGEX); |
|
@@ 194-201 (lines=8) @@ | ||
191 | $default = ustrcut($_REQUEST['def_value'], $field_param1); |
|
192 | $default = (ustrlen($default) == 0 ? NULL : value_find_string($default)); |
|
193 | } |
|
194 | elseif ($field['field_type'] == FIELD_TYPE_MULTILINED) |
|
195 | { |
|
196 | $regex_check = ustrcut($_REQUEST['regex_check'], MAX_FIELD_REGEX); |
|
197 | $regex_search = ustrcut($_REQUEST['regex_search'], MAX_FIELD_REGEX); |
|
198 | $regex_replace = ustrcut($_REQUEST['regex_replace'], MAX_FIELD_REGEX); |
|
199 | $default = ustrcut($_REQUEST['def_value'], $field_param1); |
|
200 | $default = (ustrlen($default) == 0 ? NULL : value_find_multilined($default)); |
|
201 | } |
|
202 | elseif ($field['field_type'] == FIELD_TYPE_DATE) |
|
203 | { |
|
204 | $default = (is_null($default) ? NULL : ustr2int($default, MIN_FIELD_DATE, MAX_FIELD_DATE)); |