Changeset 283 for trunk/dns.cgi
- Timestamp:
- 03/22/12 16:12:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r280 r283 330 330 if ($flag && ($permissions{admin} || $permissions{domain_edit})) { 331 331 my $stat = zoneStatus($dbh,$webvar{id},'n',$webvar{zonestatus}); 332 ##fixme switch to more consise "Enabled <domain"/"Disabled <domain>" as with users? 333 logaction($webvar{id}, $session->param("username"), 334 parentID($dbh, (id => $webvar{id}, type => 'domain', revrec => $webvar{revrec})), 335 "Changed ".domainName($dbh, $webvar{id})." state to ".($stat ? 'active' : 'inactive')); 336 $page->param(resultmsg => "Changed ".domainName($dbh, $webvar{id})." state to ". 337 ($stat ? 'active' : 'inactive')); 332 $page->param(resultmsg => $DNSDB::resultstr); 338 333 } else { 339 334 $page->param(errmsg => "You are not permitted to view or change the requested domain"); … … 450 445 if ($flag && ($permissions{admin} || $permissions{domain_edit})) { 451 446 my $stat = zoneStatus($dbh,$webvar{id},'y',$webvar{zonestatus}); 452 ##fixme switch to more consise "Enabled <domain"/"Disabled <domain>" as with users? 453 logaction($webvar{id}, $session->param("username"), 454 parentID($dbh, (id => $webvar{id}, type => 'revzone', revrec => $webvar{revrec})), 455 "Changed ".revName($dbh, $webvar{id})." state to ".($stat ? 'active' : 'inactive')); 456 $page->param(resultmsg => "Changed ".revName($dbh, $webvar{id})." state to ". 457 ($stat ? 'active' : 'inactive')); 447 $page->param(resultmsg => $DNSDB::resultstr); 458 448 } else { 459 449 $page->param(errmsg => "You are not permitted to view or change the requested reverse zone");
Note:
See TracChangeset
for help on using the changeset viewer.