Index: branches/stable/cgi-bin/newcity.cgi
===================================================================
--- branches/stable/cgi-bin/newcity.cgi	(revision 355)
+++ branches/stable/cgi-bin/newcity.cgi	(revision 445)
@@ -8,5 +8,5 @@
 # Last update by $Author$
 ###
-# Copyright (C) 2004,2005 - Kris Deugau
+# Copyright (C) 2004-2010 - Kris Deugau
 
 use strict;
@@ -15,5 +15,4 @@
 use DBI;
 use CommonWeb qw(:ALL);
-use MyIPDB;
 #use POSIX qw(ceil);
 use NetAddr::IP;
@@ -21,5 +20,10 @@
 use Sys::Syslog;
 
-openlog "IPDB","pid","local2";
+# don't remove!  required for GNU/FHS-ish install from tarball
+##uselib##
+
+use MyIPDB;
+
+openlog "IPDB","pid","$IPDB::syslog_facility";
 
 # Collect the username from HTTP auth.  If undefined, we're in a test environment.
@@ -48,5 +52,5 @@
 if ($sth->err) {
   print "Error adding city to database: ".$sth->errstr;
-  mailNotify('kdeugau@vianet.ca',"IPDB city add failure",
+  mailNotify($dbh, 'f:nci', "IPDB city add failure",
 	"$authuser could not add city '$webvar{city}' to database: ".$sth->errstr);
   syslog "err", "$authuser could not add city '$webvar{city}' to database: ".$sth->errstr;
