Changeset 677 for trunk/cgi-bin/main.cgi
- Timestamp:
- 01/16/15 17:34:45 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.