%@ LANGUAGE = PerlScript%>
|
<%
use Win32::OLE::Const;
my $ado = Win32::OLE::Const->Load('Microsoft ActiveX Data Objects 2.5');
foreach my $key (keys %$ado) {
$Response->Write(<
EOF
}
%>
<%
$url = $Request->ServerVariables('PATH_INFO')->item;
$_ = $Request->ServerVariables('PATH_TRANSLATED')->item;
s/[\/\\](\w*\.asp\Z)//m;
$params = 'filename='."$1".'&URL='."$url";
$params =~ s#([^a-zA-Z0-9&_.:%/-\\]{1})#uc '%' . unpack('H2', $1)#eg;
%>
Return
view the source