Changeset 598 for branches/stable/cgi-bin/main.cgi
- Timestamp:
- 05/16/13 16:43:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/main.cgi
r596 r598 331 331 type => $ipinfo->{type}, 332 332 allocfrom => $pool, 333 vrf => $ipinfo->{vrf}, 333 334 ); 334 335 } elsif ($webvar{fbtype} eq 'n') { … … 477 478 $page->param(cidr => $cidr); 478 479 $page->param(city => $q->escapeHTML($webvar{city})); 480 $page->param(vrf => $webvar{vrf}); 479 481 $page->param(custid => $webvar{custid}); 480 482 $page->param(circid => $q->escapeHTML($webvar{circid})); … … 521 523 my ($code,$msg) = allocateBlock($ip_dbh, $webvar{fullcidr}, $webvar{alloc_from}, 522 524 $webvar{custid}, $webvar{alloctype}, $webvar{city}, $webvar{desc}, $webvar{notes}, 523 $webvar{circid}, $webvar{privdata}, $webvar{node} );525 $webvar{circid}, $webvar{privdata}, $webvar{node}, $webvar{vrf}); 524 526 525 527 if ($code eq 'OK' || $code eq 'WARN') { … … 695 697 ## end node hack 696 698 699 $page->param(vrf => $blockinfo->{vrf}); 700 697 701 my ($lastmod,undef) = split /\s+/, $blockinfo->{lastmod}; 698 702 $page->param(lastmod => $lastmod); … … 735 739 type => $webvar{alloctype}, 736 740 swip => $webvar{swip}, 741 vrf => $webvar{vrf}, 737 742 ); 738 743 … … 784 789 $page->param(city => $webvar{city}); 785 790 $page->param(disptype => $disp_alloctypes{$webvar{alloctype}}); 791 $page->param(vrf => $webvar{vrf}); 786 792 $page->param(custid => $webvar{custid}); 787 793 $page->param(swip => $webvar{swip} eq 'on' ? 'Yes' : 'No'); … … 869 875 # need to retrieve block data before deleting so we can notify on that 870 876 my $blockinfo = getBlockData($ip_dbh, $webvar{block}); 877 # hack pthui. This goes away with the new structure, since routed 878 # and master blocks can be retrieved with getBlockData() 879 if ($webvar{alloctype} eq 'rm') { 880 $blockinfo = { custid => 'N/A', city => $webvar{city}, description => 'N/A' }; 881 } elsif ($webvar{alloctype} eq 'mm') { 882 $blockinfo = { custid => 'N/A', city => 'N/A', description => 'N/A' }; 883 } 871 884 872 885 my ($code,$msg) = deleteBlock($ip_dbh, $webvar{block}, $webvar{alloctype});
Note:
See TracChangeset
for help on using the changeset viewer.