File: TestApp2.pm

package info (click to toggle)
libcgi-application-plugin-captcha-perl 0.04-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 172 kB
  • sloc: perl: 263; makefile: 4
file content (35 lines) | stat: -rw-r--r-- 686 bytes parent folder | download | duplicates (4)
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
package TestApp2;

use strict;
use base "CGI::Application";
use CGI::Application::Plugin::CAPTCHA;

sub setup
{
    my $self = shift;

    $self->start_mode('create');
    $self->run_modes([ qw/create/ ]);
    $self->captcha_config(
        IMAGE_OPTIONS    => {
            width   => 150,
            height  => 40,
            lines   => 10,
            gd_font => "giant",
            bgcolor => "#FFFF00",
        },
        CREATE_OPTIONS   => [ 'normal', 'rect' ],
        PARTICLE_OPTIONS => [ 300 ],
        SECRET           => 'vbCrfzMCi45TD7Uz4C6fjWvX6us',
        DEBUG            => 1,
    );
}

sub create 
{
    my $self = shift;
    return $self->captcha_create;
}

1;