source: branches/stable/cgi-bin/MyIPDB.pm@ 551

Last change on this file since 551 was 509, checked in by Kris Deugau, 13 years ago

/branches/stable

Light tweaks to default mail setup; don't send anything if
still using the defaults.

  • Property svn:keywords set to Date Rev Author
File size: 2.1 KB
Line 
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: 2011-11-16 22:19:12 +0000 (Wed, 16 Nov 2011) $
7# SVN revision $Rev: 509 $
8# Last update by $Author: kdeugau $
9###
10# Copyright (C) 2004-2011 - Kris Deugau
11
12# don't remove! required for GNU/FHS-ish install from tarball
13##uselib##
14
15use IPDB 2.0 qw(:ALL);
16
17
18# DSN, user, and password for database. These **MUST** be set.
19my $dbname = 'ipdb';
20my $dbuser = 'ipdb';
21my $dbpass = 'ipdbpwd';
22# DB host is optional.
23my $dbhost = 'ipdb-db';
24
25# Quick workaround for fixed web path. Set this to the absolute web path to
26# your IPDB install, or leave blank for installation at the webroot.
27$IPDB::webpath = '';
28
29# Set some globals declared in IPDB.pm. Most of these only affect mailNotify().
30# Note that while you *can* leave these at defaults, it's probably a Really Bad Idea.
31# Also note that mail will silently not happen if at least smtphost and domain are not set.
32#$IPDB::org_name = "Example Corp";
33#$IPDB::smtphost = '127.0.0.1';
34#$IPDB::domain = 'example.com';
35#$IPDB::defcustid = '5554242';
36# Globals for db2rwhois.pl
37#$IPDB::rwhoisDataPath = '/usr/local/rwhoisd/etc/rwhoisd';
38#$IPDB::org_street = '123 4th Street';
39#$IPDB::org_city = 'Anytown';
40#$IPDB::org_prov_state = 'ON';
41#$IPDB::org_pocode = 'H0H 0H0';
42#$IPDB::org_country = 'CA';
43#$IPDB::org_phone = '000-555-1234';
44# note: following may also just be a bare email address
45#$IPDB::org_techhandle = 'ISP-ARIN-HANDLE';
46#$IPDB::org_email = 'noc@example.com';
47#$IPDB::hostmaster = 'dns@example.com';
48
49# Logging destination. Defaults to local2. See your local syslog docs for valid facilities.
50# Note that the value here should have the LOG_ prefix removed, and convert to lower-case.
51# local0 through local7 and user make the most sense.
52#$IPDB::syslog_facility = 'daemon';
53
54# Allow allocations to come from private IP ranges by default?
55# Set to 'y' or 'on' to enable.
56#$IPDB::allowprivrange = '';
57
58## connectDB_My()
59# Wrapper for IPDB::connectDB
60# Takes no arguments, returns whatever IPDB::connectDB returns.
61sub connectDB_My {
62 return connectDB($dbname, $dbuser, $dbpass, $dbhost);
63} # end connectDB_My()
64
65# Keep Perl from complaining.
661;
Note: See TracBrowser for help on using the repository browser.