Changeset 432 for trunk/cgi-bin/MyIPDB.pm
- Timestamp:
- 07/16/10 17:31:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/MyIPDB.pm
r420 r432 15 15 use IPDB 2.0 qw(:ALL); 16 16 17 ## connectDB_My() 18 # Wrapper for IPDB::connectDB 19 # Takes no arguments, returns whatever IPDB::connectDB returns. 20 sub connectDB_My { 21 return connectDB("ipdb", "ipdb", "ipdbpwd"); 22 } # end connectDB_My() 17 18 # DSN, user, and password for database. These **MUST** be set. 19 my $dbname = 'ipdb'; 20 my $dbuser = 'ipdb'; 21 my $dbpass = 'ipdbpwd'; 22 # DB host is optional. 23 my $dbhost = 'ipdb-db'; 23 24 24 25 # Set some globals declared in IPDB.pm. Most of these only affect mailNotify(). … … 44 45 #$IPDB::syslog_facility = 'daemon'; 45 46 47 48 ## connectDB_My() 49 # Wrapper for IPDB::connectDB 50 # Takes no arguments, returns whatever IPDB::connectDB returns. 51 sub connectDB_My { 52 return connectDB($dbname, $dbuser, $dbpass, $dbhost); 53 } # end connectDB_My() 54 46 55 # Keep Perl from complaining. 47 56 1;
Note:
See TracChangeset
for help on using the changeset viewer.