Changeset 356 for branches/stable/cgi-bin/main.cgi
- Timestamp:
- 01/05/07 10:50:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/main.cgi
r338 r356 1298 1298 } 1299 1299 1300 # need to retrieve block data before deleting so we can notify on that 1301 my ($cidr,$custid,$type,$city,$description) = getBlockData($ip_dbh, $webvar{block}); 1302 1300 1303 my ($code,$msg) = deleteBlock($ip_dbh, $webvar{block}, $webvar{alloctype}); 1301 1304 1302 1305 if ($code eq 'OK') { 1303 1306 print "<div class=heading align=center>Success! $webvar{block} deallocated.</div>\n"; 1304 syslog "notice", "$authuser deallocated '$webvar{alloctype}'-type netblock $webvar{block}"; 1307 syslog "notice", "$authuser deallocated '$webvar{alloctype}'-type netblock $webvar{block}". 1308 " $custid, $city, desc='$description'"; 1305 1309 # Notify tech@ when a block/IP is deallocated 1306 1310 mailNotify('tech@example.com',"REMOVED: $disp_alloctypes{$webvar{alloctype}} $webvar{block}", 1307 "$disp_alloctypes{$webvar{alloctype}} $webvar{block} deallocated by $authuser\n"); 1311 "$disp_alloctypes{$webvar{alloctype}} $webvar{block} deallocated by $authuser\n". 1312 "CustID: $custid\nCity: $city\nDescription: $description\n"); 1308 1313 } else { 1309 1314 if ($webvar{alloctype} =~ /^.i$/) {
Note:
See TracChangeset
for help on using the changeset viewer.