[Fusionforge-commits] r16036 - trunk/src/www/account

Franck VILLAUME nerville at fusionforge.org
Sun Jul 22 13:58:05 CEST 2012


Author: nerville
Date: 2012-07-22 13:58:05 +0200 (Sun, 22 Jul 2012)
New Revision: 16036

Modified:
   trunk/src/www/account/editsshkeys.php
Log:
missing file for #27 r16034 related

Modified: trunk/src/www/account/editsshkeys.php
===================================================================
--- trunk/src/www/account/editsshkeys.php	2012-07-22 09:37:51 UTC (rev 16035)
+++ trunk/src/www/account/editsshkeys.php	2012-07-22 11:58:05 UTC (rev 16036)
@@ -43,8 +43,8 @@
 
 use_javascript('/js/sortable.js');
 // not valid registration, or first time to page
-site_user_header(array('title'=>'Manage Authorized Keys'));
-echo '<form action="/account/?action=addsshkey" method="post">';
+site_user_header(array('title'=>_('Manage Authorized Keys')));
+echo '<form action="/account/?action=addsshkey" method="post" enctype="multipart/form-data" >';
 $sshKeysArray = $u->getAuthorizedKeys();
 if (count($sshKeysArray)) {
 	echo $HTML->boxTop(_('Available keys'));
@@ -73,11 +73,15 @@
 echo '<h2>'. _('Add a new ssh key').'</h2>';
 echo '<p>'. _('To avoid having to type your password every time for your CVS/SSH developer account, you may upload your public key(s) here and they will be placed on the server in your ~/.ssh/authorized_keys file. This is done by a cron job, so it may not happen immediately.  Please allow for a one hour delay.') . '</p>';
 echo '<p>'. _('To generate a public key, run the program \'ssh-keygen\' (you can use both protocol 1 or 2). The public key will be placed at \'~/.ssh/identity.pub\' (protocol version 1) and \'~/.ssh/id_dsa.pub\' or \'~/.ssh/id_rsa.pub\' (protocol version 2). Read the ssh documentation for further information on sharing keys.') . '</p>';
-echo '<p>'. _('Authorized keys:<br /><em>Important: Make sure there are no line breaks. After submitting, verify that the number of keys in your file is what you expected.</em>');
+echo '<p><em>'. _('Important: Make sure there are no line breaks. After submitting, verify that the number of keys in your file is what you expected.').'</em>';
 
 ?>
 <textarea rows="10" cols="80" name="authorized_key" style="width:90%;">
 </textarea></p>
+<?
+echo '<p>'. _('Or upload your \'~/.ssh/identity.pub\' (protocol version 1) or \'~/.ssh/id_dsa.pub\' or \'~/.ssh/id_rsa.pub\' (protocol version 2)') .'</p>';
+echo '<input type="file" name="uploaded_filekey" size="30" />';
+?>
 <p><input type="submit" name="submit" value="<?php echo _('Add'); ?>" /></p>
 </form>
 




More information about the Fusionforge-commits mailing list