Changeset 445 for branches/stable/cgi-bin/MyIPDB.pm
- Timestamp:
- 07/26/10 17:00:00 (14 years ago)
- Location:
- branches/stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable
- Property svn:ignore
-
old new 1 1 local.css 2 *.tar.gz
-
- Property svn:mergeinfo changed
/trunk merged: 415-420,422-443
- Property svn:ignore
-
branches/stable/cgi-bin/MyIPDB.pm
r319 r445 8 8 # Last update by $Author$ 9 9 ### 10 # Copyright (C) 2004-2006 - Kris Deugau 10 # Copyright (C) 2004-2010 - Kris Deugau 11 12 # don't remove! required for GNU/FHS-ish install from tarball 13 ##uselib## 11 14 12 15 use IPDB 2.0 qw(:ALL); 16 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'; 24 25 # Set some globals declared in IPDB.pm. Most of these only affect mailNotify(). 26 # Note that while you *can* leave these at defaults, it's probably a Really Bad Idea. 27 #$IPDB::org_name = "Bob's Big Bonaza"; 28 #$IPDB::smtphost = '127.0.0.1'; 29 #$IPDB::domain = 'bob.com'; 30 #$IPDB::defcustid = '5554242'; 31 # Globals for db2rwhois.pl 32 #$IPDB::rwhoisDataPath = '/usr/local/rwhoisd/etc/rwhoisd'; 33 #$IPDB::org_street = '123 4th Street'; 34 #$IPDB::org_city = 'Anytown'; 35 #$IPDB::org_prov_state = 'ON'; 36 #$IPDB::org_pocode = 'H0H 0H0'; 37 #$IPDB::org_country = 'CA'; 38 #$IPDB::org_phone = '000-555-1234'; 39 # note: following may also just be a bare email address 40 #$IPDB::org_techhandle = 'ISP-ARIN-HANDLE'; 41 #$IPDB::org_email = 'noc@example.com'; 42 #$IPDB::hostmaster = 'dns@example.com'; 43 44 # Logging destination. Defaults to local2. See your local syslog docs for valid facilities. 45 # Note that the value here should have the LOG_ prefix removed, and convert to lower-case. 46 # local0 through local7 and user make the most sense. 47 #$IPDB::syslog_facility = 'daemon'; 48 13 49 14 50 ## connectDB_My() … … 16 52 # Takes no arguments, returns whatever IPDB::connectDB returns. 17 53 sub connectDB_My { 18 return connectDB( "ipdb", "ipdb", "ipdbpwd");54 return connectDB($dbname, $dbuser, $dbpass, $dbhost); 19 55 } # end connectDB_My() 20 56
Note:
See TracChangeset
for help on using the changeset viewer.