Changeset 142 for trunk/cgi-bin/main.cgi


Ignore:
Timestamp:
01/28/05 14:04:55 (19 years ago)
Author:
Kris Deugau
Message:

/trunk

Wrap connectDB() function in a "module" so we don't get headaches
tracking password changes (if and when). This change *may* get
merged back to IPDB.pm, but it may not so as to allow the HTTP
username to be the user authenticated at the database level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r138 r142  
    1414use DBI;
    1515use CommonWeb qw(:ALL);
    16 use IPDB 2.0 qw(:ALL);
     16use MyIPDB;
    1717use POSIX qw(ceil);
    1818use NetAddr::IP;
     
    3737my $sth;
    3838my $errstr;
    39 ($ip_dbh,$errstr) = connectDB("ipdb", "ipdb", "ipdbpwd");
     39($ip_dbh,$errstr) = connectDB_My;
    4040if (!$ip_dbh) {
    4141  printAndExit("Failed to connect to database: $errstr\n");
Note: See TracChangeset for help on using the changeset viewer.