Changeset 135 for trunk/cgi-bin
- Timestamp:
- 01/26/05 15:30:30 (20 years ago)
- Location:
- trunk/cgi-bin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r130 r135 203 203 ##err Need better handling here; what if there's no free IPs when this sub gets called? 204 204 my @data = $sth->fetchrow_array; 205 my $cidr = $data[1];205 $cidr = $data[1]; # $cidr is already declared when we get here! 206 206 207 207 $sth = $dbh->prepare("update poolips set custid='$custid',". … … 545 545 $mailer->to($recip); 546 546 $mailer->data("From: \"IP Database\" <ipdb\@example.com>\n", 547 "To: $recip\n", 547 548 "Date: ".strftime("%a, %d %b %Y %H:%M:%S %z",localtime)."\n", 548 549 "Subject: {IPDB} $subj\n", -
trunk/cgi-bin/main.cgi
r118 r135 317 317 } 318 318 319 foreach my $element (@$rowRef) { 320 print "<td></td>" if (!defined($element)); 319 ELEMENT: foreach my $element (@$rowRef) { 320 if (!defined($element)) { 321 print "<td></td>\n"; 322 next ELEMENT; 323 } 321 324 $element =~ s|\n|</br>|g; 322 325 print "<td>$element</td>\n"; … … 1080 1083 # this has now been Requested, so here goes. 1081 1084 1082 if ($data[2] =~ /^d[nyc]|cn|ee|i i$/) {1085 if ($data[2] =~ /^d[nyc]|cn|ee|in$/) { 1083 1086 # Block that can be changed 1084 1087 my $blockoptions = "<select name=alloctype><option". … … 1088 1091 (($data[2] eq 'cn') ? ' selected' : '') ." value='cn'>Customer netblock</option>\n<option". 1089 1092 (($data[2] eq 'ee') ? ' selected' : '') ." value='ee'>End-use netblock</option>\n<option". 1090 (($data[2] eq 'i i') ? ' selected' : '') ." value='ii'>Internal netblock</option>\n".1093 (($data[2] eq 'in') ? ' selected' : '') ." value='in'>Internal netblock</option>\n". 1091 1094 "</select>\n"; 1092 1095 $html =~ s/\$\$TYPESELECT\$\$/$blockoptions/g;
Note:
See TracChangeset
for help on using the changeset viewer.