- Timestamp:
- 05/11/10 17:33:34 (15 years ago)
- Location:
- trunk/cgi-bin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r397 r402 118 118 my ($dbname,$user,$pass) = @_; 119 119 my $dbh; 120 my $DSN = "DBI:Pg: dbname=$dbname";120 my $DSN = "DBI:Pg:host=ipdb-db;dbname=$dbname"; 121 121 # my $user = 'ipdb'; 122 122 # my $pw = 'ipdbpwd'; -
trunk/cgi-bin/consistency-check.pl
r352 r402 17 17 18 18 ($dbh,$errstr) = connectDB_My; 19 19 die $errstr if !$dbh; 20 20 # May as well. We need a number of globals. 21 21 initIPDBGlobals($dbh); -
trunk/cgi-bin/main.cgi
r400 r402 32 32 } 33 33 34 syslog "debug", "$authuser active ";34 syslog "debug", "$authuser active, $ENV{'REMOTE_ADDR'}"; 35 35 36 36 # Why not a global DB handle? (And a global statement handle, as well...) -
trunk/cgi-bin/search.cgi
r397 r402 318 318 # Query for a customer ID. Note that we can't restrict to "numeric-only" 319 319 # as we have non-numeric custIDs in the legacy data. :/ 320 $sql = "select $cols from searchme where custid ilike '%$query%' or oldcustid ilike '%$query%' ";320 $sql = "select $cols from searchme where custid ilike '%$query%' or oldcustid ilike '%$query%' or description like '%$query%'"; 321 321 my $count = countRows($sql); 322 322 $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset"; … … 500 500 return $a[0]; 501 501 } 502
Note:
See TracChangeset
for help on using the changeset viewer.