Name

CAPTCHA_IMAGE_SUBDIR — specify subdirectory containing "captcha" images

SYNOPSIS

subdirectory_name

DESCRIPTION

The variable specifies just a subdirectory name where the generated captcha image are to be saved, and from where they can be requested by clients.

VARIABLE TYPE

Catalog variable

EXAMPLES

Example:

Variable CAPTCHA_IMAGE_SUBDIR captcha/

NOTES

AVAILABILITY

CAPTCHA_IMAGE_SUBDIR is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: code/SystemTag/captcha.coretag
Line 44 (context shows lines 34-48)

$func =~ s/[^a-z]+//g;
my $result = '';
if($func eq 'code') {
  $result = $Vend::Session->{captcha};
}

$opt->{length} ||= 4;
my $en = $opt->{error_name} || 'captcha';

my $subdir = $opt->{image_subdir}
       || $::Variable->{CAPTCHA_IMAGE_SUBDIR}
       || 'captcha';
my $tmpdir = "$Vend::Cfg->{ScratchDir}/$subdir";

mkdir($tmpdir) unless -d $tmpdir;

AUTHORS

Interchange Development Group

SEE ALSO

CAPTCHA_IMAGE_PATH(7ic), CAPTCHA_IMAGE_LOCATION(7ic), DOCROOT(7ic)

DocBook! Interchange!