Changeset 287 for trunk/dns.cgi
- Timestamp:
- 03/26/12 16:59:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r286 r287 677 677 678 678 if ($code eq 'OK' || $code eq 'WARN') { 679 my $restr;680 if ($webvar{defrec} eq 'y') {681 $restr = "Added default record '$webvar{name} $typemap{$webvar{type}}";682 $restr .= " [distance $webvar{distance}]" if $typemap{$webvar{type}} eq 'MX';683 $restr .= " [priority $webvar{distance}] [weight $webvar{weight}] [port $webvar{port}]"684 if $typemap{$webvar{type}} eq 'SRV';685 $restr .= " $webvar{address}', TTL $webvar{ttl}";686 logaction(0, $session->param("username"), $webvar{parentid}, $restr);687 } else {688 $restr = "Added record '$webvar{name} $typemap{$webvar{type}}";689 $restr .= " [distance $webvar{distance}]" if $typemap{$webvar{type}} eq 'MX';690 $restr .= " [priority $webvar{distance}] [weight $webvar{weight}] [port $webvar{port}]"691 if $typemap{$webvar{type}} eq 'SRV';692 $restr .= " $webvar{address}', TTL $webvar{ttl}";693 logaction($webvar{parentid}, $session->param("username"),694 parentID($dbh, (id => $webvar{parentid}, type => 'domain', revrec => $webvar{revrec})), $restr);695 }696 679 my %pageparams = (page => "reclist", id => $webvar{parentid}, 697 680 defrec => $webvar{defrec}, revrec => $webvar{revrec}); 698 $pageparams{warnmsg} = $msg."<br><br>\n".$ restr if $code eq 'WARN';699 $pageparams{resultmsg} = $ restr if $code eq 'OK';681 $pageparams{warnmsg} = $msg."<br><br>\n".$DNSDB::resultstr if $code eq 'WARN'; 682 $pageparams{resultmsg} = $DNSDB::resultstr if $code eq 'OK'; 700 683 changepage(%pageparams); 701 684 } else {
Note:
See TracChangeset
for help on using the changeset viewer.