#!/usr/local/bin/perl
# expframe_form.cgi
# Display frame-forwarding HTML

require './virtual-server-lib.pl';
&ReadParse();
$d = &get_domain($in{'dom'});
&can_edit_domain($d) && &can_edit_forward() || &error($text{'edit_ecannot'});
&ui_print_header(&domain_in($d), $text{'expframe_title'}, "");

$ff = &framefwd_file($d);
print &text('expframe_desc', "<tt>$ff</tt>"),"<p>\n";

&switch_to_domain_user($d);
print &ui_form_start("save_expframe.cgi", "form-data");
print &ui_hidden("dom", $in{'dom'}),"\n";
print &ui_textarea("text", &read_file_contents($ff), 20, 80),"<p>\n";
print &ui_form_end([ [ "save", $text{'save'} ] ]);

&ui_print_footer(&domain_footer_link($d),
	"", $text{'index_return'});



syntax highlighted by Code2HTML, v. 0.9.1