|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /usr/libexec/webmin/postfix/ |
Upload File : |
#!/usr/bin/perl
#
# postfix-module by Guillaume Cottenceau <gc@mandrakesoft.com>,
# for webmin by Jamie Cameron
#
# Copyright (c) 2000 by Mandrakesoft
#
# Permission to use, copy, modify, and distribute this software and its
# documentation under the terms of the GNU General Public License is hereby
# granted. No representations are made about the suitability of this software
# for any purpose. It is provided "as is" without express or implied warranty.
# See the GNU General Public License for more details.
#
#
# Manages canonicals for Postfix
#
# << Here are all options seen in Postfix sample-canonical.cf >>
require './postfix-lib.pl';
$access{'canonical'} || &error($text{'canonical_ecannot'});
&ui_print_header(undef, $text{'canonical_title'}, "", "canonical");
# Start of canonical maps form
print &ui_form_start("save_opts_canonical.cgi");
print &ui_table_start($text{'canonical_title'}, "width=100%", 2);
&option_mapfield("canonical_maps", 60);
&option_mapfield("recipient_canonical_maps", 60);
&option_mapfield("sender_canonical_maps", 60);
print &ui_table_end();
print &ui_form_end([ [ undef, $text{'opts_save'} ] ]);
# Buttons to edit the three map types
print &ui_hr();
print &ui_form_start("canonical_edit.cgi");
print "$text{'edit_canonical_maps_general'}<p>\n";
print &ui_submit($text{'edit_canonical_maps'}, "which1");
print &ui_submit($text{'edit_recipient_canonical_maps'}, "which2");
print &ui_submit($text{'edit_sender_canonical_maps'}, "which3");
print &ui_form_end();
&ui_print_footer("", $text{'index_return'});