Ignore:
Timestamp:
04/03/06 16:20:54 (19 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Extra code changes required for new billing system rollout. Note that references
to oldcustid can be removed later; this field is NOT required long-term.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/main.cgi

    r315 r318  
    987987  # because I'm lazy, we'll try to make the SELECT's bring out identical)ish) data
    988988  if ($webvar{block} =~ /\/32$/) {
    989     $sql = "select ip,custid,type,city,circuitid,description,notes,modifystamp,privdata from poolips where ip='$webvar{block}'";
     989    $sql = "select ip,custid,type,city,circuitid,description,notes,modifystamp,privdata,oldcustid from poolips where ip='$webvar{block}'";
    990990  } else {
    991     $sql = "select cidr,custid,type,city,circuitid,description,notes,modifystamp,privdata,swip from allocations where cidr='$webvar{block}'"
     991    $sql = "select cidr,custid,type,city,circuitid,description,notes,modifystamp,privdata,oldcustid,swip from allocations where cidr='$webvar{block}'"
    992992  }
    993993
     
    10361036      $html =~ s/\$\$TYPESELECT\$\$/$disp_alloctypes{$data[2]}<input type=hidden name=alloctype value="$data[2]">/g;
    10371037    }
     1038    $html =~ s/\$\$OLDCUSTID\$\$/$data[9]/g;
    10381039    $html =~ s/\$\$CITY\$\$/<input type=text name=city value="$data[3]">/g;
    10391040    $html =~ s/\$\$CIRCID\$\$/<input type="text" name="circid" value="$data[4]" maxlength=64 size=64 class="regular">/g;
     
    10421043  } else {
    10431044    $html =~ s/\$\$CUSTID\$\$/$data[1]/g;
     1045    $html =~ s/\$\$OLDCUSTID\$\$/$data[9]/g;
    10441046    $html =~ s/\$\$TYPESELECT\$\$/$disp_alloctypes{$data[2]}/g;
    10451047    $html =~ s/\$\$CITY\$\$/$data[3]/g;
     
    10551057  $html =~ s/\$\$SWIP\$\$/N\/A/;
    10561058} else {
    1057   my $tmp = (($data[8] eq 'n') ? '<input type=checkbox name=swip>' :
     1059  my $tmp = (($data[10] eq 'n') ? '<input type=checkbox name=swip>' :
    10581060        '<input type=checkbox name=swip checked=yes>');
    10591061  $html =~ s/\$\$SWIP\$\$/$tmp/;
Note: See TracChangeset for help on using the changeset viewer.