Changeset 122 for branches/stable


Ignore:
Timestamp:
01/07/05 11:43:08 (20 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Added email notification for customer netblock ('cn') allocations
per user request

File:
1 edited

Legend:

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

    r121 r122  
    11781178    print qq(<div class="center"><div class="heading">The block $webvar{fullcidr} was sucessfully added as type '$webvar{alloctype}' ($disp_alloctypes{$webvar{alloctype}})</div></div>);
    11791179
     1180    if ($webvar{alloctype} eq 'cn') {
     1181      # Notify tech@example.com
     1182      mailNotify('tech@example.com',"$disp_alloctypes{$webvar{alloctype}} allocation",
     1183        "$disp_alloctypes{$webvar{alloctype}} $cidr allocated to customer $webvar{custid}\n".
     1184        "Description: $webvar{desc}\n\nAllocated by: $authuser\n");
     1185    }
     1186
    11801187  } # end static-IP vs netblock allocation
    11811188
Note: See TracChangeset for help on using the changeset viewer.