- Timestamp:
- 01/16/15 17:34:45 (10 years ago)
- Location:
- trunk/cgi-bin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r676 r677 1149 1149 if $args{rdns}; 1150 1150 1151 # and the per-IP set, if there is one. 1152 _rpc('updateRevSet', %{$args{iprev}}, rpcuser => $args{user}); 1153 1151 1154 return ('OK', 'OK'); 1152 1155 … … 1296 1299 $binfo->{block} =~ s|/32$||; 1297 1300 _rpc('addOrUpdateRevRec', cidr => $binfo->{block}, name => $args{rdns}, rpcuser => $args{user}); 1301 1302 # and the per-IP set, if there is one. 1303 _rpc('updateRevSet', %{$args{iprev}}, rpcuser => $args{user}); 1304 1298 1305 return ('OK','OK'); 1299 1306 } # end updateBlock() -
trunk/cgi-bin/main.cgi
r675 r677 551 551 # IP, or the error message if an error occurred. 552 552 553 ##fixme: consider just passing \%webvar to allocateBlock()? 554 # collect per-IP rDNS fields. only copy over the ones that actually have something in them. 555 my %iprev; 556 foreach (keys %webvar) { 557 $iprev{$_} = $webvar{$_} if /host_[\d.a-fA-F:]+/ && $webvar{$_}; 558 } 559 553 560 my ($code,$msg) = allocateBlock($ip_dbh, cidr => $webvar{fullcidr}, fbid => $webvar{fbid}, 554 561 parent => $webvar{parent}, custid => $webvar{custid}, type => $webvar{alloctype}, city => $webvar{city}, 555 562 desc => $webvar{desc}, notes => $webvar{notes}, circid => $webvar{circid}, 556 privdata => $webvar{privdata}, nodeid => $webvar{node}, rdns => $webvar{rdns}, user => $authuser); 563 privdata => $webvar{privdata}, nodeid => $webvar{node}, rdns => $webvar{rdns}, user => $authuser, 564 iprev => \%iprev); 557 565 558 566 if ($code eq 'OK') { … … 804 812 $updargs{node} = $webvar{node} if $webvar{node}; 805 813 806 my ($code,$msg) = updateBlock($ip_dbh, %updargs); 814 # collect per-IP rDNS fields. only copy over the ones that actually have something in them. 815 my %iprev; 816 foreach (keys %webvar) { 817 $iprev{$_} = $webvar{$_} if /host_[\d.a-fA-F:]+/ && $webvar{$_}; 818 } 819 820 my ($code,$msg) = updateBlock($ip_dbh, %updargs, iprev => \%iprev); 807 821 808 822 if ($code eq 'FAIL') {
Note:
See TracChangeset
for help on using the changeset viewer.