3 # Save a manually edit zone file
5 require './dns-lib.pl';
7 %access = &get_module_acl();
8 $zconf = &get_config()->[$in{'index'}];
9 &can_edit_zone(\%access, $zconf->{'values'}->[0]) ||
10 &error("You are not allowed to edit this zone");
11 $file = &absolute_path($zconf->{'values'}->[1]);
13 $in{'text'} =~ s/\r//g;
16 print FILE $in{'text'};
19 &webmin_log("text", undef, $zconf->{'values'}->[0], { 'file' => $file } );
20 &redirect("edit_master.cgi?index=$in{'index'}");