Changeset 184 for trunk


Ignore:
Timestamp:
03/01/05 16:22:39 (19 years ago)
Author:
Kris Deugau
Message:

/trunk

Tweaked another few fixes into place to make a "fresh" install
work "correctly".

Location:
trunk/cgi-bin
Files:
2 edited

Legend:

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

    r183 r184  
    156156  } else {
    157157    # it connects, try a stmt.
    158     my $sth = $dbh->prepare("select cidr from masterblocks");
     158    my $sth = $dbh->prepare("select type from alloctypes");
    159159    my $err = $sth->execute();
    160160
  • trunk/cgi-bin/main.cgi

    r173 r184  
    3939($ip_dbh,$errstr) = connectDB_My;
    4040if (!$ip_dbh) {
    41   printAndExit("Failed to connect to database: $errstr\n");
    42 }
    43 checkDBSanity($ip_dbh);
     41  printAndExit("Database error: $errstr\n");
     42}
    4443initIPDBGlobals($ip_dbh);
    4544
Note: See TracChangeset for help on using the changeset viewer.