Changeset 142 for trunk


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.

Location:
trunk/cgi-bin
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/consistency-check.pl

    r106 r142  
    1111
    1212use DBI;
    13 use IPDB 2.0 qw(:ALL);
     13use MyIPDB;
    1414use NetAddr::IP;
    1515
    16 ($dbh,$errstr) = connectDB("ipdb", "ipdb", "ipdbpwd");
     16($dbh,$errstr) = connectDB_My;
    1717
    1818# Schlep up the masters
  • trunk/cgi-bin/freespace.pl

    r119 r142  
    1111
    1212use DBI;
    13 use IPDB 2.0 qw(:ALL);
     13use MyIPDB;
    1414use NetAddr::IP;
    1515
    16 ($dbh,errstr) = connectDB("ipdb", "ipdb", "ipdbpwd");
     16($dbh,$errstr) = connectDB_My;
    1717
    1818print "Content-type: text/plain\n\n";
  • 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");
  • trunk/cgi-bin/newcity.cgi

    r139 r142  
    1515use DBI;
    1616use CommonWeb qw(:ALL);
    17 use IPDB 2.0 qw(:ALL);
     17use MyIPDB;
    1818#use POSIX qw(ceil);
    1919use NetAddr::IP;
     
    3434cleanInput(\%webvar);
    3535
    36 my ($dbh,$errstr) = connectDB("ipdb", "ipdb", "ipdbpwd");
     36my ($dbh,$errstr) = connectDB_My;
    3737my $sth;
    3838
Note: See TracChangeset for help on using the changeset viewer.