ispman/ispman-web/cgi-bin/tmpl/users edit.tmpl, 1.17, 1.18
Joerg Delker <[email protected]> Mon, 20 Nov 2006 18:23:42 +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-serv5786/ispman-web/cgi-bin/tmpl/users
Modified Files:
edit.tmpl
Log Message:
fixed [ 1599834 ] illegal availableShells setting
Index: edit.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/users/edit.tmpl,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- edit.tmpl 21 Oct 2006 20:44:14 -0000 1.17
+++ edit.tmpl 20 Nov 2006 18:23:40 -0000 1.18
@@ -60,12 +60,10 @@
<td>Login Shell</td>
<td>
<perl>
- $usershell=$ispman->{'user'}{'loginShell'};
- @shells = split(' ', $ispman->getConf('availableShells'));
$text = "";
- if (@shells) {
+ if ( lc($ispman->getConf('availableShells')) ne "none" ) {
$text .= '<select name="loginShell">';
- foreach my $shell (@shells) {
+ foreach my $shell ( split(' ', $ispman->getConf('availableShells')) ) {
if ( $usershell eq $shell ) {
$text .= "<option value='" . $shell . "' selected>$shell</option>";
} else {
@@ -74,7 +72,7 @@
}
$text .= '</select>';
} else {
- $text .= "<b>$usershell</b>";
+ $text .= "<b>".$ispman->{'user'}{'loginShell'}."</b>";
}
$text
</perl>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV