ui-libifcation
authorJamie Cameron <jcameron@webmin.com>
Sun, 26 Apr 2009 22:22:07 +0000 (22:22 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 26 Apr 2009 22:22:07 +0000 (22:22 +0000)
sendmail/lang/en
sendmail/list_trusts.cgi

index 243c020..ba65f05 100644 (file)
@@ -170,7 +170,7 @@ masq_ecannot=You are not allowed to configure masquerading
 masq_domain=Masquerade as domain
 masq_domains=Domains to be masqueraded
 masq_ndomains=Domains not to masquerade
-masq_desc1=If a domain is given above, sendmail will alter the <tt>From</tt> address of all outgoing messages to appear to come from that domain. In addition, any email messages passing through your system from one of the hosts or domains listed to the left will also have their <tt>From</tt> addresses modified in the same way. Note that any domain masquerading defined here can be overriden for specific users using the <a href='$1'>Outgoing Addresses</a> page.
+masq_desc1=If a domain is given above, sendmail will alter the <tt>From</tt> address of all outgoing messages to appear to come from that domain. In addition, any email messages passing through your system from one of the hosts or domains listed below will also have their <tt>From</tt> addresses modified in the same way. Note that any domain masquerading defined here can be overriden for specific users using the <a href='$1'>Outgoing Addresses</a> page.
 masq_desc2=This feature can be useful if you want email from your system to appear to come from your domain name rather than your hostname, or if your system is the mail hub for number of other hosts running their own mailservers.
 masq_err=Failed to save domain masquerading
 masq_edomain='$1' is not a valid domain to masquerade as
@@ -180,7 +180,7 @@ masq_eip='$1' is an IP address, not a domain
 trusts_title=Trusted Users
 trusts_ecannot=You are not allowed to edit trusted users
 trusts_users=Local users trusted by sendmail
-trusts_desc=If a local user tries to send email, sendmail will only allow the user to provide a different <tt>From:</tt> address if the user is on the list to the left. This restriction exists to prevent users from forging email with faked <tt>From:</tt> addresses origination from your system.
+trusts_desc=If a local user tries to send email, sendmail will only allow the user to provide a different <tt>From:</tt> address if the user is on the list below. This restriction exists to prevent users from forging email with faked <tt>From:</tt> addresses origination from your system.
 trusts_err=Failed to save trusted users
 trusts_euser='$1' is not a valid user
 
index 532fb8b..c347706 100755 (executable)
@@ -9,17 +9,15 @@ $access{'trusts'} || &error($text{'trusts_ecannot'});
 $conf = &get_sendmailcf();
 @tlist = &get_file_or_config($conf, "t", "T");
 
-print "<form method=post action=save_trusts.cgi enctype=multipart/form-data>\n";
-print "<table cellpadding=5 width=100%><tr><td valign=top nowrap>\n";
-print "<b>$text{'trusts_users'}</b><br>\n";
-print "<textarea name=tlist rows=15 cols=30>",
-       join("\n", @tlist),"</textarea><br>\n";
-print "<input type=submit value=\"$text{'save'}\">\n";
-
-print "</td><td valign=top>\n";
 print $text{'trusts_desc'},"<p>\n";
-print "</td></tr></table>\n";
-print "</form>\n";
+
+print &ui_form_start("save_trusts.cgi", "form-data");
+print &ui_table_start(undef, undef, 2);
+print &ui_table_row(undef,
+       &ui_textarea("tlist", join("\n", @tlist), 15, 40).
+       &user_chooser_button("tlist", 1));
+print &ui_table_end();
+print &ui_form_end([ [ undef, $text{'save'} ] ]);
 
 &ui_print_footer("", $text{'index_return'});