Changeset 397 for trunk/dns.cgi
- Timestamp:
- 10/02/12 18:15:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r392 r397 1870 1870 $page->param(ttl => $soa->{ttl}); 1871 1871 1872 my $foo2 = getDomRecs($dbh, $def,$rev,$id,$perpage,$webvar{offset},$sortby,$sortorder,$filter);1873 1874 my $row = 0; 1872 my $foo2 = getDomRecs($dbh,(defrec => $def, revrec => $rev, id => $id, offset => $webvar{offset}, 1873 sortby => $sortby, sortorder => $sortorder, filter => $filter)); 1874 1875 1875 foreach my $rec (@$foo2) { 1876 1876 $rec->{type} = $typemap{$rec->{type}}; 1877 $rec->{row} = $row % 2;1878 $rec->{defrec} = $def;1879 $rec->{revrec} = $rev;1880 1877 $rec->{sid} = $webvar{sid}; 1881 $rec->{id} = $id;1882 1878 $rec->{fwdzone} = $rev eq 'n'; 1883 1879 $rec->{distance} = 'n/a' unless ($rec->{type} eq 'MX' || $rec->{type} eq 'SRV'); 1884 1880 $rec->{weight} = 'n/a' unless ($rec->{type} eq 'SRV'); 1885 1881 $rec->{port} = 'n/a' unless ($rec->{type} eq 'SRV'); 1886 $row++;1887 1882 # ACLs 1888 1883 $rec->{record_edit} = ($permissions{admin} || $permissions{record_edit});
Note:
See TracChangeset
for help on using the changeset viewer.