# ipdb/cgi-bin/MyIPDB.pm
# Contains site-specific functions for IPDB
# May override some functions from IPDB.pm, wraps others
###
# SVN revision info
# $Date: 2011-11-16 22:19:12 +0000 (Wed, 16 Nov 2011) $
# SVN revision $Rev: 509 $
# Last update by $Author: kdeugau $
###
# Copyright (C) 2004-2011 - Kris Deugau

# don't remove!  required for GNU/FHS-ish install from tarball
##uselib##

use IPDB 2.0 qw(:ALL);


# DSN, user, and password for database.  These **MUST** be set.
my $dbname = 'ipdb';
my $dbuser = 'ipdb';
my $dbpass = 'ipdbpwd';
# DB host is optional.
my $dbhost = 'ipdb-db';

# Quick workaround for fixed web path.  Set this to the absolute web path to
# your IPDB install, or leave blank for installation at the webroot.
$IPDB::webpath = '';

# Set some globals declared in IPDB.pm.  Most of these only affect mailNotify().
# Note that while you *can* leave these at defaults, it's probably a Really Bad Idea.
# Also note that mail will silently not happen if at least smtphost and domain are not set.
#$IPDB::org_name = "Example Corp";
#$IPDB::smtphost = '127.0.0.1';
#$IPDB::domain = 'example.com';
#$IPDB::defcustid = '5554242';
# Globals for db2rwhois.pl
#$IPDB::rwhoisDataPath = '/usr/local/rwhoisd/etc/rwhoisd';
#$IPDB::org_street = '123 4th Street';
#$IPDB::org_city = 'Anytown';
#$IPDB::org_prov_state = 'ON';
#$IPDB::org_pocode = 'H0H 0H0';
#$IPDB::org_country = 'CA';
#$IPDB::org_phone = '000-555-1234';
# note: following may also just be a bare email address
#$IPDB::org_techhandle = 'ISP-ARIN-HANDLE';
#$IPDB::org_email = 'noc@example.com';
#$IPDB::hostmaster = 'dns@example.com';

# Logging destination.  Defaults to local2.  See your local syslog docs for valid facilities.
# Note that the value here should have the LOG_ prefix removed, and convert to lower-case.
# local0 through local7 and user make the most sense.
#$IPDB::syslog_facility = 'daemon';

# Allow allocations to come from private IP ranges by default?
# Set to 'y' or 'on' to enable.
#$IPDB::allowprivrange = '';

## connectDB_My()
# Wrapper for IPDB::connectDB
# Takes no arguments, returns whatever IPDB::connectDB returns.
sub connectDB_My {
  return connectDB($dbname, $dbuser, $dbpass, $dbhost);
} # end connectDB_My()

# Keep Perl from complaining.
1;
