Changeset 1108 for trunk/wp-admin/upload.php
- Timestamp:
- 04/20/2004 10:56:47 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload.php
r1091 r1108 12 12 $allowed_types = explode(' ', trim(strtolower(get_settings('fileupload_allowedtypes')))); 13 13 14 if ($ HTTP_POST_VARS['submit']) {14 if ($_POST['submit']) { 15 15 $action = 'upload'; 16 16 } else { … … 83 83 84 84 85 $imgalt = (isset($ HTTP_POST_VARS['imgalt'])) ? $HTTP_POST_VARS['imgalt'] : $imgalt;86 87 $img1_name = (strlen($imgalt)) ? $ HTTP_POST_VARS['imgalt'] : $HTTP_POST_FILES['img1']['name'];88 $img1_type = (strlen($imgalt)) ? $ HTTP_POST_VARS['img1_type'] : $HTTP_POST_FILES['img1']['type'];89 $imgdesc = str_replace('"', '"', $ HTTP_POST_VARS['imgdesc']);85 $imgalt = (isset($_POST['imgalt'])) ? $_POST['imgalt'] : $imgalt; 86 87 $img1_name = (strlen($imgalt)) ? $_POST['imgalt'] : $HTTP_POST_FILES['img1']['name']; 88 $img1_type = (strlen($imgalt)) ? $_POST['img1_type'] : $HTTP_POST_FILES['img1']['type']; 89 $imgdesc = str_replace('"', '"', $_POST['imgdesc']); 90 90 91 91 $imgtype = explode(".",$img1_name); … … 98 98 if (strlen($imgalt)) { 99 99 $pathtofile = get_settings('fileupload_realpath')."/".$imgalt; 100 $img1 = $ HTTP_POST_VARS['img1'];100 $img1 = $_POST['img1']; 101 101 } else { 102 102 $pathtofile = get_settings('fileupload_realpath')."/".$img1_name; … … 182 182 } 183 183 184 if($ HTTP_POST_VARS['thumbsize'] != 'none' ) {185 if($ HTTP_POST_VARS['thumbsize'] == 'small') {184 if($_POST['thumbsize'] != 'none' ) { 185 if($_POST['thumbsize'] == 'small') { 186 186 $max_side = 200; 187 187 } 188 elseif($ HTTP_POST_VARS['thumbsize'] == 'large') {188 elseif($_POST['thumbsize'] == 'large') { 189 189 $max_side = 400; 190 190 } 191 elseif($ HTTP_POST_VARS['thumbsize'] == 'custom') {192 $max_side = $ HTTP_POST_VARS['imgthumbsizecustom'];191 elseif($_POST['thumbsize'] == 'custom') { 192 $max_side = $_POST['imgthumbsizecustom']; 193 193 } 194 194
Note: See TracChangeset
for help on using the changeset viewer.