| 1 | #!/usr/local/bin/perl | ||||||||||
| 2 | # | ||||||||||
| 3 | # HTML::EP - A Perl based HTML extension. | ||||||||||
| 4 | # | ||||||||||
| 5 | # | ||||||||||
| 6 | # Copyright (C) 1998 Jochen Wiedmann | ||||||||||
| 7 | # Am Eisteich 9 | ||||||||||
| 8 | # 72555 Metzingen | ||||||||||
| 9 | # Germany | ||||||||||
| 10 | # | ||||||||||
| 11 | # Phone: +49 7123 14887 | ||||||||||
| 12 | # Email: joe@ispsoft.de | ||||||||||
| 13 | # | ||||||||||
| 14 | # All rights reserved. | ||||||||||
| 15 | # | ||||||||||
| 16 | # You may distribute this module under the terms of either | ||||||||||
| 17 | # the GNU General Public License or the Artistic License, as | ||||||||||
| 18 | # specified in the Perl README file. | ||||||||||
| 19 | # | ||||||||||
| 20 | ############################################################################ | ||||||||||
| 21 | |||||||||||
| 22 | 2 | require 5.004; | |||||||||
| 23 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 24 | |||||||||||
| 25 | 2 | ▶ | use HTML::EP (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 26 | 2 | ▶ | use HTML::EP::Config (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 27 | |||||||||||
| 28 | |||||||||||
| 29 | 2 | $SIG{'__WARN__'} = \&HTML::EP::WarnHandler; | |||||||||
| 30 | 2 | my $self = HTML::EP->new(); | |||||||||
| 31 | 2 | ▶ | $ENV{'PATH_TRANSLATED'} = shift @ARGV if @ARGV; # For IIS | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | 2 | my $path = $ENV{'PATH_TRANSLATED'}; | |||||||||
| 33 | 2 | ▶ | if ($path =~ /(.*)[\/\\]/) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 34 | 0 | chdir $1; | |||||||||
| 35 | } | ||||||||||
| 36 | 2 | $self->CgiRun($path); | |||||||||
| 37 | |||||||||||
| 38 | 0 | exit 0; | |||||||||