[sork] Change to my username patch

Patrick Boutilier boutilpj at ednet.ns.ca
Mon Feb 24 16:53:41 PST 2003


Just in case anybody is using it. :-)

This version doesn't give the user the impression that they can change 
the username field.
-------------- next part --------------
*** passwd/templates/main/main.inc	2003-02-21 13:03:20.000000000 -0400
--- passwd.CVS/templates/main/main.inc	2003-01-20 21:28:36.000000000 -0400
*************** if (isset($conf['password']['maxlength']
*** 37,47 ****
  
  <tr>
    <td class="light" align="right"><b><?php echo _("Username:") ?></b></td>
!   <?php if ($conf['username']['change'] == 'true') : ?>
! 	  <td><input type="text" name="userid" value="<?php echo $userid ?>"></td>
!   <?php else : ?>
! 	  <td><input readonly type="text" name="userid" value="<?php echo $userid ?>"></td>
!   <?php endif; ?>
    <td width="15"><?php echo ($conf['user']['online_help'] && $browser->hasFeature('javascript')) ? Help::link('passwd', 'passwd-username') : '&nbsp;' ?></td>
  </tr>
  
--- 37,43 ----
  
  <tr>
    <td class="light" align="right"><b><?php echo _("Username:") ?></b></td>
!   <td><input type="text" name="userid" value="<?php echo $userid ?>"></td>
    <td width="15"><?php echo ($conf['user']['online_help'] && $browser->hasFeature('javascript')) ? Help::link('passwd', 'passwd-username') : '&nbsp;' ?></td>
  </tr>
  


More information about the sork mailing list