shared_2config_2tce__config_8php

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
tce_config.php File Reference

Namespaces

 com\tecnick\tcexam\shared\cfg
 TCExam Main Configuration.
 

Functions

if(!defined(‘PHP_VERSION_ID’)) if(PHP_VERSION_ID< 50300) foreach($_REQUEST as $postkey=> $postvalue) addSlashesArray ($data)
 

Variables

const K_TCEXAM_VERSION ‘13.1.1’
 
const K_LANGUAGE ‘en’
 
const K_LANGUAGE_SELECTOR true
 
const K_AVAILABLE_LANGUAGES serialize(array( ‘ar’ => ‘Arabian’, ‘az’ => ‘Azerbaijani’, ‘bg’ => ‘Bulgarian’, ‘br’ => ‘Brazilian Portuguese’, ‘cn’ => ‘Chinese’, ‘de’ => ‘German’, ‘el’ => ‘Greek’, ‘en’ => ‘English’, ‘es’ => ‘Spanish’, ‘fa’ => ‘Farsi’, ‘fr’ => ‘French’, ‘hi’ => ‘Hindi’, ‘he’ => ‘Hebrew’, ‘hu’ => ‘Hungarian’, ‘id’ => ‘Indonesian’, ‘it’ => ‘Italian’, ‘jp’ => ‘Japanese’, ‘mr’ => ‘Marathi’, ‘ms’ => ‘Malay (Bahasa Melayu)’, ‘nl’ => ‘Dutch’, ‘pl’ => ‘Polish’, ‘ro’ => ‘Romanian’, ‘ru’ => ‘Russian’, ‘tr’ => ‘Turkish’, ‘vn’ => ‘Vietnamese’ ))
 
const K_OTP_LOGIN false
 
const K_BRUTE_FORCE_DELAY_RATIO 0
 
const K_QUESTION_DIFFICULTY_LEVELS 10
 
const K_ENABLE_VIRTUAL_KEYBOARD true
 
const K_TEST_INFO_HEIGHT 400
 
const K_TEST_INFO_WIDTH 700
 
const K_ANSWER_TEXTAREA_COLS 70
 
const K_ANSWER_TEXTAREA_ROWS 15
 
const K_ENABLE_QUESTION_EXPLANATION true
 
const K_ENABLE_ANSWER_EXPLANATION true
 
const K_DISPLAY_TEST_DESCRIPTION true
 
const K_SHORT_ANSWERS_BINARY false
 
const K_SESSION_LIFE K_SECONDS_IN_HOUR
 
const K_USER_GROUP_RSYNC false
 
const K_TIMESTAMP_FORMAT ‘Y-m-d H:i:s’
 
const K_QUESTION_LINE_MAX_LENGTH 70
 
const K_CHECK_SESSION_FINGERPRINT true
 
const K_STRONG_PASSWORD_ENCRYPTION true
 
const K_COOKIE_DOMAIN
 
const K_COOKIE_PATH ‘/’
 
const K_COOKIE_SECURE false
 
const K_COOKIE_EXPIRE K_SECONDS_IN_DAY
 
const K_REDIRECT_LOGIN_MODE 4
 
const K_PASSWORD_RESET TRUE
 
const K_LOGOUT_URL
 
const K_ERROR_TYPES E_ALL | E_STRICT
 
const K_USE_ERROR_LOG false
 
const K_ENABLE_JSERRORS false
 
const K_TIMEZONE ‘UTC’
 
const K_EXTEND_TIME_MINUTES 5
 
if(isset($_REQUEST[‘lang’]) AND(strlen($_REQUEST[‘lang’])==2) AND(array_key_exists($_REQUEST[‘lang’], unserialize(K_AVAILABLE_LANGUAGES)))) elseif(isset($_COOKIE[‘SessionUserLang’]) AND(strlen($_COOKIE[‘SessionUserLang’])==2) AND(array_key_exists($_COOKIE[‘SessionUserLang’], unserialize(K_AVAILABLE_LANGUAGES)))) else
 
 $lang_resources = new TMXResourceBundle(K_PATH_TMX_FILE, K_USER_LANG, K_PATH_LANG_CACHE.basename(K_PATH_TMXFILE, ‘.xml’).’’.K_USER_LANG.‘.php’)
 
 $l = $lang_resources->getResource()
 

Detailed Description

Shared configuration file.

Function Documentation

if (!defined(‘PHP_VERSION_ID’)) if (PHP_VERSION_ID< 50300) foreach ($_REQUEST as $postkey=> $postvalue) addSlashesArray (   $data)

Escape strings with backslashes before characters that need to be escaped. These characters are single quote (‘), double quote (“), backslash () and NUL (the NULL byte).

Parameters
$data(array|string) String or array to escape
Returns
array|string

Variable Documentation

$l = $lang_resources->getResource()

$lang_resources = new TMXResourceBundle(K_PATH_TMX_FILE, K_USER_LANG, K_PATH_LANG_CACHE.basename(K_PATH_TMXFILE, ‘.xml’).’’.K_USER_LANG.‘.php’)

