Changeset 370 for trunk/cgi-bin/main.cgi
- Timestamp:
- 11/27/07 12:18:27 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r320 r370 1283 1283 } 1284 1284 1285 # need to retrieve block data before deleting so we can notify on that 1286 my ($cidr,$custid,$type,$city,$description) = getBlockData($ip_dbh, $webvar{block}); 1287 1285 1288 my ($code,$msg) = deleteBlock($ip_dbh, $webvar{block}, $webvar{alloctype}); 1286 1289 1287 1290 if ($code eq 'OK') { 1288 1291 print "<div class=heading align=center>Success! $webvar{block} deallocated.</div>\n"; 1289 syslog "notice", "$authuser deallocated '$webvar{alloctype}'-type netblock $webvar{block}"; 1292 syslog "notice", "$authuser deallocated '$webvar{alloctype}'-type netblock $webvar{block}". 1293 " $custid, $city, desc='$description'"; 1290 1294 # Notify tech@ when a block/IP is deallocated 1291 1295 # mailNotify('tech@example.com',"REMOVED: $disp_alloctypes{$webvar{alloctype}} $webvar{block}", 1292 # "$disp_alloctypes{$webvar{alloctype}} $webvar{block} deallocated by $authuser\n"); 1296 # "$disp_alloctypes{$webvar{alloctype}} $webvar{block} deallocated by $authuser\n". 1297 # "CustID: $custid\nCity: $city\nDescription: $description\n"); 1293 1298 } else { 1294 1299 if ($webvar{alloctype} =~ /^.i$/) {
Note:
See TracChangeset
for help on using the changeset viewer.