Changeset 445 for branches/stable/cgi-bin/newcity.cgi
- Timestamp:
- 07/26/10 17:00:00 (14 years ago)
- Location:
- branches/stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable
- Property svn:ignore
-
old new 1 1 local.css 2 *.tar.gz
-
- Property svn:mergeinfo changed
/trunk merged: 415-420,422-443
- Property svn:ignore
-
branches/stable/cgi-bin/newcity.cgi
r355 r445 8 8 # Last update by $Author$ 9 9 ### 10 # Copyright (C) 2004 ,2005- Kris Deugau10 # Copyright (C) 2004-2010 - Kris Deugau 11 11 12 12 use strict; … … 15 15 use DBI; 16 16 use CommonWeb qw(:ALL); 17 use MyIPDB;18 17 #use POSIX qw(ceil); 19 18 use NetAddr::IP; … … 21 20 use Sys::Syslog; 22 21 23 openlog "IPDB","pid","local2"; 22 # don't remove! required for GNU/FHS-ish install from tarball 23 ##uselib## 24 25 use MyIPDB; 26 27 openlog "IPDB","pid","$IPDB::syslog_facility"; 24 28 25 29 # Collect the username from HTTP auth. If undefined, we're in a test environment. … … 48 52 if ($sth->err) { 49 53 print "Error adding city to database: ".$sth->errstr; 50 mailNotify( 'kdeugau@vianet.ca',"IPDB city add failure",54 mailNotify($dbh, 'f:nci', "IPDB city add failure", 51 55 "$authuser could not add city '$webvar{city}' to database: ".$sth->errstr); 52 56 syslog "err", "$authuser could not add city '$webvar{city}' to database: ".$sth->errstr;
Note:
See TracChangeset
for help on using the changeset viewer.