Added a button for manually editing the aliases file

This commit is contained in:
Jamie Cameron
2007-11-15 22:24:26 +00:00
parent 03e29dcca5
commit 6065d500e6
2 changed files with 15 additions and 7 deletions

View File

@@ -46,3 +46,4 @@ Added a popup window for selecting a map source, rather than having to type in s
Maps in MySQL and LDAP databases can be viewed and edited in the same way that those in regular files are, if the appropriate Perl modules are installed (DBI and DBD::mysql for MySQL, or Net::LDAP for LDAP). This also applies to email aliases.
---- Changes since 1.380 ----
Fixed a bug that prevented comments and manual map editing, and added back support for PCRE maps.
Added a button for manually editing the aliases file.

View File

@@ -86,13 +86,20 @@ else {
print &ui_links_row(\@links);
print &ui_form_end([ [ "delete", $text{'aliases_delete'} ] ]);
# new alias form
print "<table cellpadding=5 width=100%><tr><td>\n";
print "<form action=edit_alias.cgi>\n";
print "<input type=hidden name=new value=1>\n";
print "<input type=submit value=\"$text{'new_alias'}\">\n";
print "</td> <td width=\"99%\">$text{'new_aliasmsg'}\n";
print "</td></tr></table></form>\n";
# new alias button
print &ui_buttons_start();
print &ui_buttons_row("edit_alias.cgi", $text{'new_alias'},
$text{'new_aliasmsg'},
&ui_hidden("new", 1));
# manual edit button
if ($access{'manual'} && &can_map_manual($_[0])) {
print &ui_buttons_row("edit_manual.cgi", $text{'new_manual'},
$text{'new_manualmsg'},
&ui_hidden("map_name", "alias_maps"));
}
print &ui_buttons_end();
&ui_print_footer("", $text{'index_return'});