ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilCaptchaUtil Class Reference

Captcha util. More...

+ Collaboration diagram for ilCaptchaUtil:

Static Public Member Functions

static isActive ()
 Check whether captcha support is active.
static checkFreetype ()
 Check whether captcha support is active.
static getPreconditionsMessage ()
 Check whether captcha support is active.

Detailed Description

Captcha util.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 12 of file class.ilCaptchaUtil.php.

Member Function Documentation

static ilCaptchaUtil::checkFreetype ( )
static

Check whether captcha support is active.

Parameters
@return

Definition at line 38 of file class.ilCaptchaUtil.php.

References $ilSetting.

Referenced by ilObjSystemFolderGUI\initBasicSettingsForm().

{
global $ilSetting;
if (function_exists("imageftbbox"))
{
return true;
}
return false;
}

+ Here is the caller graph for this function:

static ilCaptchaUtil::getPreconditionsMessage ( )
static

Check whether captcha support is active.

Parameters
@return

Definition at line 55 of file class.ilCaptchaUtil.php.

References $lng.

Referenced by ilObjSystemFolderGUI\initBasicSettingsForm().

{
global $lng;
$lng->loadLanguageModule("cptch");
return "<a target='_blank' href='http://php.net/manual/en/image.installation.php'>".$lng->txt("cptch_freetype_support_needed")."</a>";
if (function_exists("imageftbbox"))
{
return true;
}
return false;
}

+ Here is the caller graph for this function:

static ilCaptchaUtil::isActive ( )
static

Check whether captcha support is active.

Parameters
@return

Definition at line 20 of file class.ilCaptchaUtil.php.

References $ilSetting.

Referenced by ilPageObjectGUI\edit().

{
global $ilSetting;
if (function_exists("imageftbbox") &&
$ilSetting->get('activate_captcha_anonym'))
{
return true;
}
return false;
}

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: