Changeset 10018
- Timestamp:
- 12/03/2008 01:43:11 AM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/file.php
r9930 r10018 708 708 <h2><?php _e('Connection Information') ?></h2> 709 709 <p><?php _e('To perform the requested action, connection information is required.') ?></p> 710 710 711 <table class="form-table"> 711 712 <tr valign="top"> … … 713 714 <td><input name="hostname" type="text" id="hostname" value="<?php echo attribute_escape($hostname); if ( !empty($port) ) echo ":$port"; ?>"<?php if( defined('FTP_HOST') ) echo ' disabled="disabled"' ?> size="40" /></td> 714 715 </tr> 716 715 717 <tr valign="top"> 716 718 <th scope="row"><label for="username"><?php _e('Username') ?></label></th> 717 719 <td><input name="username" type="text" id="username" value="<?php echo attribute_escape($username) ?>"<?php if( defined('FTP_USER') ) echo ' disabled="disabled"' ?> size="40" /></td> 718 720 </tr> 721 719 722 <tr valign="top"> 720 723 <th scope="row"><label for="password"><?php _e('Password') ?></label></th> 721 724 <td><input name="password" type="password" id="password" value=""<?php if( defined('FTP_PASS') ) echo ' disabled="disabled"' ?> size="40" /><?php if( defined('FTP_PASS') && !empty($password) ) echo '<em>'.__('(Password not shown)').'</em>'; ?></td> 722 725 </tr> 726 723 727 <tr id="ssh_keys" valign="top" style="<?php if ( 'ssh' != $connection_type ) echo 'display:none' ?>"> 724 <th scope="row"><label id="keys" for="keys"><?php _e('Authentication Keys') ?></label></th> 725 <td><label for="public_key"><?php _e('Public Key:') ?></label ><input name="public_key" type="text" id="public_key" value=""<?php if( defined('FTP_PUBKEY') ) echo ' disabled="disabled"' ?> size="40" /> <label for="private_key"><?php _e('Private Key:') ?></label> <input name="private_key" type="text" id="private_key" value=""<?php if( defined('FTP_PRIKEY') ) echo ' disabled="disabled"' ?> size="40" /><br/><div><?php _e('Enter the location on the server where the keys are located. If a passphrase is needed, enter that in the password field above.') ?></div></td> 728 <th scope="row"><?php _e('Authentication Keys') ?> 729 <div class="key-labels textright"> 730 <label for="public_key"><?php _e('Public Key:') ?></label ><br /> 731 <label for="private_key"><?php _e('Private Key:') ?></label> 732 </div></th> 733 <td><br /><input name="public_key" type="text" id="public_key" value=""<?php if( defined('FTP_PUBKEY') ) echo ' disabled="disabled"' ?> size="40" /><br /><input name="private_key" type="text" id="private_key" value=""<?php if( defined('FTP_PRIKEY') ) echo ' disabled="disabled"' ?> size="40" /> 734 <div><?php _e('Enter the location on the server where the keys are located. If a passphrase is needed, enter that in the password field above.') ?></div></td> 726 735 </tr> 736 727 737 <tr valign="top"> 728 738 <th scope="row"><?php _e('Connection Type') ?></th> 729 739 <td> 730 <fieldset><legend class="hidden"><?php _e('Connection Type') ?> 731 < p><label><input id="ftp" name="connection_type" type="radio" value="ftp" <?php checked('ftp', $connection_type); if ( defined('FTP_SSL') || defined('FTP_SSH') ) echo ' disabled="disabled"'; ?>/> <?php _e('FTP') ?></label><br />740 <fieldset><legend class="hidden"><?php _e('Connection Type') ?></legend> 741 <label><input id="ftp" name="connection_type" type="radio" value="ftp" <?php checked('ftp', $connection_type); if ( defined('FTP_SSL') || defined('FTP_SSH') ) echo ' disabled="disabled"'; ?>/> <?php _e('FTP') ?></label><br /> 732 742 <label><input id="ftps" name="connection_type" type="radio" value="ftps" <?php checked('ftps', $connection_type); if ( defined('FTP_SSH') || defined('FTP_SSH') ) echo ' disabled="disabled"'; ?>/> <?php _e('FTPS (SSL)') ?></label><br /> 733 <?php if ( extension_loaded('ssh2') ) { ?><label><input id="ssh" name="connection_type" type="radio" value="ssh" <?php checked('ssh', $connection_type); if ( defined('FTP_SSL') || defined('FTP_SSH') ) echo ' disabled="disabled"'; ?>/> <?php _e('SSH') ?></label><?php } ?> </p>743 <?php if ( extension_loaded('ssh2') ) { ?><label><input id="ssh" name="connection_type" type="radio" value="ssh" <?php checked('ssh', $connection_type); if ( defined('FTP_SSL') || defined('FTP_SSH') ) echo ' disabled="disabled"'; ?>/> <?php _e('SSH') ?></label><?php } ?> 734 744 </fieldset> 735 745 </td> 736 746 </tr> 737 747 </table> 748 738 749 <?php if ( isset( $_POST['version'] ) ) : ?> 739 750 <input type="hidden" name="version" value="<?php echo attribute_escape($_POST['version']) ?>" /> -
trunk/wp-admin/wp-admin.css
r10017 r10018 2925 2925 width: 36px; 2926 2926 } 2927 2928 .key-labels label { 2929 line-height: 24px; 2930 }
Note: See TracChangeset
for help on using the changeset viewer.