#!/usr/local/bin/perl # conf_misc.cgi # Display other options require './samba-lib.pl'; # check acls &error_setup("$text{'eacl_aviol'}"); &error("$text{'eacl_np'} $text{'eacl_pcm'}") unless $access{'conf_misc'}; &ui_print_header(undef, $text{'misc_title'}, ""); &get_share("global"); print "
\n"; print "\n"; print "\n"; print "
$text{'misc_title'}
\n"; print "\n"; print "\n"; print "\n"; printf "\n", &istrue("getwd cache") ? "" : "checked"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; printf "\n", &getval("max log size"); print "\n"; printf "\n", &isfalse("read raw") ? "checked" : ""; print "\n"; printf "\n", &isfalse("write raw") ? "checked" : ""; print "\n"; printf "\n", &getval("read size"); print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; printf "\n", &getval("time offset"); print "\n"; printf "\n", &istrue("read prediction") ? "" : "checked"; print "
$text{'misc_debug'}$text{'misc_cachecall'} $text{'yes'}\n", &istrue("getwd cache") ? "checked" : ""; printf " $text{'no'}
$text{'misc_lockdir'}\n"; printf " $text{'default'}\n", &getval("lock directory") eq "" ? "checked" : ""; printf "  \n", &getval("lock directory") eq "" ? "" : "checked"; printf "\n", &getval("lock directory"); print &file_chooser_button("lock_directory", 1); print "
$text{'misc_log'}\n"; printf " $text{'default'}\n", &getval("log file") eq "" ? "checked" : ""; printf "  \n", &getval("log file") eq "" ? "" : "checked"; printf "\n", &getval("log file"); print &file_chooser_button("log_file", 0); print "
$text{'misc_maxlog'} $text{'default'}\n", &getval("max log size") eq "" ? "checked" : ""; printf "\n", &getval("max log size") eq "" ? "" : "checked"; printf "kB
$text{'misc_rawread'} $text{'yes'}\n", &isfalse("read raw") ? "" : "checked"; printf " $text{'no'}$text{'misc_rawwrite'} $text{'yes'}\n", &isfalse("write raw") ? "" : "checked"; printf " $text{'no'}
$text{'misc_overlapread'} $text{'default'}\n", &getval("read size") eq "" ? "checked" : ""; printf "\n", &getval("read size") eq "" ? "" : "checked"; printf "$text{'config_bytes'}
$text{'misc_chroot'}\n"; printf " $text{'config_none'}\n", &getval("root directory") eq "" ? "checked" : ""; printf "  \n", &getval("root directory") eq "" ? "" : "checked"; printf "\n", &getval("root directory"); print &file_chooser_button("root_directory", 1); print "
$text{'misc_smbrun'}\n"; printf " $text{'default'}\n", &getval("smbrun") eq "" ? "checked" : ""; printf "  \n", &getval("smbrun") eq "" ? "" : "checked"; printf "\n", &getval("smbrun"); print &file_chooser_button("smbrun", 0); print "
$text{'misc_clienttime'}$text{'config_mins'}$text{'misc_readprediction'} $text{'yes'}\n", &istrue("read prediction") ? "checked" : ""; printf " $text{'no'}

\n"; print "

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