Changeset 408


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

/branches/stable

Comment out mailNotify calls to prepare to accept merge of redesigned
notifications. See #2, #13.

File:
1 edited

Legend:

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

    r407 r408  
    892892        : "</div>");
    893893      # Notify tech@example.com
    894       mailNotify('tech@example.com',"ADDED: $disp_alloctypes{$webvar{alloctype}} allocation",
    895         "$disp_alloctypes{$webvar{alloctype}} $msg allocated to customer $webvar{custid}\n".
    896         "Description: $webvar{desc}\n\nAllocated by: $authuser\n");
     894#      mailNotify('tech@example.com',"ADDED: $disp_alloctypes{$webvar{alloctype}} allocation",
     895#       "$disp_alloctypes{$webvar{alloctype}} $msg allocated to customer $webvar{custid}\n".
     896#       "Description: $webvar{desc}\n\nAllocated by: $authuser\n");
    897897    } else {
    898898      my $netblock = new NetAddr::IP $webvar{fullcidr};
     
    906906                qq(">Add this netblock to RADIUS user table</a></div>)
    907907        : "</div>");
    908       mailNotify('nocmgr@example.com',"ADDED: $disp_alloctypes{$webvar{alloctype}} allocation",
    909         "$disp_alloctypes{$webvar{alloctype}} $webvar{fullcidr} allocated to customer $webvar{custid}\n".
    910         "Description: $webvar{desc}\n\nAllocated by: $authuser\n");
     908#      mailNotify('nocmgr@example.com',"ADDED: $disp_alloctypes{$webvar{alloctype}} allocation",
     909#       "$disp_alloctypes{$webvar{alloctype}} $webvar{fullcidr} allocated to customer $webvar{custid}\n".
     910#       "Description: $webvar{desc}\n\nAllocated by: $authuser\n");
    911911    }
    912912    syslog "notice", "$authuser allocated '$webvar{fullcidr}' to '$webvar{custid}' as ".
     
    12251225  # If we get here, the operation succeeded.
    12261226  syslog "notice", "$authuser updated $webvar{block}";
    1227 mailNotify('nocmgr@example.com',"SWIPed: $disp_alloctypes{$webvar{alloctype}} $webvar{block}",
    1228         "$webvar{block} had SWIP status changed to \"Yes\" by $authuser");
     1227#mailNotify('nocmgr@example.com',"SWIPed: $disp_alloctypes{$webvar{alloctype}} $webvar{block}",
     1228#       "$webvar{block} had SWIP status changed to \"Yes\" by $authuser");
    12291229  open (HTML, "../updated.html")
    12301230        or croak "Could not open updated.html :$!";
     
    14031403        " $custid, $city, desc='$description'";
    14041404    # Notify tech@ when a block/IP is deallocated
    1405     mailNotify('tech@example.com',"REMOVED: $disp_alloctypes{$webvar{alloctype}} $webvar{block}",
    1406         "$disp_alloctypes{$webvar{alloctype}} $webvar{block} deallocated by $authuser\n".
    1407         "CustID: $custid\nCity: $city\nDescription: $description\n");
    1408     mailNotify('nocmgr@example.com',"REMOVED: $disp_alloctypes{$webvar{alloctype}} $webvar{block}",
    1409         "$disp_alloctypes{$webvar{alloctype}} $webvar{block} deallocated by $authuser\n".
    1410         "CustID: $custid\nCity: $city\nDescription: $description\n");
     1405#    mailNotify('tech@example.com',"REMOVED: $disp_alloctypes{$webvar{alloctype}} $webvar{block}",
     1406#       "$disp_alloctypes{$webvar{alloctype}} $webvar{block} deallocated by $authuser\n".
     1407#       "CustID: $custid\nCity: $city\nDescription: $description\n");
     1408#    mailNotify('nocmgr@example.com',"REMOVED: $disp_alloctypes{$webvar{alloctype}} $webvar{block}",
     1409#       "$disp_alloctypes{$webvar{alloctype}} $webvar{block} deallocated by $authuser\n".
     1410#       "CustID: $custid\nCity: $city\nDescription: $description\n");
    14111411  } else {
    14121412    if ($webvar{alloctype} =~ /^.i$/) {
Note: See TracChangeset for help on using the changeset viewer.