Table of contents
Source: shared/config.default/tce_config.php
Shared configuration file.
Constants
K_ANSWER_TEXTAREA_COLS
Number of columns for answer textarea.
const K_ANSWER_TEXTAREA_COLS = 70
Source: shared/config.default/tce_config.php:104
K_ANSWER_TEXTAREA_ROWS
Number of rows for answer textarea.
const K_ANSWER_TEXTAREA_ROWS = 15
Source: shared/config.default/tce_config.php:109
K_AVAILABLE_LANGUAGES
Defines a serialized array of available languages.
Each language is indexed using a 2-letters code (ISO 639).
const K_AVAILABLE_LANGUAGES = \serialize(['ar' => 'Arabian', 'az' => 'Azerbaijani', 'bg' => 'Bulgarian', 'br' => 'Brazilian Portuguese', 'cn' => 'Chinese', 'de' => 'German', 'el' => 'Greek', 'en' => 'English', 'es' => 'Spanish', 'fa' => 'Farsi', 'fr' => 'French', 'he' => 'Hebrew', 'hi' => 'Hindi', 'hu' => 'Hungarian', 'id' => 'Indonesian', 'it' => 'Italian', 'jp' => 'Japanese', 'mr' => 'Marathi', 'ms' => 'Malay (Bahasa Melayu)
// … truncated, see source
Source: shared/config.default/tce_config.php:43
K_BRUTE_FORCE_DELAY_RATIO
Ratio at which the delay will be increased after every failed login attempt.
const K_BRUTE_FORCE_DELAY_RATIO = 2
Source: shared/config.default/tce_config.php:84
K_CHECK_SESSION_FINGERPRINT
If true, check for possible session hijacking (set to false if you have login problems).
const K_CHECK_SESSION_FINGERPRINT = \true
Source: shared/config.default/tce_config.php:156
K_COOKIE_DOMAIN
Cookie domain.
const K_COOKIE_DOMAIN = ''
Source: shared/config.default/tce_config.php:163
K_COOKIE_EXPIRE
Expiration time for cookies.
const K_COOKIE_EXPIRE = \K_SECONDS_IN_DAY
Source: shared/config.default/tce_config.php:188
K_COOKIE_HTTPONLY
When true the cookie will be made accessible only through the HTTP protocol.
const K_COOKIE_HTTPONLY = \true
Source: shared/config.default/tce_config.php:178
K_COOKIE_PATH
Cookie path.
const K_COOKIE_PATH = '/'
Source: shared/config.default/tce_config.php:168
K_COOKIE_SAMESITE
The SameSite attribute lets servers specify whether/when cookies are sent with cross-site requests.
const K_COOKIE_SAMESITE = 'Strict'
Source: shared/config.default/tce_config.php:183
K_COOKIE_SECURE
If true use secure cookies.
const K_COOKIE_SECURE = \true
Source: shared/config.default/tce_config.php:173
K_CUSTOM_AUTH_METHODS
Lisf of enabled custom authentication methods.
Add your custom authentication methods here.
const K_CUSTOM_AUTH_METHODS = \serialize([])
Source: shared/config.default/tce_config.php:306
K_DISPLAY_TEST_DESCRIPTION
If true display test description before executing the test.
const K_DISPLAY_TEST_DESCRIPTION = \true
Source: shared/config.default/tce_config.php:124
K_ENABLE_ANSWER_EXPLANATION
If true enable explanation field for answers.
const K_ENABLE_ANSWER_EXPLANATION = \true
Source: shared/config.default/tce_config.php:119
K_ENABLE_JSERRORS
If true display messages and errors on Javascript popup window.
const K_ENABLE_JSERRORS = \false
Source: shared/config.default/tce_config.php:225
K_ENABLE_QUESTION_EXPLANATION
If true enable explanation field for questions.
const K_ENABLE_QUESTION_EXPLANATION = \true
Source: shared/config.default/tce_config.php:114
K_ERROR_TYPES
Define error reporting types for debug.
const K_ERROR_TYPES = \E_ALL | \E_STRICT
Source: shared/config.default/tce_config.php:214
K_EXTEND_TIME_MINUTES
Default minutes used to extend test duration.
const K_EXTEND_TIME_MINUTES = 5
Source: shared/config.default/tce_config.php:237
K_LANGUAGE
2-letters code for default language.
const K_LANGUAGE = 'en'
Source: shared/config.default/tce_config.php:32
K_LANGUAGE_SELECTOR
If true, display a language selector.
const K_LANGUAGE_SELECTOR = \true
Source: shared/config.default/tce_config.php:37
K_LOGOUT_URL
URL to be redirected at logout (leave empty for default).
const K_LOGOUT_URL = ''
Source: shared/config.default/tce_config.php:207
K_OTP_LOGIN
If true enable One-Time-Password authentication on login.
const K_OTP_LOGIN = \false
Source: shared/config.default/tce_config.php:79
K_PASSWORD_RESET
If true enable password reset feature.
const K_PASSWORD_RESET = \true
Source: shared/config.default/tce_config.php:202
K_QUESTION_DIFFICULTY_LEVELS
Number of difficulty levels for questions.
const K_QUESTION_DIFFICULTY_LEVELS = 10
Source: shared/config.default/tce_config.php:89
K_QUESTION_LINE_MAX_LENGTH
Define max line length in chars for question navigator on test execution interface.
const K_QUESTION_LINE_MAX_LENGTH = 70
Source: shared/config.default/tce_config.php:151
K_REDIRECT_LOGIN_MODE
Various pages redirection modes after login (valid values are 1, 2, 3 and 4).
1 = relative redirect. 2 = absolute redirect. 3 = html redirect. 4 = full redirect.
const K_REDIRECT_LOGIN_MODE = 4
Source: shared/config.default/tce_config.php:197
K_SESSION_LIFE
User’s session life time in seconds.
const K_SESSION_LIFE = \K_SECONDS_IN_HOUR
Source: shared/config.default/tce_config.php:134
K_SHORT_ANSWERS_BINARY
If true compare short answers in binary mode.
const K_SHORT_ANSWERS_BINARY = \false
Source: shared/config.default/tce_config.php:129
K_TCEXAM_VERSION
TCExam version (do not change).
const K_TCEXAM_VERSION = \file_get_contents('../../VERSION')
Source: shared/config.default/tce_config.php:27
K_TEST_INFO_HEIGHT
Popup window height in pixels for test info.
const K_TEST_INFO_HEIGHT = 400
Source: shared/config.default/tce_config.php:94
K_TEST_INFO_WIDTH
Popup window width in pixels for test info.
const K_TEST_INFO_WIDTH = 700
Source: shared/config.default/tce_config.php:99
K_TIMESTAMP_FORMAT
Define timestamp format using PHP notation (do not change).
const K_TIMESTAMP_FORMAT = 'Y-m-d H:i:s'
Source: shared/config.default/tce_config.php:146
K_TIMEZONE
Set your own timezone here.
Possible values are listed on: http://php.net/manual/en/timezones.php
const K_TIMEZONE = 'UTC'
Source: shared/config.default/tce_config.php:232
K_USE_ERROR_LOG
Enable error logs (../log/tce_errors.log).
const K_USE_ERROR_LOG = \false
Source: shared/config.default/tce_config.php:220
K_USER_GROUP_RSYNC
When an alternate authentication method is used, if this constant is true the default user groups for the selected authentication method are always added to the user.
const K_USER_GROUP_RSYNC = \false