Changeset 468 for trunk/dns-rpc.cgi
- Timestamp:
- 03/12/13 13:39:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns-rpc.cgi
r460 r468 39 39 #package main; 40 40 41 DNSDB::loadConfig(rpcflag => 1); 42 43 # need to create a DNSDB object too 44 my ($dbh,$msg) = DNSDB::connectDB($DNSDB::config{dbname}, $DNSDB::config{dbuser}, 45 $DNSDB::config{dbpass}, $DNSDB::config{dbhost}); 46 47 DNSDB::initGlobals($dbh); 41 my $dnsdb = DNSDB->new(); 48 42 49 43 my $methods = { … … 80 74 81 75 # "Can't do that" errors 82 if (!$d bh) {76 if (!$dnsdb) { 83 77 print "Content-type: text/xml\n\n".$res->{_decode}->encode_fault(5, $msg); 84 78 exit;
Note:
See TracChangeset
for help on using the changeset viewer.