#!/usr/local/bin/perl # batch_form.cgi # Display a form for doing batch creation, updates or deletion from a text file require './user-lib.pl'; %access = &get_module_acl(); $access{'batch'} || &error($text{'batch_ecannot'}); &ui_print_header(undef, $text{'batch_title'}, ""); print "$text{'batch_desc'}\n"; $pft = &passfiles_type(); print "

",$text{'batch_desc'.$pft},"

\n"; print "$text{'batch_descafter'}
\n"; print "$text{'batch_descafter2'}\n"; print "

\n"; print "\n"; print "\n"; if ($access{'cothers'} == 1 || $access{'mothers'} == 1 || $access{'dothers'} == 1) { print "\n"; printf "\n", $config{'default_other'} ? "" : "checked"; } print "\n"; print "\n"; if ($access{'makehome'}) { print "\n"; print "\n"; } if ($access{'copy'} && $config{'user_files'} =~ /\S/) { print "\n"; print "\n"; } if ($access{'movehome'}) { print "\n"; print "\n"; } if ($access{'chuid'}) { print "\n"; print "\n"; } if ($access{'chgid'}) { print "\n"; print "\n"; } print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "
$text{'batch_source'} \n"; print " ", "$text{'batch_source0'}
\n"; print " ", "$text{'batch_source1'} ", &file_chooser_button("local"),"
\n"; print " ", "$text{'batch_source2'}
", "
$text{'batch_others'} $text{'yes'}\n", $config{'default_other'} ? "checked" : ""; printf " $text{'no'}
$text{'batch_batch'} $text{'yes'}\n"; print " $text{'no'}
$text{'batch_makehome'} $text{'yes'}\n"; print " $text{'no'}
$text{'batch_copy'} $text{'yes'}\n"; print " $text{'no'}
$text{'batch_movehome'} $text{'yes'}\n"; print " $text{'no'}
$text{'batch_chuid'} $text{'no'}\n"; print " $text{'home'}\n"; print " ", "$text{'uedit_allfiles'}
$text{'batch_chgid'} $text{'no'}\n"; print " $text{'home'}\n"; print " ", "$text{'uedit_allfiles'}
$text{'batch_delhome'} $text{'yes'}\n"; print " $text{'no'}
$text{'batch_crypt'} $text{'yes'}\n"; print " $text{'no'}
\n"; &ui_print_footer("", $text{'index_return'});