#!/usr/local/bin/perl # conf_print.cgi # Display printing options require './samba-lib.pl'; # check acls &error_setup("$text{'eacl_aviol'}"); &error("$text{'eacl_np'} $text{'eacl_pcprint'}") unless $access{'conf_print'}; &ui_print_header(undef, $text{'print_title'}, ""); &get_share("global"); print "
\n"; print "\n"; print "\n"; print "
$text{'print_title'}
\n"; print "\n"; print "\n"; print "\n"; printf "\n", &istrue("load printers") ? "" : "checked"; print "\n"; print "\n"; print "\n"; print "\n", &getval("lpq cache time"); print "
$text{'print_style'}$text{'print_show'} $text{'yes'}\n", &istrue("load printers") ? "checked" : ""; printf " $text{'no'}
$text{'print_printcap'}\n"; printf " $text{'default'}\n", &getval("printcap name") eq "" ? "checked" : ""; printf "   \n", &getval("printcap name") eq "" ? "" : "checked"; printf "\n", &getval("printcap name"); print &file_chooser_button("printcap_name", 0); print "
$text{'print_cachetime'}\n"; printf " $text{'default'}\n", &getval("lpq cache time") == 0 ? "checked" : ""; printf "   \n", &getval("lpq cache time") == 0 ? "" : "checked"; printf " $text{'config_secs'}

\n"; print "

\n"; &ui_print_footer("", $text{'index_sharelist'});