Add tab categorization option

This commit is contained in:
Jamie Cameron
2009-11-16 21:52:34 -08:00
parent b4abb02136
commit 6d24ba51fe
3 changed files with 10 additions and 0 deletions

View File

@ -104,6 +104,12 @@ foreach $t ( { 'desc' => $text{'user_themedef'} }, @themes) {
}
print "</select></td> </tr>\n";
print "<tr> <td valign=top><b>$text{'user_notabs'}</b></td>\n";
print "<td>",ui_radio("notabs", int($user->{'notabs'}),
[ [ 1, $text{'yes'} ],
[ 2, $text{'no'} ],
[ 0, $text{'default'} ] ]),"</td> </tr>\n";
print "<tr> <td valign=top><b>$text{'user_ips'}</b></td>\n";
print "<td>\n";
print "<input name=ipmode type=radio value=-1 checked> $text{'user_leave'}\n";

View File

@ -164,6 +164,7 @@ user_default=Server default
user_themedef=Default Webmin theme
user_ips=IP access control
user_allips=Allow from all addresses
user_notabs=Categorise modules?
user_allow=Only allow from listed addresses
user_deny=Deny from listed addresses
user_mods=Modules

View File

@ -99,6 +99,9 @@ foreach $h (@hosts) {
$user->{'sync'} = 0;
}
# Save module categorization setting
$user->{'notabs'} = $in{'notabs'};
# Work out which modules the user has
local @selmods = ( split(/\0/, $in{'mods1'}),
split(/\0/, $in{'mods2'}),