Changeset 70 for trunk


Ignore:
Timestamp:
11/15/04 12:37:23 (20 years ago)
Author:
Kris Deugau
Message:

/trunk

Add email notification for static IP assignment

  • tech@…
File:
1 edited

Legend:

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

    r63 r70  
    4646
    4747my %full_alloc_types = (
    48         "ci","Cable pool IP",
    49         "di","DSL pool IP",
     48        "ci","Static cable IP",
     49        "di","Static DSL IP",
    5050        "si","Server pool IP",
    5151        "mi","Static dialup IP",
     
    986986    print qq(<div class="center"><div class="heading">The IP $cidr has been allocated to customer $webvar{custid}</div></div>);
    987987    syslog "notice", "$authuser allocated $cidr to $webvar{custid}";
     988# Notify tech@example.com
     989    mailNotify('tech@example.com','$full_alloc_types{$webvar{alloctype}} allocation',
     990        "$full_alloc_types{$webvar{alloctype}} $cidr allocated to customer $webvar{custid}");
    988991
    989992  } else { # end IP-from-pool allocation
Note: See TracChangeset for help on using the changeset viewer.