Changeset 193 for trunk/dns.cgi
- Timestamp:
- 12/09/11 17:56:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r192 r193 347 347 348 348 if ($code eq 'OK') { 349 logaction($msg, $session->param("username"), $webvar{group}, "Added domain $webvar{domain}");349 # logaction($msg, $session->param("username"), $webvar{group}, "Added domain $webvar{domain}"); 350 350 changepage(page => "reclist", id => $msg); 351 351 } else { … … 519 519 if ($code eq 'OK') { 520 520 if ($webvar{defrec} eq 'y') { 521 my $restr = "Added default record '$webvar{name} $typemap{$webvar{type}} $webvar{address}', TTL $webvar{ttl}"; 521 my $restr = "Added default record '$webvar{name} $typemap{$webvar{type}}"; 522 $restr .= " [distance $dist]" if $typemap{$webvar{type}} eq 'MX'; 523 $restr .= " [priority $dist] [weight $weight] [port $port]" if $typemap{$webvar{type}} eq 'SRV'; 524 $restr .= " $webvar{address}', TTL $webvar{ttl}"; 522 525 logaction(0, $session->param("username"), $webvar{parentid}, $restr); 523 526 changepage(page => "reclist", id => $webvar{parentid}, defrec => $webvar{defrec}, resultmsg => $restr); 524 527 } else { 525 my $restr = "Added record '$webvar{name} $typemap{$webvar{type}} $webvar{address}', TTL $webvar{ttl}"; 528 my $restr = "Added record '$webvar{name} $typemap{$webvar{type}}". 529 $restr .= " [distance $dist]" if $typemap{$webvar{type}} eq 'MX'; 530 $restr .= " [priority $dist] [weight $weight] [port $port]" if $typemap{$webvar{type}} eq 'SRV'; 531 $restr .= " $webvar{address}', TTL $webvar{ttl}"; 526 532 logaction($webvar{parentid}, $session->param("username"), parentID($webvar{parentid}, 'dom', 'group'), $restr); 527 533 changepage(page => "reclist", id => $webvar{parentid}, defrec => $webvar{defrec}, resultmsg => $restr); … … 582 588 583 589 if ($code eq 'OK') { 590 ##fixme: retrieve old record info for full logging of change 584 591 if ($webvar{defrec} eq 'y') { 585 592 my $restr = "Updated default record from '$oldrec->{host} $typemap{$oldrec->{type}} $oldrec->{val}', TTL $oldrec->{ttl}\n".
Note:
See TracChangeset
for help on using the changeset viewer.