Changeset 228 for trunk/cgi-bin/main.cgi


Ignore:
Timestamp:
04/15/05 16:31:44 (20 years ago)
Author:
Kris Deugau
Message:

/trunk

Port forward bugfixes from /branches/stable r215, r220, and r224.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r227 r228  
    11061106    my $blockoptions = "<select name=alloctype><option".
    11071107        (($data[2] eq 'me') ? ' selected' : '') ." value='me'>Dialup netblock</option>\n<option".
    1108         (($data[2] eq 'de') ? ' selected' : '') ." value='de'>Dynamic DSL netblock</option>\n<option".  (($data[2] eq 'dc') ? ' selected' : '') ." value='dc'>Dynamic cable netblock</option>\n<option".
    1109         (($data[2] eq 'ce') ? ' selected' : '') ." value='ce'>Dynamic cable netblock</option>\n<option".        (($data[2] eq 'dc') ? ' selected' : '') ." value='dc'>Dynamic cable netblock</option>\n<option".
    1110         (($data[2] eq 'we') ? ' selected' : '') ." value='we'>Dynamic wireless netblock</option>\n<option".     (($data[2] eq 'dc') ? ' selected' : '') ." value='dc'>Dynamic cable netblock</option>\n<option".
     1108        (($data[2] eq 'de') ? ' selected' : '') ." value='de'>Dynamic DSL netblock</option>\n<option".
     1109        (($data[2] eq 'ce') ? ' selected' : '') ." value='ce'>Dynamic cable netblock</option>\n<option".
     1110        (($data[2] eq 'we') ? ' selected' : '') ." value='we'>Dynamic wireless netblock</option>\n<option".
    11111111        (($data[2] eq 'cn') ? ' selected' : '') ." value='cn'>Customer netblock</option>\n<option".
    11121112        (($data[2] eq 'en') ? ' selected' : '') ." value='en'>End-use netblock</option>\n<option".
     
    11361136
    11371137  # Make sure incoming data is in correct format - custID among other things.
    1138   validateInput;
     1138  return if !validateInput;
    11391139
    11401140  # SQL transaction wrapper
     
    11441144    if (my $pooltype = ($webvar{alloctype} =~ /^(.)i$/) ) {
    11451145      $sql = "update poolips set custid='$webvar{custid}',notes='$webvar{notes}',".
    1146         "circuitid='$webvar{circid}',description='$webvar{desc}' ".
     1146        "circuitid='$webvar{circid}',description='$webvar{desc}',city='$webvar{city}' ".
    11471147        "where ip='$webvar{block}'";
    11481148    } else {
Note: See TracChangeset for help on using the changeset viewer.