Changeset 402 for trunk


Ignore:
Timestamp:
05/11/10 17:33:34 (15 years ago)
Author:
Kris Deugau
Message:

/trunk

Merge miscellaneous microdifferences that have crept in. See #13.

Location:
trunk/cgi-bin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r397 r402  
    118118  my ($dbname,$user,$pass) = @_;
    119119  my $dbh;
    120   my $DSN = "DBI:Pg:dbname=$dbname";
     120  my $DSN = "DBI:Pg:host=ipdb-db;dbname=$dbname";
    121121#  my $user = 'ipdb';
    122122#  my $pw   = 'ipdbpwd';
  • trunk/cgi-bin/consistency-check.pl

    r352 r402  
    1717
    1818($dbh,$errstr) = connectDB_My;
    19 
     19die $errstr if !$dbh;
    2020# May as well.  We need a number of globals.
    2121initIPDBGlobals($dbh);
  • trunk/cgi-bin/main.cgi

    r400 r402  
    3232}
    3333
    34 syslog "debug", "$authuser active";
     34syslog "debug", "$authuser active, $ENV{'REMOTE_ADDR'}";
    3535
    3636# Why not a global DB handle?  (And a global statement handle, as well...)
  • trunk/cgi-bin/search.cgi

    r397 r402  
    318318    # Query for a customer ID.  Note that we can't restrict to "numeric-only"
    319319    # 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%'";
    321321    my $count = countRows($sql);
    322322    $sql .= " order by cidr limit $RESULTS_PER_PAGE offset $offset";
     
    500500  return $a[0];
    501501}
    502 
Note: See TracChangeset for help on using the changeset viewer.