#!/usr/local/bin/perl # user_grace_form.cgi # Display a form for editing user grace times for some filesystem require './quota-lib.pl'; &ReadParse(); $access{'ugrace'} && &can_edit_filesys($in{'filesys'}) || &error($text{'ugracef_ecannot'}); &ui_print_header(undef, $text{'ugracef_title'}, "", "user_grace"); print "$text{'ugracef_info'}

\n"; @gr = &get_user_grace($in{'filesys'}); print "

\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "
",&text('ugracef_graces', $in{'filesys'}),"
$text{'ugracef_block'} \n"; if (&default_grace()) { printf " $text{'default'}\n", $gr[0] ? "" : "checked"; printf "\n", $gr[0] ? "checked" : ""; } print ""; &select_units("bunits", $gr[1]); print "
$text{'ugracef_file'} \n"; if (&default_grace()) { printf " $text{'default'}\n", $gr[2] ? "" : "checked"; printf "\n", $gr[2] ? "checked" : ""; } print ""; &select_units("funits", $gr[3]); print "
\n"; print "
\n"; &ui_print_footer("list_users.cgi?dir=".&urlize($in{'filesys'}), $text{'ugracef_return'}); sub select_units { @uarr = &grace_units(); print "\n"; }