#!/usr/local/bin/perl # list_opts.cgi # Display global QMail options require './qmail-lib.pl'; &ui_print_header(undef, $text{'opts_title'}, ""); print "
\n"; print "\n"; print "\n"; print "
$text{'opts_title'}
\n"; print "\n", &get_control_file("me"); $helo = &get_control_file("helohost"); print "\n", $helo; $toconnect = &get_control_file("timeoutconnect"); print "\n", $toconnect, $text{'opts_secs'}; $toremote = &get_control_file("timeoutremote"); print "\n", $toremote, $text{'opts_secs'}; $bytes = &get_control_file("databytes"); print "\n", $bytes; $timeout = &get_control_file("timeoutsmtpd"); print "\n", $timeout, $text{'opts_secs'}; $localip = &get_control_file("localiphost"); print "\n", $localip; $greet = &get_control_file("smtpgreeting"); print "\n", $greet; print "
$text{'opts_me'} \n"; printf "
$text{'opts_helo'} \n"; printf " %s\n", $helo ? "" : "checked", $text{'default'}; printf "\n", $helo ? "checked" : ""; printf "
$text{'opts_toconnect'} \n"; printf " %s\n", $toconnect ? "" : "checked", $text{'default'}; printf "\n", $toconnect ? "checked" : ""; printf " %s$text{'opts_toremote'} \n"; printf " %s\n", $toremote ? "" : "checked", $text{'default'}; printf "\n", $toremote ? "checked" : ""; printf " %s
$text{'opts_bytes'} \n"; printf " %s\n", $bytes ? "" : "checked", $text{'opts_unlimited'}; printf "\n", $bytes ? "checked" : ""; printf " bytes$text{'opts_timeout'} \n"; printf " %s\n", $timeout ? "" : "checked", $text{'default'}; printf "\n", $timeout ? "checked" : ""; printf " %s
$text{'opts_localip'} \n"; printf " %s\n", $localip ? "" : "checked", $text{'default'}; printf "\n", $localip ? "checked" : ""; printf "
$text{'opts_greet'} \n"; printf " %s\n", $greet ? "" : "checked", $text{'default'}; printf "\n", $greet ? "checked" : ""; printf "

\n"; print "

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