if (isset($_REQUEST[‘lang’]) AND(strlen($_REQUEST[‘lang’])==2) AND(array_key_exists($_REQUEST[‘lang’], unserialize(K_AVAILABLE_LANGUAGES)))) elseif (isset($_COOKIE[‘SessionUserLang’]) AND(strlen($_COOKIE[‘SessionUserLang’])==2) AND(array_key_exists($_COOKIE[‘SessionUserLang’], unserialize(K_AVAILABLE_LANGUAGES)))) else
Initial value:
{
define ('K_USER_LANG', K_LANGUAGE)
const K_LANGUAGE
Definition: tce_config.php:40

Error handlers.

const K_ANSWER_TEXTAREA_COLS 70

Number of columns for answer textarea.

const K_ANSWER_TEXTAREA_ROWS 15

Number of rows for answer textarea.

const K_AVAILABLE_LANGUAGES serialize(array( ‘ar’ => ‘Arabian’, ‘az’ => ‘Azerbaijani’, ‘bg’ => ‘Bulgarian’, ‘br’ => ‘Brazilian Portuguese’, ‘cn’ => ‘Chinese’, ‘de’ => ‘German’, ‘el’ => ‘Greek’, ‘en’ => ‘English’, ‘es’ => ‘Spanish’, ‘fa’ => ‘Farsi’, ‘fr’ => ‘French’, ‘hi’ => ‘Hindi’, ‘he’ => ‘Hebrew’, ‘hu’ => ‘Hungarian’, ‘id’ => ‘Indonesian’, ‘it’ => ‘Italian’, ‘jp’ => ‘Japanese’, ‘mr’ => ‘Marathi’, ‘ms’ => ‘Malay (Bahasa Melayu)’, ‘nl’ => ‘Dutch’, ‘pl’ => ‘Polish’, ‘ro’ => ‘Romanian’, ‘ru’ => ‘Russian’, ‘tr’ => ‘Turkish’, ‘vn’ => ‘Vietnamese’ ))

Defines a serialized array of available languages. Each language is indexed using a 2-letters code (ISO 639).

const K_BRUTE_FORCE_DELAY_RATIO 0

Ratio at which the delay will be increased after every failed login attempt.

const K_CHECK_SESSION_FINGERPRINT true

If true, check for possible session hijacking (set to false if you have login problems).

const K_COOKIE_DOMAIN “

Cookie domain.

const K_COOKIE_EXPIRE K_SECONDS_IN_DAY

Expiration time for cookies.

const K_COOKIE_PATH ‘/’

Cookie path.

const K_COOKIE_SECURE false

If true use secure cookies.

const K_DISPLAY_TEST_DESCRIPTION true

If true display test description before executing the test.

const K_ENABLE_ANSWER_EXPLANATION true

If true enable explanation field for answers.

const K_ENABLE_JSERRORS false

If true display messages and errors on Javascript popup window.

const K_ENABLE_QUESTION_EXPLANATION true

If true enable explanation field for questions.

const K_ENABLE_VIRTUAL_KEYBOARD true

If true enable virtual keyboard on some textarea fields.

const K_ERROR_TYPES E_ALL | E_STRICT

Define error reporting types for debug.

const K_EXTEND_TIME_MINUTES 5

Default minutes used to extend test duration.

const K_LANGUAGE ‘en’

2-letters code for default language.

const K_LANGUAGE_SELECTOR true

If true, display a language selector.

const K_LOGOUT_URL “

URL to be redirected at logout (leave empty for default).

const K_OTP_LOGIN false

If true enable One-Time-Password authentication on login.

const K_PASSWORD_RESET TRUE

If true enable password reset feature.

const K_QUESTION_DIFFICULTY_LEVELS 10

Number of difficulty levels for questions.

const K_QUESTION_LINE_MAX_LENGTH 70

Define max line length in chars for question navigator on test execution interface.

const K_REDIRECT_LOGIN_MODE 4

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_SESSION_LIFE K_SECONDS_IN_HOUR

User’s session life time in seconds.

const K_SHORT_ANSWERS_BINARY false

If true compare short answers in binary mode.

const K_STRONG_PASSWORD_ENCRYPTION true

If true uses a strong encryption algorithm for passwords.

const K_TCEXAM_VERSION ‘13.1.1’

TCExam version (do not change).

const K_TEST_INFO_HEIGHT 400

Popup window height in pixels for test info.

const K_TEST_INFO_WIDTH 700

Popup window width in pixels for test info.

const K_TIMESTAMP_FORMAT ‘Y-m-d H:i:s’

Define timestamp format using PHP notation (do not change).

const K_TIMEZONE ‘UTC’

Set your own timezone here. Possible values are listed on: http://php.net/manual/en/timezones.php

const K_USE_ERROR_LOG false

Enable error logs (../log/tce_errors.log).

const K_USER_GROUP_RSYNC false

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.

 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy