[142] | 1 | # ipdb/cgi-bin/MyIPDB.pm
|
---|
| 2 | # Contains site-specific functions for IPDB
|
---|
| 3 | # May override some functions from IPDB.pm, wraps others
|
---|
| 4 | ###
|
---|
| 5 | # SVN revision info
|
---|
| 6 | # $Date: 2010-07-04 20:01:22 +0000 (Sun, 04 Jul 2010) $
|
---|
| 7 | # SVN revision $Rev: 420 $
|
---|
| 8 | # Last update by $Author: kdeugau $
|
---|
| 9 | ###
|
---|
[417] | 10 | # Copyright (C) 2004-2010 - Kris Deugau
|
---|
[142] | 11 |
|
---|
[417] | 12 | # don't remove! required for GNU/FHS-ish install from tarball
|
---|
| 13 | ##uselib##
|
---|
| 14 |
|
---|
[142] | 15 | use IPDB 2.0 qw(:ALL);
|
---|
| 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()
|
---|
| 23 |
|
---|
[416] | 24 | # Set some globals declared in IPDB.pm. Most of these only affect mailNotify().
|
---|
| 25 | # Note that while you *can* leave these at defaults, it's probably a Really Bad Idea.
|
---|
| 26 | #$IPDB::orgname = "Bob's Big Bonaza";
|
---|
| 27 | #$IPDB::smtphost = '127.0.0.1';
|
---|
| 28 | #$IPDB::domain = 'bob.com';
|
---|
[417] | 29 | #$IPDB::defcustid = '5554242';
|
---|
| 30 | # Globals for db2rwhois.pl
|
---|
[420] | 31 | #$IPDB::rwhoisDataPath = '/usr/local/rwhoisd/etc/rwhoisd';
|
---|
[417] | 32 | #$IPDB::org_street = '123 4th Street';
|
---|
| 33 | #$IPDB::org_city = 'Anytown';
|
---|
| 34 | #$IPDB::org_prov_state = 'ON';
|
---|
| 35 | #$IPDB::org_pocode = 'H0H 0H0';
|
---|
| 36 | #$IPDB::org_country = 'CA';
|
---|
| 37 | #$IPDB::org_phone = '000-555-1234';
|
---|
| 38 | # note: following may also just be a bare email address
|
---|
| 39 | #$IPDB::org_techhandle = 'ISP-ARIN-HANDLE';
|
---|
[416] | 40 |
|
---|
[417] | 41 | # Logging destination. Defaults to local2. See your local syslog docs for valid facilities.
|
---|
| 42 | # Note that the value here should have the LOG_ prefix removed, and convert to lower-case.
|
---|
| 43 | # local0 through local7 and user make the most sense.
|
---|
| 44 | #$IPDB::syslog_facility = 'daemon';
|
---|
| 45 |
|
---|
[142] | 46 | # Keep Perl from complaining.
|
---|
| 47 | 1;
|
---|