How? dtl forms: Add & parse Perl statements

Moderator: crythias

Locked
otrswannabe1
Znuny newbie
Posts: 20
Joined: 07 May 2010, 11:52
Znuny Version: 2.4.7

How? dtl forms: Add & parse Perl statements

Post by otrswannabe1 »

Hello.

I need to add and parse Perl code to .dtl <form...> e.g. print() et al.

How can this be done?

Thanks.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How? dtl forms: Add & parse Perl statements

Post by crythias »

Can you provide more specific information on what you wish to accomplish?
From my cursory perusal of the code, .dtl's are parsed with Layout.pm to fill information that is passed to it and requested from it via variable lookup substitutions. They aren't designed to provide perl statements. They're designed to format output.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
otrswannabe1
Znuny newbie
Posts: 20
Joined: 07 May 2010, 11:52
Znuny Version: 2.4.7

Re: How? dtl forms: Add & parse Perl statements

Post by otrswannabe1 »

Thanks for your reply, crythias.

I'm trying to add reCaptcha.

It calls for adding a Perl print() statement within the <form...> code. (ref: http://search.cpan.org/dist/Captcha-reC ... CAPTCHA.pm)

I tried using the $Text{...} which printed the code, but it did not parse it, which is kind of what I expected.

Thanks.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How? dtl forms: Add & parse Perl statements

Post by crythias »

Are you trying to prevent automated generation of tickets from customers who are already logged into your customer.pl page? (or brute force attacks on the login?)
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
otrswannabe1
Znuny newbie
Posts: 20
Joined: 07 May 2010, 11:52
Znuny Version: 2.4.7

Re: How? dtl forms: Add & parse Perl statements

Post by otrswannabe1 »

Thanks again for your reply, crythias.

I want to add it to the customer.pl signup (Create Account) section.

Thanks.
otrswannabe1
Znuny newbie
Posts: 20
Joined: 07 May 2010, 11:52
Znuny Version: 2.4.7

Re: How? dtl forms: Add & parse Perl statements

Post by otrswannabe1 »

bump
Locked