Changeset 286 for trunk/dns.cgi
- Timestamp:
- 03/23/12 13:25:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r285 r286 489 489 490 490 my ($code,$msg) = addRDNS($dbh, $webvar{revzone}, $webvar{revpatt}, $webvar{group}, 491 ($webvar{makeactive} eq 'on' ? 1 : 0), 492 (username => $session->param("username"), id => $session->param("uid")) ); 491 ($webvar{makeactive} eq 'on' ? 1 : 0)); 493 492 494 493 if ($code eq 'OK') { 495 logaction(0, $session->param("username"), $webvar{group}, "Added reverse zone $webvar{revzone}", $msg);496 494 changepage(page => "reclist", id => $msg, revrec => 'y'); 495 } elsif ($code eq 'WARN') { 496 changepage(page => "reclist", id => $msg, revrec => 'y', warnmsg => $DNSDB::resultstr); 497 497 } else { 498 logaction(0, $session->param("username"), $webvar{group}, "Failed adding reverse zone $webvar{revzone} ($msg)");499 498 $session->param('add_failed', 1); 500 499 changepage(page => "newrevzone", revzone => $webvar{revzone}, revpatt => $webvar{revpatt}, errmsg => $msg); … … 602 601 showzone($webvar{defrec}, $webvar{revrec}, $webvar{id}); 603 602 if ($webvar{defrec} eq 'n') { 604 # showzone('n',$webvar{id});605 ##fixme: permission for viewing logs?606 ##fixme: determine which slice of the log we view (group, domain, revzone)607 603 if ($webvar{revrec} eq 'n') { 608 604 $page->param(logdom => 1); … … 1868 1864 foreach my $sessme ('resultmsg','warnmsg','errmsg') { 1869 1865 if (my $tmp = $params{$sessme}) { 1866 $tmp =~ s/^\n//; 1870 1867 $tmp =~ s|\n|<br />\n|g; 1871 $session->param($sessme, $ params{$sessme});1868 $session->param($sessme, $tmp); 1872 1869 delete $params{$sessme}; 1873 1870 }
Note:
See TracChangeset
for help on using the changeset viewer.