ILIAS
release_4-3 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilCaptchaUtil.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12
class
ilCaptchaUtil
13
{
20
static
function
isActive
()
21
{
22
global
$ilSetting
;
23
24
if
(function_exists(
"imageftbbox"
) &&
25
$ilSetting->get(
'activate_captcha_anonym'
))
26
{
27
return
true
;
28
}
29
return
false
;
30
}
31
38
static
function
checkFreetype
()
39
{
40
global
$ilSetting
;
41
42
if
(function_exists(
"imageftbbox"
))
43
{
44
return
true
;
45
}
46
return
false
;
47
}
48
55
static
function
getPreconditionsMessage
()
56
{
57
global
$lng
;
58
59
$lng->loadLanguageModule(
"cptch"
);
60
return
"<a target='_blank' href='http://php.net/manual/en/image.installation.php'>"
.$lng->txt(
"cptch_freetype_support_needed"
).
"</a>"
;
61
if
(function_exists(
"imageftbbox"
))
62
{
63
return
true
;
64
}
65
return
false
;
66
}
67
}
68
69
?>
Services
Captcha
classes
class.ilCaptchaUtil.php
Generated on Sat Apr 30 2016 19:00:52 for ILIAS by
1.8.1.2 (using
Doxyfile
)