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

/branches/stable

Backport email notification for static IP assignments from /trunk
r66, r68, r69, and r70

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/main.cgi

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