Changeset 289 for trunk/cgi-bin
- Timestamp:
- 10/07/05 11:12:16 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/search.cgi
r285 r289 313 313 queryResults($sql, $webvar{page}, 1); 314 314 } else { 315 print "Finding all blocks with netmask /$maskbits, leading octet(s) $net<br>\n";315 #print "Finding all blocks with netmask /$maskbits, leading octet(s) $net<br>\n"; 316 316 # Partial match; beginning of subnet and maskbits are provided 317 317 $sql = "select * from searchme where text(cidr) like '$net%' and ". … … 323 323 } elsif ($query =~ /^(\d{1,3}\.){3}\d{1,3}$/) { 324 324 # Specific IP address match 325 print "4-octet pattern found; finding netblock containing IP $query<br>\n";325 #print "4-octet pattern found; finding netblock containing IP $query<br>\n"; 326 326 my ($net,$ip) = ($query =~ /(\d{1,3}\.\d{1,3}\.\d{1,3}\.)(\d{1,3})/); 327 327 my $sfor = new NetAddr::IP $query; … … 335 335 } 336 336 } elsif ($query =~ /^(\d{1,3}\.){1,3}\d{1,3}\.?$/) { 337 print "Finding matches with leading octet(s) $query<br>\n";337 #print "Finding matches with leading octet(s) $query<br>\n"; 338 338 $sql = "select * from searchme where text(cidr) like '$query%'"; 339 339 my $count = countRows($sql);
Note:
See TracChangeset
for help on using the changeset viewer.