Changeset 23 for trunk/dns.cgi


Ignore:
Timestamp:
10/20/09 14:47:36 (15 years ago)
Author:
Kris Deugau
Message:

/trunk

checkpoint

  • basic group management functional
  • add readable failure messages on domain/group delete
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r22 r23  
    392392  if (!defined($webvar{del})) {
    393393    $page->param(del_getconf => 1);
    394     $page->param(groupname => groupName($dbh,$webvar{id}));
     394#    $page->param(groupname => groupName($dbh,$webvar{id}));
    395395# print some neato things?
    396396
     
    400400  } elsif ($webvar{del} eq 'ok') {
    401401    my ($code,$msg) = delGroup($dbh, $webvar{id});
     402push @debugbits, groupName($dbh, $webvar{id});
    402403    if ($code ne 'OK') {
    403404# need to find failure mode
     
    414415    changepage(page => "grpman");
    415416  }
    416 
     417  $page->param(delgroupname => groupName($dbh, $webvar{id}));
    417418}
    418419
     
    539540    $rec->{sid} = $webvar{sid};
    540541    $rec->{id} = $id;
     542    $rec->{distance} = 'n/a' unless ($rec->{type} eq 'MX' || $rec->{type} eq 'SRV');
     543    $rec->{weight} = 'n/a' unless ($rec->{type} eq 'SRV');
     544    $rec->{port} = 'n/a' unless ($rec->{type} eq 'SRV');
    541545    $row++;
    542546  }
    543547  $page->param(reclist => $foo2);
    544548}
     549
    545550
    546551# fill in record type list on add/update/edit record template
Note: See TracChangeset for help on using the changeset viewer.