-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwork.pl
63 lines (48 loc) · 1.35 KB
/
work.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/perl
use Template;
use DBI;
use CGI::Fast qw(:standard);
#use FCGI::ProcManager;
#use FCGI::ProcManager qw(pm_manage pm_pre_dispatch pm_post_dispatch);
#use FCGI::ProcManager qw(pm_manage pm_die pm_exit pm_pre_dispatch pm_post_dispatch);
#print "Content-type: text/html\n\n";
#my $proc_manager = FCGI::ProcManager->new({ n_processes => 50, pm_title=> 'processmanager: work.fcgi ' });
#pm_manage( n_processes => 5 );
use CGI::Cookie;
use CGI::Carp qw/croak fatalsToBrowser/;
use Data::Dumper;
use MIME::Lite;
use MIME::Base64;
use lib 'lib';
use basket_par; # ðàáîòà ñ êîðçèíîé
use send_msg_html; # îòïðàâêà HTML ïèñåì
#use db;
#use capture; # êàï÷à
# - sanman --
use Encode;
#------------
#use strict;
require 'lib/db.pm';
our $system=&get_system;
$system->{debug}=1;
$system->{fast_cgi_maxcount}=7;
$system->{logname}='log_cgi';
our $CACHE; # ññûëêà íà êåø
##########
=cut
my $WR555;
open $WR555, ">>/tmp/dump_20_02_001";
print $WR555 "_____________________\n".`date`."\n";
print $WR555 Data::Dumper->Dump( [ $ENV{HTTP_REFERER} ], ['$ENV{HTTP_REFERER}'] );
print $WR555 Data::Dumper->Dump( [ $ENV{HTTP_X_FORWARDED_FOR} ], ['$ENV{HTTP_X_FORWARDED_FOR}'] );
close $WR555;
=cut
##########
#while (new CGI::Fast) {
while (CGI::Fast->new){
#pm_pre_dispatch();
#print "Content-type: text/html\n\n";
#print "ZZZ";
our $params;
&fcgi_loop;
}