#!/usr/local/bin/perl # edit_global.cgi # Display a form for editing some kind of global options require './proftpd-lib.pl'; &ReadParse(); $conf = &get_config(); $global = &find_directive_struct("Global", $conf); if ($global) { $gconf = $global->{'members'}; } &ui_print_header(undef, $text{"type_$in{'type'}"}, "", undef, undef, undef, undef, &restart_button()); print "
\n"; print "\n"; print "\n"; print "\n"; print "
",$text{"type_$in{'type'}"},"
\n"; @dirs = &editable_directives($in{'type'}, 'root'); &generate_inputs(\@dirs, $conf); @gdirs = &editable_directives($in{'type'}, 'global'); if (@dirs && @gdirs) { print "\n"; } &generate_inputs(\@gdirs, $gconf); print "

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