ispman/ispman-web/cgi-bin/tmpl/users edit.tmpl, 1.16, 1.17
Joerg Delker <[email protected]> Sat, 21 Oct 2006 20:44:16 +0000
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/users
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv30861/ispman-web/cgi-bin/tmpl/users
Modified Files:
edit.tmpl
Log Message:
implemented patch [ 1577319 ] Update to user shell selection
(thanks to s0undt3ch)
Index: edit.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/users/edit.tmpl,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- edit.tmpl 27 May 2006 16:27:29 -0000 1.16
+++ edit.tmpl 21 Oct 2006 20:44:14 -0000 1.17
@@ -59,11 +59,25 @@
<tr>
<td>Login Shell</td>
<td>
- <b><perl>$ispman->{'user'}->{"loginShell"} || "undefined"</perl></b>
- <!-- alternate input field to make loginShell editable
- <input size=35 type=text name=loginShell
- value="<perl>$ispman->{'user'}{'loginShell'}</perl>">
- -->
+ <perl>
+ $usershell=$ispman->{'user'}{'loginShell'};
+ @shells = split(' ', $ispman->getConf('availableShells'));
+ $text = "";
+ if (@shells) {
+ $text .= '<select name="loginShell">';
+ foreach my $shell (@shells) {
+ if ( $usershell eq $shell ) {
+ $text .= "<option value='" . $shell . "' selected>$shell</option>";
+ } else {
+ $text .= "<option value='" . $shell . "'>$shell</option>";
+ }
+ }
+ $text .= '</select>';
+ } else {
+ $text .= "<b>$usershell</b>";
+ }
+ $text
+ </perl>
</td>
</tr>
<tr>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642