Changeset 445 for branches/stable/cgi-bin/newnode.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/newnode.cgi
r394 r445 15 15 use DBI; 16 16 use CommonWeb qw(:ALL); 17 use MyIPDB;18 17 #use POSIX qw(ceil); 19 18 use NetAddr::IP; 20 21 19 use Sys::Syslog; 22 20 23 openlog "IPDB","pid","local2"; 21 # don't remove! required for GNU/FHS-ish install from tarball 22 ##uselib## 23 24 use MyIPDB; 25 26 openlog "IPDB","pid","$IPDB::syslog_facility"; 24 27 25 28 # Collect the username from HTTP auth. If undefined, we're in a test environment. … … 45 48 if ($sth->err) { 46 49 print "Error adding node to database: ".$sth->errstr; 47 mailNotify( 'noc@example.com',"IPDB node add failure",50 mailNotify($dbh, 'f:nno', "IPDB node add failure", 48 51 "$authuser could not add node '$webvar{nodename}','$webvar{type}' to database: ".$sth->errstr); 49 52 syslog "err", "$authuser could not add node '$webvar{nodename}','$webvar{type}' to database: ".$sth->errstr;
Note:
See TracChangeset
for help on using the changeset viewer.