source: trunk/cgi-bin/MyIPDB.pm@ 519

Last change on this file since 519 was 517, checked in by Kris Deugau, 12 years ago

/trunk

Finally merge conversion to HTML::Template from /branches/htmlform

  • Node "hack" showed conflict due to having been added to all branches in parallel
  • editDisplay.html was apparently changed enough that the merged delete caused an irrelevant conflict

Closes #3.

  • Property svn:keywords set to Date Rev Author
File size: 1.9 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: 2012-10-18 20:53:10 +0000 (Thu, 18 Oct 2012) $
7# SVN revision $Rev: 517 $
8# Last update by $Author: kdeugau $
9###
10# Copyright (C) 2004-2010 - 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#$IPDB::org_name = "Bob's Big Bonaza";
32#$IPDB::smtphost = '127.0.0.1';
33#$IPDB::domain = 'bob.com';
34#$IPDB::defcustid = '5554242';
35# Globals for db2rwhois.pl
36#$IPDB::rwhoisDataPath = '/usr/local/rwhoisd/etc/rwhoisd';
37#$IPDB::org_street = '123 4th Street';
38#$IPDB::org_city = 'Anytown';
39#$IPDB::org_prov_state = 'ON';
40#$IPDB::org_pocode = 'H0H 0H0';
41#$IPDB::org_country = 'CA';
42#$IPDB::org_phone = '000-555-1234';
43# note: following may also just be a bare email address
44#$IPDB::org_techhandle = 'ISP-ARIN-HANDLE';
45#$IPDB::org_email = 'noc@example.com';
46#$IPDB::hostmaster = 'dns@example.com';
47
48# Logging destination. Defaults to local2. See your local syslog docs for valid facilities.
49# Note that the value here should have the LOG_ prefix removed, and convert to lower-case.
50# local0 through local7 and user make the most sense.
51#$IPDB::syslog_facility = 'daemon';
52
53
54## connectDB_My()
55# Wrapper for IPDB::connectDB
56# Takes no arguments, returns whatever IPDB::connectDB returns.
57sub connectDB_My {
58 return connectDB($dbname, $dbuser, $dbpass, $dbhost);
59} # end connectDB_My()
60
61# Keep Perl from complaining.
621;
Note: See TracBrowser for help on using the repository browser.