mirror of
https://github.com/webmin/webmin.git
synced 2025-08-17 19:06:28 +00:00
Add tab categorization option
This commit is contained in:
@ -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";
|
||||
|
@ -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
|
||||
|
@ -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'}),
|
||||
|
Reference in New Issue
Block a user