- Timestamp:
- 03/01/05 16:22:39 (20 years ago)
- Location:
- trunk/cgi-bin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r183 r184 156 156 } else { 157 157 # it connects, try a stmt. 158 my $sth = $dbh->prepare("select cidr from masterblocks");158 my $sth = $dbh->prepare("select type from alloctypes"); 159 159 my $err = $sth->execute(); 160 160 -
trunk/cgi-bin/main.cgi
r173 r184 39 39 ($ip_dbh,$errstr) = connectDB_My; 40 40 if (!$ip_dbh) { 41 printAndExit("Failed to connect to database: $errstr\n"); 42 } 43 checkDBSanity($ip_dbh); 41 printAndExit("Database error: $errstr\n"); 42 } 44 43 initIPDBGlobals($ip_dbh); 45 44
Note:
See TracChangeset
for help on using the changeset viewer.