Changeset 1074 for trunk/wp-admin/options-misc.php
- Timestamp:
- 04/15/2004 07:53:45 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options-misc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-misc.php
r1058 r1074 45 45 <form name="form1" method="post" action="options.php"> 46 46 <input type="hidden" name="action" value="update" /> 47 <input type="hidden" name="action" value="update" /> <input type="hidden" name="page_options" value="'hack_file' " /> 47 <input type="hidden" name="action" value="update" /> <input type="hidden" name="page_options" value="'hack_file','use_fileupload','fileupload_realpath','fileupload_url','fileupload_allowedtypes','fileupload_maxk','fileupload_maxk'" /> 48 <fieldset class="options"> 49 <legend>File Uploads</legend> 50 <table width="100%" cellspacing="2" cellpadding="5" class="editform"> 51 <tr valign="top"> 52 <th scope="row"><label for="use_fileupload">Allow file uploads:</label></th> 53 <td> 54 <input name="use_fileupload" type="checkbox" id="use_fileupload" value="1" <?php checked('1', get_settings('use_fileupload')); ?> /> 55 </td> 56 </tr> 57 <tr valign="top"> 58 <th width="33%" scope="row"> Destination directory: </th> 59 <td> 60 <input name="fileupload_realpath" type="text" id="fileupload_realpath" value="<?php echo get_settings('fileupload_realpath'); ?>" size="50" /><br /> 61 Recommended: <code><?php echo ABSPATH . 'wp-content'; ?></code> 62 63 </td> 64 </tr> 65 <tr valign="top"> 66 <th scope="row">URI of this directory: </th> 67 <td> 68 <input name="fileupload_url" type="text" id="fileupload_url" value="<?php echo get_settings('fileupload_url'); ?>" size="50" /><br /> 69 Recommended: <code><?php echo get_settings('siteurl') . '/wp-content'; ?></code> 70 </td> 71 </tr> 72 <tr valign="top"> 73 <th scope="row">Maximum size: </th> 74 <td><input name="fileupload_maxk" type="text" id="fileupload_maxk" value="<?php echo get_settings('fileupload_maxk'); ?>" size="4"> 75 Kilobytes (KB)</td> 76 </tr> 77 <tr valign="top"> 78 <th scope="row">Allowed file extensions:</th> 79 <td><input name="fileupload_allowedtypes" type="text" id="fileupload_allowedtypes" value="<?php echo get_settings('fileupload_allowedtypes'); ?>" size="40"> 80 <br> 81 Recommended: <code>jpg jpeg png gif </code></td> 82 </tr> 83 <tr valign="top"> 84 <th scope="row">Minimum level to upload:</th> 85 <td><select name="fileupload_minlevel" id="fileupload_minlevel"> 86 <?php 87 for ($i = 0; $i < 11; $i++) { 88 if ($i == get_settings('fileupload_minlevel')) $selected = " selected='selected'"; 89 else $selected = ''; 90 echo "\n\t<option value='$i' $selected>$i</option>"; 91 } 92 ?> 93 </select></td> 94 </tr> 95 </table> 96 </fieldset> 48 97 <p> 49 98 <label>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)