Ignore:
Timestamp:
May 18, 2010, 6:08:12 PM (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Update mailNotify to use new table notify to decide who to spam
with notices on various events. See #2.

  • existing notification calls updated. Still need to move calls into IPDB.pm's subs
  • IPDB.pm and MyIPDB.pm updated with new semiglobal vars for org name, SMTP host, domain. Will add others as needed so MyIPDB.pm can be moved to /etc/ipdb/ (see #17).

Internal allocation types will need to be rearranged somewhat to
make full use of the flexibility possible. See #20.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/newcity.cgi

    r415 r416  
    4848if ($sth->err) {
    4949  print "Error adding city to database: ".$sth->errstr;
    50 #  mailNotify('ipdbadmin@example.com',"IPDB city add failure",
    51 #       "$authuser could not add city '$webvar{city}' to database: ".$sth->errstr);
     50  mailNotify($dbh, 'f:nci', "IPDB city add failure",
     51        "$authuser could not add city '$webvar{city}' to database: ".$sth->errstr);
    5252  syslog "err", "$authuser could not add city '$webvar{city}' to database: ".$sth->errstr;
    5353} else {
Note: See TracChangeset for help on using the changeset viewer.