Changeset 891 for trunk/cgi-bin
- Timestamp:
- 10/31/16 15:45:27 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/ipdb-rpc.cgi
r890 r891 96 96 my $reqcnt = 0; 97 97 98 my $req = FCGI::Request(); 99 98 100 # main FCGI loop. 99 while ( FCGI::accept>= 0) {101 while ($req->Accept() >= 0) { 100 102 # done here to a) prevent $ENV{'REMOTE_ADDR'} from being empty and b) to collect 101 103 # the right user for the individual call (since we may be running with FCGI) … … 261 263 mailNotify($ip_dbh, "a$args{type}", "ADDED: $disp_alloctypes{$args{type}} allocation", 262 264 "$disp_alloctypes{$args{type}} $msg allocated to customer $args{custid}\n". 263 "Description: $args{desc}\n\nAllocated by: $args{rpcsystem}/$args{rpcuser}\n"); 265 "Description: $args{desc}\n\nAllocated by: $args{rpcsystem}/$args{rpcuser}\n") 266 unless $args{nomail}; 264 267 } else { 265 268 my $netblock = new NetAddr::IP $args{block}; 266 269 mailNotify($ip_dbh, "a$args{type}", "ADDED: $disp_alloctypes{$args{type}} allocation", 267 270 "$disp_alloctypes{$args{type}} $args{block} allocated to customer $args{custid}\n". 268 "Description: $args{desc}\n\nAllocated by: $args{rpcsystem}/$args{rpcuser}\n"); 271 "Description: $args{desc}\n\nAllocated by: $args{rpcsystem}/$args{rpcuser}\n") 272 unless $args{nomail}; 269 273 } 270 274 syslog "notice", "$args{rpcsystem}/$args{rpcuser} allocated '$args{block}' to '$args{custid}' as ". … … 343 347 "$disp_alloctypes{$blockinfo->{type}} $blockinfo->{block} deallocated by $authuser\n". 344 348 "CustID: $blockinfo->{custid}\nCity: $blockinfo->{city}\n". 345 "Description: $blockinfo->{description}\n"); 349 "Description: $blockinfo->{description}\n") 350 unless $args{nomail}; 346 351 } else { 347 352 if ($args{type} =~ /^.i$/) {
Note:
See TracChangeset
for help on using the changeset viewer.