Changeset 3209 for trunk/wp-admin/options-misc.php
- Timestamp:
- 11/25/2005 04:44:53 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options-misc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-misc.php
r3112 r3209 12 12 <h2><?php _e('Miscellaneous Options') ?></h2> 13 13 <form method="post" action="options.php"> 14 <fieldset class="options">15 <legend>16 <input name="use_fileupload" type="checkbox" id="use_fileupload" value="1" <?php checked('1', get_settings('use_fileupload')); ?> />17 <label for="use_fileupload"><?php _e('Allow File Uploads') ?></label></legend>18 <table width="100%" cellspacing="2" cellpadding="5" class="editform">19 <tr>20 <th width="33%" valign="top" scope="row"><?php _e('Destination directory:') ?> </th>21 <td>22 <input name="fileupload_realpath" type="text" id="fileupload_realpath" value="<?php form_option('fileupload_realpath'); ?>" size="50" /><br />23 <?php printf(__('Recommended: <code>%s</code>'), ABSPATH . 'wp-content') ?>24 25 </td>26 </tr>27 <tr>28 <th valign="top" scope="row"><?php _e('URI of this directory:') ?> </th>29 <td>30 <input name="fileupload_url" type="text" id="fileupload_url" value="<?php form_option('fileupload_url'); ?>" size="50" /><br />31 <?php printf(__('Recommended: <code>%s</code>'), get_settings('siteurl') . '/wp-content') ?>32 </td>33 </tr>34 <tr>35 <th scope="row"><?php _e('Maximum size:') ?> </th>36 <td><input name="fileupload_maxk" type="text" id="fileupload_maxk" value="<?php form_option('fileupload_maxk'); ?>" size="4" />37 <?php _e('Kilobytes (KB)') ?></td>38 </tr>39 <tr>40 <th valign="top" scope="row"><?php _e('Allowed file extensions:') ?></th>41 <td><input name="fileupload_allowedtypes" type="text" id="fileupload_allowedtypes" value="<?php form_option('fileupload_allowedtypes'); ?>" size="40" />42 <br />43 <?php _e('Recommended: <code>jpg jpeg png gif</code>') ?></td>44 </tr>45 <tr>46 <th scope="row"><?php _e('Minimum level to upload:') ?></th>47 <td><select name="fileupload_minlevel" id="fileupload_minlevel">48 <?php49 for ($i = 1; $i < 11; $i++) {50 if ($i == get_settings('fileupload_minlevel')) $selected = " selected='selected'";51 else $selected = '';52 echo "\n\t<option value='$i' $selected>$i</option>";53 }54 ?>55 </select></td>56 </tr>57 </table>58 </fieldset>59 14 <p><input name="use_linksupdate" type="checkbox" id="use_linksupdate" value="1" <?php checked('1', get_settings('use_linksupdate')); ?> /> 60 15 <label for="use_linksupdate"><?php _e('Track Links’ Update Times') ?></label></p> … … 64 19 <p class="submit"> 65 20 <input type="hidden" name="action" value="update" /> 66 <input type="hidden" name="page_options" value="hack_file,use_ fileupload,fileupload_realpath,fileupload_url,fileupload_allowedtypes,fileupload_maxk,fileupload_maxk,fileupload_minlevel,use_geo_positions,use_linksupdate" />21 <input type="hidden" name="page_options" value="hack_file,use_linksupdate" /> 67 22 <input type="submit" name="Submit" value="<?php _e('Update Options') ?> »" /> 68 23 </p>
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)