Ignore:
Timestamp:
05/18/10 18:08:12 (14 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/admin.cgi

    r415 r416  
    250250        syslog "notice", "$authuser allocated '$webvar{cidr}' to '$webvar{custid}' as ".
    251251                "'$webvar{alloctype}'";
    252         # Notify tech@example.com
    253         mailNotify('tech@example.com',"$disp_alloctypes{$webvar{alloctype}} allocation",
     252        mailNotify($ip_dbh, "$disp_alloctypes{$webvar{alloctype}} allocation",
    254253          "$disp_alloctypes{$webvar{alloctype}} $webvar{cidr} allocated to customer".
    255254          " $webvar{custid}\n".
Note: See TracChangeset for help on using the changeset viewer.