Aps and Linux

S

Ste

I'm sorry about what you wrote.

I'm not a spammer, this is a public administration server with

this code inside and a error somewhere near "if":

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Elezioni 2002 - Desenzano del Garda</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="cache-control" content="no-cache">
</head>

<body bgcolor="#FFFFFF" text="#000000" link="#660099" vlink="#999900"
alink="#CC9933">

<%
ipric = Request.ServerVariables("REMOTE_ADDR")
If (InStr(ipric,"10.2")>0) Then

Response.Redirect("http://delibereweb.onde.net:8081/cgi-bin/dati/atti1.mac/i
nput?")
ElseIf (InStr(ipric,"10.1")>0) Then

Response.Redirect("http://delibereweb.onde.net:8081/cgi-bin/dati/atti1.mac/i
nput?")
ElseIf (InStr(ipric,"172.")>0) Then
Response.Redirect("http://as400.onde.net/cgi-bin/dati/atti1.mac/input?")
ElseIf (InStr(ipric,"10.3")>0) Then
Response.Redirect("http://as400.onde.net/cgi-bin/dati/atti1.mac/input?")
Else

Response.Redirect("http://www.onde.net:8081/cgi-bin/dati/atti1.mac/input?")
End If
%>

<body>

</html>
"Josef Möllers" <[email protected]> ha scritto nel
messaggio
Ste said:
Hi all, with my old win2k server iis i had this file working, but with linux
and apache i have a problem:

http://delibere.onde.net/rimando.asp

I wouldn't touch that URL even with asbestos gloves.
interbusiness.it is one of the main sources of SPAM that I receive.
 
J

Jürgen Exner

Ste said:
this is a public administration server with
this code inside and a error somewhere near "if": [...]
If (InStr(ipric,"10.2")>0) Then
[...]

Case matters in Perl, the "if" should be all lower case.
And the "then" should be an opening curly bracket.

Is this even Perl code at all?

jue
 
J

James Willmore

On Fri, 31 Oct 2003 13:33:42 +0100
<snip>

This is ASP code, not Perl.

Wrong group :-(

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
The debate rages on: Is PL/I Bachtrian or Dromedary?
 
C

Chris Mattern

James said:
On Fri, 31 Oct 2003 13:33:42 +0100
<snip>

This is ASP code, not Perl.

Wrong group :-(

Nope, it's "Aps" code. The OP said so.

Chris Mattern
 
J

James Willmore

Nope, it's "Aps" code. The OP said so.

Chris Mattern

Sorry, but I believe the OP is mistaken. It appears, to me, to be
ASP. ASP is very similar to Visual Basic and it appears from the code
published that it's ASP (because of the syntax used).

But, of course, I could be wrong :)

In any event, It don't look, talk, etc. like Perl code :)

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
I have great faith in fools -- self confidence my friends call
<it. -- Edgar Allan Poe
 
T

Tintin

James Willmore said:
Sorry, but I believe the OP is mistaken. It appears, to me, to be
ASP. ASP is very similar to Visual Basic and it appears from the code
published that it's ASP (because of the syntax used).

But, of course, I could be wrong :)

Your sarcasm radar should have been turned up a little more.
 
B

Bryan Castillo

James Willmore said:
Sorry, but I believe the OP is mistaken. It appears, to me, to be
ASP. ASP is very similar to Visual Basic and it appears from the code

VBScript can be used within ASP, but many languages can be used in
ASP,
including perl (well on IIS you would need to use PerlScript from
ActiveState,
which allows perl to be used from WSH).
published that it's ASP (because of the syntax used).

But, of course, I could be wrong :)

In any event, It don't look, talk, etc. like Perl code :)

Interestingly enough, if you check the URL the user posted for the
script
you will see errors with references to Apache::ASP, which from what I
know only
supports perl as its scripting language.

I imagine the user tried to put an ASP page using VBScript as the
scripting
language on Apache::ASP. Perhaps the user read that perl was used for
Apache::ASP and came here.

Anyway, you have to convert all the stuff between <% and %> to perl
(from whatever language you used VB, JScript, Python, Perl, etc....

The objects such as Request and Session should be the same. Instead
of
Request.method() it would be Request->method(). Check the Apache::ASP
website.
 
J

James Willmore

On 2 Nov 2003 22:09:06 -0800
VBScript can be used within ASP, but many languages can be used in
ASP,
including perl (well on IIS you would need to use PerlScript from
ActiveState,
which allows perl to be used from WSH).


Interestingly enough, if you check the URL the user posted for the
script
you will see errors with references to Apache::ASP, which from what
I know only
supports perl as its scripting language.

I imagine the user tried to put an ASP page using VBScript as the
scripting
language on Apache::ASP. Perhaps the user read that perl was used
for Apache::ASP and came here.

Anyway, you have to convert all the stuff between <% and %> to perl
(from whatever language you used VB, JScript, Python, Perl, etc....

The objects such as Request and Session should be the same. Instead
of
Request.method() it would be Request->method(). Check the
Apache::ASP website.

I didn't check the website :-(

And now, I've learned something new today :)

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
The moon is a planet just like the Earth, only it is even deader.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,366
Latest member
IanCulpepp

Latest Threads

Top