Name

CAPTCHA_IMAGE_LOCATION — specify directory containing generated "captcha" images

SYNOPSIS

directory_name

DESCRIPTION

The variable specifies a directory where the generated captcha image files should be saved to.

This directory must also be available as a web server location.

VARIABLE TYPE

Catalog variable

EXAMPLES

Example:

Variable CAPTCHA_IMAGE_LOCATION __DOCROOT__/images/captcha/

NOTES

AVAILABILITY

CAPTCHA_IMAGE_LOCATION is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: code/SystemTag/captcha.coretag
Line 50 (context shows lines 40-54)

$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;

my $imgdir = $opt->{image_location} || $::Variable->{CAPTCHA_IMAGE_LOCATION};

unless ($imgdir ) {
  if(! $Global::NoAbsolute and $::Variable->{DOCROOT}) {
     $imgdir = "$::Variable->{DOCROOT}$::Variable->{IMAGE_DIR}/$subdir";

AUTHORS

Interchange Development Group

SEE ALSO

CAPTCHA_IMAGE_SUBDIR(7ic), DOCROOT(7ic), CAPTCHA_IMAGE_PATH(7ic)

DocBook! Interchange!