+ $data['~name~'] = format_image_w_h<!--~thumb_w_h {~-->_thumb_w_h<!--~}~-->($_REQUEST['old_~name~']);
+ }
+ }<!--~}~--><!--~file_upload {~-->
+ $~name~_filename_tmp = $GLOBALS['~name~_file_name'];
+ if(!$~name~_filename_tmp) {
+ $~name~_filename_tmp = format_filename($_REQUEST['~name~']);
+ }
+ if($_FILES['~name~'] && $_FILES['~name~']['error'] == 0) {
+ $data['~name~'] = save_uploaded_file('~name~', $GLOBALS['upload_directory'] . $~name~_filename_tmp);
+ } else {
+ if($_REQUEST['delete_~name~'] == 'Yes') {
+ $data['~name~'] = '';
+ } else {
+ $data['~name~'] = format_path($_REQUEST['old_~name~']);