Changeset 592 for branches/stable/cgi-bin/main.cgi
- Timestamp:
- 05/14/13 17:45:17 (12 years ago)
- Location:
- branches/stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable
- Property svn:mergeinfo changed
/trunk merged: 452-455,462,485-486,515
- Property svn:mergeinfo changed
-
branches/stable/cgi-bin/main.cgi
r550 r592 14 14 use DBI; 15 15 use CommonWeb qw(:ALL); 16 use CustIDCK;17 16 use POSIX qw(ceil); 18 17 use NetAddr::IP; … … 23 22 ##uselib## 24 23 24 use CustIDCK; 25 25 use MyIPDB; 26 26 … … 1045 1045 # because I'm lazy, we'll try to make the SELECT's bring out identical)ish) data 1046 1046 if ($webvar{block} =~ /\/32$/ && !$webvar{reallyblock}) { 1047 $sql = "select ip,custid,type,city,circuitid,description,notes,modifystamp,privdata ,oldcustidfrom poolips where ip='$webvar{block}'";1047 $sql = "select ip,custid,type,city,circuitid,description,notes,modifystamp,privdata from poolips where ip='$webvar{block}'"; 1048 1048 } else { 1049 $sql = "select cidr,custid,type,city,circuitid,description,notes,modifystamp,privdata, oldcustid,swip from allocations where cidr='$webvar{block}'"1049 $sql = "select cidr,custid,type,city,circuitid,description,notes,modifystamp,privdata,swip from allocations where cidr='$webvar{block}'" 1050 1050 } 1051 1051 … … 1122 1122 } 1123 1123 ## end node hack 1124 $html =~ s/\$\$OLDCUSTID\$\$/$data[9]/g;1125 1124 $html =~ s/\$\$CITY\$\$/<input type=text name=city value="$data[3]">/g; 1126 1125 $html =~ s/\$\$CIRCID\$\$/<input type="text" name="circid" value="$data[4]" maxlength=64 size=64 class="regular">/g; … … 1140 1139 ## end node hack 1141 1140 $html =~ s/\$\$CUSTID\$\$/$data[1]/g; 1142 $html =~ s/\$\$OLDCUSTID\$\$/$data[9]/g;1143 1141 $html =~ s/\$\$TYPESELECT\$\$/$disp_alloctypes{$data[2]}/g; 1144 1142 $html =~ s/\$\$CITY\$\$/$data[3]/g;
Note:
See TracChangeset
for help on using the changeset viewer.