\n"; } } else { # Creating a user - show options for creating home directory, copying # skel files and creating in other modules if ($access{'makehome'} == 1 || $access{'copy'} == 1 || $access{'cothers'} == 1) { print &ui_table_start($text{'uedit_oncreate'}, "width=100%", 2, \@tds); # Create home dir if ($access{'makehome'} == 1) { print &ui_table_row( &hlink($text{'uedit_makehome'}, "makehome"), &ui_yesno_radio("makehome", 1)); } # Copy skel files if ($config{'user_files'} =~ /\S/ && $access{'copy'} == 1) { print &ui_table_row( &hlink($text{'uedit_copy'}, "copy_files"), &ui_yesno_radio("copy_files", 1)); } # Create in other modules if ($access{'cothers'} == 1) { print &ui_table_row( &hlink($text{'uedit_cothers'},"others"), &ui_yesno_radio("others", $config{'default_other'})); } print &ui_table_end(); } } if ($n ne "") { # Buttons for saving and other actions @buts = ( [ undef, $text{'save'} ] ); # List logins by user push(@buts, [ "list", $text{'uedit_logins'} ]); # Link to the mailboxes module, if installed if (&foreign_available("mailboxes") && &foreign_installed("mailboxes", 1)) { push(@buts, [ "mailboxes", $text{'uedit_mail'} ]); } # Link to Usermin for switching user if (&foreign_available("usermin") && &foreign_installed("usermin", 1) && (%uacl = &get_module_acl("usermin") && $uacl{'sessions'})) { # Link to Usermin module for switching to some user &foreign_require("usermin", "usermin-lib.pl"); local %uminiserv; &usermin::get_usermin_miniserv_config(\%uminiserv); if ($uminiserv{'session'}) { push(@buts, [ "switch", $text{'uedit_swit'}, undef, 0, "onClick='form.target=\"_blank\"'" ]); } } # Clone user if ($access{'ucreate'}) { push(@buts, [ "clone", $text{'uedit_clone'} ]); } # Delete user if ($access{'udelete'}) { push(@buts, [ "delete", $text{'delete'} ]); } print &ui_form_end(\@buts); } else { # Create button print &ui_form_end([ [ undef, $text{'create'} ] ]); } &ui_print_footer("index.cgi?mode=users", $text{'index_return'});