Changeset 405


Ignore:
Timestamp:
05/12/10 16:07:37 (14 years ago)
Author:
Kris Deugau
Message:

/trunk

Add, in comments, mail notifications present in /branches/stable
but not in /trunk. See #13.

File:
1 edited

Legend:

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

    r402 r405  
    906906                qq(">Add this netblock to RADIUS user table</a></div>)
    907907        : "</div>");
    908     }
     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");
     911    }
     912
    909913    syslog "notice", "$authuser allocated '$webvar{fullcidr}' to '$webvar{custid}' as ".
    910914        "'$webvar{alloctype}' ($msg)";
     
    11181122if ($data[2] =~ /.i/) {
    11191123  $html =~ s/\$\$SWIP\$\$/N\/A/;
    1120 } else {
     11245~} else {
    11211125  my $tmp = (($data[10] eq 'n') ? '<input type=checkbox name=swip>' :
    11221126        '<input type=checkbox name=swip checked=yes>');
     
    12221226  # If we get here, the operation succeeded.
    12231227  syslog "notice", "$authuser updated $webvar{block}";
     1228#mailNotify('nocmgr@example.com',"SWIPed: $disp_alloctypes{$webvar{alloctype}} $webvar{block}",
     1229#       "$webvar{block} had SWIP status changed to \"Yes\" by $authuser");
    12241230  open (HTML, "../updated.html")
    12251231        or croak "Could not open updated.html :$!";
     
    14011407#       "$disp_alloctypes{$webvar{alloctype}} $webvar{block} deallocated by $authuser\n".
    14021408#       "CustID: $custid\nCity: $city\nDescription: $description\n");
     1409#    mailNotify('nocmgr@example.com',"REMOVED: $disp_alloctypes{$webvar{alloctype}} $webvar{block}",
     1410#       "$disp_alloctypes{$webvar{alloctype}} $webvar{block} deallocated by $authuser\n".
     1411#       "CustID: $custid\nCity: $city\nDescription: $description\n");
    14031412  } else {
    14041413    if ($webvar{alloctype} =~ /^.i$/) {
Note: See TracChangeset for help on using the changeset viewer.