packages-com-tecnick-tcexam-shared-cfg

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.

cfg

Table of Contents

Constants

HEAD_MAGNIFICATION  = 1.1
magnification factor for titles
K_ALLOWED_TCPDF_TAGS  = ''
List of TCPDF methods that are allowed to be called using HTML syntax.
K_ANSWER_TEXTAREA_COLS  = 70
Number of columns for answer textarea.
K_ANSWER_TEXTAREA_ROWS  = 15
Number of rows for answer textarea.
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', 'he' => 'Hebrew', 'hi' => 'Hindi', 'hu' => 'Hungarian', 'id' => 'Indonesian', 'it' => 'Italian', 'jp' => 'Japanese', 'mr' => 'Marathi', 'ms' => 'Malay (Bahasa Melayu)', 'nl' => 'Dutch', 'pl' => 'Polish', 'ro' => 'Romanian', 'ru' => 'Russian', 'tr' => 'Turkish', 'ur' => 'Urdu', 'vn' => 'Vietnamese'))
Defines a serialized array of available languages.
K_BLANK_IMAGE  = \K_PATH_IMAGES . '_blank.png'
Full path to a blank image.
K_BRUTE_FORCE_DELAY_RATIO  = 2
Ratio at which the delay will be increased after every failed login attempt.
K_CAS_ENABLED  = \false
If true enable CAS
K_CAS_HOST  = ''
CAS server hostname.
K_CAS_PATH  = '/cas'
The location on the webserver where the CAS application is hosted.
K_CAS_PORT  = 443
The port to connect to.
K_CAS_USER_GROUP_ID  = 1
Default user group ID This is the TCExam group ID to which the CAS accounts belongs.
K_CAS_USER_LEVEL  = 1
Default user level
K_CAS_VERSION  = '2.0'
Version of CAS protocol to use.
K_CELL_HEIGHT_RATIO  = 1.25
height of cell repect font height
K_CHECK_SESSION_FINGERPRINT  = \true
If true, check for possible session hijacking (set to false if you have login problems).
K_COOKIE_DOMAIN  = ''
Cookie domain.
K_COOKIE_EXPIRE  = \K_SECONDS_IN_DAY
Expiration time for cookies.
K_COOKIE_HTTPONLY  = \true
When true the cookie will be made accessible only through the HTTP protocol.
K_COOKIE_PATH  = '/'
Cookie path.
K_COOKIE_SAMESITE  = 'Strict'
The SameSite attribute lets servers specify whether/when cookies are sent with cross-site requests.
K_COOKIE_SECURE  = \true
If true use secure cookies.
K_CUSTOM_AUTH_METHODS  = \serialize(array())
Lisf of enabled custom authentication methods.
K_DATABASE_HOST  = ''
database Host name (eg: localhost)
K_DATABASE_NAME  = ''
database name (TCExam)
K_DATABASE_PORT  = ''
database port (eg: 3306, 5432, 1521)
K_DATABASE_TYPE  = ''
database type (MYSQL, POSTGRESQL, ORACLE)
K_DATABASE_USER_NAME  = ''
database user name
K_DATABASE_USER_PASSWORD  = ''
database user password
K_DIGSIG_CERT_TYPE  = '1'
The access permissions granted for this document.
K_DIGSIG_CERTIFICATE  = 'file://../../shared/config/tcpdf.crt'
Signing certificate (string or filename prefixed with 'file://').
K_DIGSIG_CONTACT  = 'you@example.com'
Information provided by the signer to enable a recipient to contact the signer to verify the signature; for example, a phone number or email address.
K_DIGSIG_ENABLE  = \false
If true digitally sign PDF documents.
K_DIGSIG_EXTRA_CERTS  = ''
Name of a file containing a bunch of extra certificates to include in the signature which can for example be used to help the recipient to verify the certificate that you used.
K_DIGSIG_LOCATION  = 'Office'
The CPU host name or physical location of the signing.
K_DIGSIG_NAME  = 'TCEXAM'
The name of the person or authority signing the document.
K_DIGSIG_PASSWORD  = 'tcpdfdemo'
Password for private key.
K_DIGSIG_PRIVATE_KEY  = 'file://../../shared/config/tcpdf.crt'
Private key (string or filename prefixed with 'file://').
K_DIGSIG_REASON  = 'Certification'
The reason for the signing, such as ( I agree ...).
K_DISPLAY_TEST_DESCRIPTION  = \true
If true display test description before executing the test.
K_ENABLE_ANSWER_EXPLANATION  = \true
If true enable explanation field for answers.
K_ENABLE_JSERRORS  = \false
If true display messages and errors on Javascript popup window.
K_ENABLE_QUESTION_EXPLANATION  = \true
If true enable explanation field for questions.
K_ENABLE_VIRTUAL_KEYBOARD  = \true
If true enable virtual keyboard on some textarea fields.
K_ERROR_TYPES  = \E_ALL | \E_STRICT
Define error reporting types for debug.
K_EXTEND_TIME_MINUTES  = 5
Default minutes used to extend test duration.
K_HTTPBASIC_ENABLED  = \false
If true trust HTTP Basic Auth
K_HTTPBASIC_USER_GROUP_ID  = 1
Default user group ID This is the TCExam group id to which the accounts belong.
K_HTTPBASIC_USER_LEVEL  = 1
Default user level
K_KEY_SECURITY  = 'VENFeGFtIChjKSAyMDA0LTIwMjAgTmljb2xhIEFzdW5pIC0gVGVjbmljay5jb20gLSB0Y2V4YW0uY29t'
String used for security feature, do not alter.
K_LANGUAGE  = 'en'
2-letters code for default language.
K_LANGUAGE_SELECTOR  = \true
If true, display a language selector.
K_LATEX_CLASS  = 'article'
LaTeX class (article).
K_LATEX_FONT_SIZE  = 10
Font size (10).
K_LATEX_FORMULA_DENSITY  = 120
Formula density used by ImageMagick (120).
K_LATEX_IMG_FORMAT  = 'png'
Image format (png).
K_LATEX_IMG_PREFIX  = 'latex_'
Filename prefix for chached images (latex_).
K_LATEX_MAX_HEIGHT  = 800
Image height limit in pixels (500).
K_LATEX_MAX_LENGHT  = 500
Size limit for input string (500).
K_LATEX_MAX_WIDTH  = 800
Image width limit in pixels (500).
K_LATEX_PATH_CONVERT  = '/usr/bin/convert'
Path to ImageMagick convert (/usr/bin/convert).
K_LATEX_PATH_PICTURE  = \K_PATH_CACHE
Absolute path to images directory.
K_LATEX_PATH_PICTURE_HTTPD  = \K_PATH_URL_CACHE
relative path to images directory.
K_LATEX_PDFLATEX  = '/usr/bin/pdflatex'
Path to PDFLATEX (/usr/bin/pdflatex).
K_LDAP_BASE_DN  = 'ou=users,dc=mydom,dc=example,dc=org'
The base DN for the directory.
K_LDAP_ENABLED  = \false
If true enable LDAP.
K_LDAP_FILTER  = 'uid=#USERNAME#'
The search filter can be simple or advanced, using boolean operators in the format described in the LDAP documentation. Use "#USERNAME#" as a placeholder for the username passed by login form. For W2K3 use: "(sAMAccountName=#USERNAME#)"
K_LDAP_HOST  = 'localhost'
LDAP hostname. If you are using OpenLDAP 2.x.x you can specify a URL instead of the hostname. To use LDAP with SSL, compile OpenLDAP 2.x.x with SSL support, configure PHP with SSL, and set this parameter as ldaps://hostname/.
K_LDAP_PORT  = 389
The port to connect to. Not used when using URLs.
K_LDAP_PROTOCOL_VERSION  = 3
LDAP protocol version.
K_LDAP_ROOT_DN  = \null
The DN for the ROOT Account Set to null for anonymous LDAP binding
K_LDAP_ROOT_PASS  = \null
The password for the ROOT Account Set to null for anonymous LDAP binding
K_LDAP_USER_GROUP_ID  = 1
Default user group ID.
K_LDAP_USER_LEVEL  = 1
Default user level
K_LDAP_UTF8  = \true
Set to true if LDAP uses UTF-8 encoding.
K_LOGOUT_URL  = ''
URL to be redirected at logout (leave empty for default).
K_MAX_TESTS_DAY  = \false
Maximum number of tests per day (last 24 hours).
K_MAX_TESTS_MONTH  = \false
Maximum number of tests per month (last 30 days).
K_MAX_TESTS_YEAR  = \false
Maximum number of tests per year (last 365 days).
K_NEWLINE  = "\n"
New line character.
K_OTP_LOGIN  = \false
If true enable One-Time-Password authentication on login.
K_PASSWORD_RESET  = \true
If true enable password reset feature.
K_PATH_BACKUP  = \K_PATH_MAIN . 'admin/backup/'
Full path to backup directory.
K_PATH_CACHE  = \K_PATH_MAIN . 'cache/'
Full path to cache directory.
K_PATH_FONTS  = \K_PATH_MAIN . 'fonts/'
Full path to fonts directory.
K_PATH_HOST  = ''
Host URL (e.g.: "http://www.yoursite.com").
K_PATH_IMAGES  = '../../images/'
Relative path to images directory.
K_PATH_JSCRIPTS  = '../jscripts/'
Relative path to javascript directory.
K_PATH_LANG_CACHE  = \K_PATH_CACHE . 'lang/'
Full path to cache directory used for language files.
K_PATH_MAIN  = ''
Real full path where this program is installed (e.g: "/var/www/html/TCExam/").
K_PATH_PUBLIC_CODE  = \K_PATH_HOST . \K_PATH_TCEXAM . 'public/code/'
Path to public code.
K_PATH_PUBLIC_CODE_REAL  = \K_PATH_MAIN . 'public/code/'
Server path to public code.
K_PATH_SHARED_JSCRIPTS  = '../../shared/jscripts/'
Relative path to shared javascript directory.
K_PATH_STYLE_SHEETS  = '../styles/'
Relative path to stylesheets directory.
K_PATH_TCEXAM  = ''
Relative URL where this program is installed (e.g.: "/").
K_PATH_TMX_FILE  = \K_PATH_MAIN . 'shared/config/lang/language_tmx.xml'
Full path to TMX language file.
K_PATH_URL  = \K_PATH_HOST . \K_PATH_TCEXAM
Constant used on TCPDF library.
K_PATH_URL_CACHE  = \K_PATH_TCEXAM . 'cache/'
URL path to to cache directory.
K_QUESTION_DIFFICULTY_LEVELS  = 10
Number of difficulty levels for questions.
K_QUESTION_LINE_MAX_LENGTH  = 70
Define max line length in chars for question navigator on test execution interface.
K_RADIUS_ACCOUNTING_PORT  = 1813
Radius accounting port (e.g.: 1813).
K_RADIUS_AUTHENTICATION_PORT  = 1812
Radius authentication port (e.g.: 1812).
K_RADIUS_ENABLED  = \false
If true enable RADIUS.
K_RADIUS_SERVER_IP  = 'localhost'
IP address of the radius server (e.g.: "127.0.0.1").
K_RADIUS_SHARED_SECRET  = 'WinRadius'
Shared secret with the radius server.
K_RADIUS_SUFFIX  = ''
Radius domain name suffix (e.g.: "@mydomain.com").
K_RADIUS_UDP_TIMEOUT  = 5
Radius UDP timeout (e.g.: 5).
K_RADIUS_USER_GROUP_ID  = 1
Default user group ID.
K_RADIUS_USER_LEVEL  = 1
Default user level.
K_RADIUS_UTF8  = \true
Set to true if RADIUS uses UTF-8 encoding.
K_RANDOM_SECURITY  = 'mkTzxf8WwUxwvj6w'
String used as a seed for some security code generation please change this value and keep it secret.
K_REDIRECT_LOGIN_MODE  = 4
Various pages redirection modes after login (valid values are 1, 2, 3 and 4).
K_REMAINING_TESTS  = \false
Set to false to disable test counting.
K_SECONDS_IN_DAY  = 24 * \K_SECONDS_IN_HOUR
Number of seconds in one day.
K_SECONDS_IN_HOUR  = 60 * \K_SECONDS_IN_MINUTE
Number of seconds in one hour.
K_SECONDS_IN_MINUTE  = 60
Number of seconds in one minute.
K_SECONDS_IN_MONTH  = 30 * \K_SECONDS_IN_DAY
Number of seconds in one month.
K_SECONDS_IN_WEEK  = 7 * \K_SECONDS_IN_DAY
Number of seconds in one week.
K_SECONDS_IN_YEAR  = 365 * \K_SECONDS_IN_DAY
Number of seconds in one year.
K_SESSION_LIFE  = \K_SECONDS_IN_HOUR
User's session life time in seconds.
K_SHIBBOLETH_ENABLED  = \false
If true trust Shibboleth Auth
K_SHIBBOLETH_LOGIN  = ''
URL of the Shibboleth login page
K_SHIBBOLETH_USER_GROUP_ID  = 1
Default user group ID This is the TCExam group id to which the accounts belong.
K_SHIBBOLETH_USER_LEVEL  = 1
Default user level
K_SHORT_ANSWERS_BINARY  = \false
If true compare short answers in binary mode.
K_SMALL_RATIO  = 2 / 3
reduction factor for small font
K_SSL_ENABLED  = \false
If true trust SSL Auth
K_SSL_USER_GROUP_ID  = 1
Default user group ID This is the TCExam group id to which the accounts belong.
K_SSL_USER_LEVEL  = 1
Default user level
K_STANDARD_PORT  = 80
Standard port for http (80) or https (443).
K_TAB  = "\t"
Tabulation character.
K_TABLE_ANSWERS  = \K_TABLE_PREFIX . 'answers'
This table contains all answers relative to a specific questions.
K_TABLE_GROUPS  = \K_TABLE_PREFIX . 'user_groups'
This table contains users' groups. Each user belongs to one of the groups defined in this table.
K_TABLE_LOG_ANSWER  = \K_TABLE_PREFIX . 'tests_logs_answers'
This table contains the list of the selected alternative answers for each multiple-choice question.
K_TABLE_MODULES  = \K_TABLE_PREFIX . 'modules'
Table for modules. A module is a container for subjects.
K_TABLE_PREFIX  = 'tce_'
prefix for database tables names
K_TABLE_QUESTIONS  = \K_TABLE_PREFIX . 'questions'
This table contains all questions relative to specific subjects.
K_TABLE_SESSIONS  = \K_TABLE_PREFIX . 'sessions'
This table stores information about users' Web sessions.
K_TABLE_SSLCERTS  = \K_TABLE_PREFIX . 'sslcerts'
This table contains the SSL certificates.
K_TABLE_SUBJECT_SET  = \K_TABLE_PREFIX . 'test_subjects'
This table contains all tests subjects (topics, branch of studies).
K_TABLE_SUBJECTS  = \K_TABLE_PREFIX . 'subjects'
This table contains all tests subjects (topics, branch of studies).
K_TABLE_TEST_GROUPS  = \K_TABLE_PREFIX . 'testgroups'
This table contains the list of groups enabled for a selected test.
K_TABLE_TEST_SSLCERTS  = \K_TABLE_PREFIX . 'testsslcerts'
This table contains the list of SSL certificates enabled for a selected test.
K_TABLE_TEST_SUBJSET  = \K_TABLE_PREFIX . 'test_subject_set'
This table lists the type and quantity of the questions associated to each set of subjects selected for a particular test.
K_TABLE_TEST_USER  = \K_TABLE_PREFIX . 'tests_users'
This table contains the list of tests generated for each user.
K_TABLE_TESTS  = \K_TABLE_PREFIX . 'tests'
This table contains all tests data.
K_TABLE_TESTS_LOGS  = \K_TABLE_PREFIX . 'tests_logs'
This table contains all questions and user answers relative to a specific test for a specific user.
K_TABLE_TESTUSER_STAT  = \K_TABLE_PREFIX . 'testuser_stat'
This table counts the number of generated tests.
K_TABLE_USERGROUP  = \K_TABLE_PREFIX . 'usrgroups'
This table contains the list of groups to whom each user belongs.
K_TABLE_USERS  = \K_TABLE_PREFIX . 'users'
This table contains all registered users' data, including system administrators and a special 'anonymous' user.
K_TCEXAM_VERSION  = \file_get_contents('../../VERSION')
TCExam version (do not change).
K_TCPDF_CALLS_IN_HTML  = \false
if true allows to call TCPDF methods using HTML syntax IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
K_TCPDF_EXTERNAL_CONFIG  = \true
Do not change the value of this define.
K_TCPDF_THROW_EXCEPTION_ERROR  = \false
if true adn PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
K_TEST_INFO_HEIGHT  = 400
Popup window height in pixels for test info.
K_TEST_INFO_WIDTH  = 700
Popup window width in pixels for test info.
K_THAI_TOPCHARS  = \false
set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language
K_TIMESTAMP_FORMAT  = 'Y-m-d H:i:s'
Define timestamp format using PHP notation (do not change).
K_TIMEZONE  = 'UTC'
Set your own timezone here.
K_TITLE_MAGNIFICATION  = 1.3
title magnification respect main font size
K_USE_ERROR_LOG  = \false
Enable error logs (../log/tce_errors.log).
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.
K_USRREG_ADMIN_EMAIL  = ''
The following email will receive copies of verification messages.
K_USRREG_AGREEMENT  = ''
URL of an HTML page containing the registration agreement (i.e.: "http://www.example.com/agreement.html").
K_USRREG_EMAIL_CONFIRM  = \true
If true requires email confirmation.
K_USRREG_ENABLED  = \true
If true enable USER REGISTRATION.
K_USRREG_GROUP  = 1
Default user group ID for registered user.
K_USRREG_PASSWORD_RE  = '^(.{8,})$'
Regular expression defining the allowed characters for a password
PDF_AUTHOR  = 'TCExam 12'
Document author.
PDF_CREATOR  = 'TCExam 12'
Document creator.
PDF_FONT_MONOSPACED  = 'courier'
default monospaced font name
PDF_FONT_NAME_DATA  = 'helvetica'
Data font name.
PDF_FONT_NAME_MAIN  = 'helvetica'
Main font name.
PDF_FONT_SIZE_DATA  = 7
Data font size.
PDF_FONT_SIZE_MAIN  = 9
Main font size.
PDF_HEADER_LOGO  = 'logo_example.png'
Image logo.
PDF_HEADER_LOGO_WIDTH  = 20
Header logo image width [mm].
PDF_HEADER_STRING  = "first row\nsecond row\nthird row"
Header description string.
PDF_HEADER_TITLE  = "School name"
Header title.
PDF_IMAGE_SCALE_RATIO  = 1.25
ratio used to adjust the conversion of pixels to user units
PDF_MARGIN_BOTTOM  = 30
Bottom margin.
PDF_MARGIN_FOOTER  = 10
Footer margin.
PDF_MARGIN_HEADER  = 5
Header margin.
PDF_MARGIN_LEFT  = 15
Left margin.
PDF_MARGIN_RIGHT  = 15
Right margin.
PDF_MARGIN_TOP  = 27
Top margin.
PDF_PAGE_FORMAT  = 'A4'
Page format.
PDF_PAGE_ORIENTATION  = 'P'
Page orientation (P=portrait, L=landscape).
PDF_TEXTANSWER_HEIGHT  = 40
Height of area for offline user answer.
PDF_UNIT  = 'mm'
Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
PHP_VERSION_ID  = $version[0] * 10000 + $version[2] * 100 + $version[4]

Functions

addSlashesArray()  : array<string|int, mixed>|string
Escape strings with backslashes before characters that need to be escaped.

Constants

HEAD_MAGNIFICATION

magnification factor for titles

public mixed HEAD_MAGNIFICATION = 1.1

K_ALLOWED_TCPDF_TAGS

List of TCPDF methods that are allowed to be called using HTML syntax.

public mixed K_ALLOWED_TCPDF_TAGS = ''

Note: each method name must end with surrounded with | (pipe) character. The constant K_TCPDF_CALLS_IN_HTML must be set to true. IMPORTANT: For security reason, disable this feature if you are allowing user HTML content.

K_ANSWER_TEXTAREA_COLS

Number of columns for answer textarea.

public mixed K_ANSWER_TEXTAREA_COLS = 70

K_ANSWER_TEXTAREA_ROWS

Number of rows for answer textarea.

public mixed K_ANSWER_TEXTAREA_ROWS = 15

K_AVAILABLE_LANGUAGES

Defines a serialized array of available languages.

public mixed 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', 'he' => 'Hebrew', 'hi' => 'Hindi', 'hu' => 'Hungarian', 'id' => 'Indonesian', 'it' => 'Italian', 'jp' => 'Japanese', 'mr' => 'Marathi', 'ms' => 'Malay (Bahasa Melayu)', 'nl' => 'Dutch', 'pl' => 'Polish', 'ro' => 'Romanian', 'ru' => 'Russian', 'tr' => 'Turkish', 'ur' => 'Urdu', 'vn' => 'Vietnamese'))

Each language is indexed using a 2-letters code (ISO 639).

K_BLANK_IMAGE

Full path to a blank image.

public mixed K_BLANK_IMAGE = \K_PATH_IMAGES . '_blank.png'

K_BRUTE_FORCE_DELAY_RATIO

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

public mixed K_BRUTE_FORCE_DELAY_RATIO = 2

K_CAS_ENABLED

If true enable CAS

public mixed K_CAS_ENABLED = \false

K_CAS_HOST

CAS server hostname.

public mixed K_CAS_HOST = ''

K_CAS_PATH

The location on the webserver where the CAS application is hosted.

public mixed K_CAS_PATH = '/cas'

Some setups don't place the CAS application in the webserver's root directory and we can specify where to find the CAS application. Default is ''.

K_CAS_PORT

The port to connect to.

public mixed K_CAS_PORT = 443

Defaults to 443

K_CAS_USER_GROUP_ID

Default user group ID This is the TCExam group ID to which the CAS accounts belongs.

public mixed K_CAS_USER_GROUP_ID = 1

You can also set 0 for all available groups or a string containing a comma-separated list of group IDs.

K_CAS_USER_LEVEL

Default user level

public mixed K_CAS_USER_LEVEL = 1

K_CAS_VERSION

Version of CAS protocol to use.

public mixed K_CAS_VERSION = '2.0'

Defaults to CAS_VERSION_2_0

K_CELL_HEIGHT_RATIO

height of cell repect font height

public mixed K_CELL_HEIGHT_RATIO = 1.25

K_CHECK_SESSION_FINGERPRINT

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

public mixed K_CHECK_SESSION_FINGERPRINT = \true

Cookie domain.

public mixed K_COOKIE_DOMAIN = ''

Expiration time for cookies.

public mixed K_COOKIE_EXPIRE = \K_SECONDS_IN_DAY

When true the cookie will be made accessible only through the HTTP protocol.

public mixed K_COOKIE_HTTPONLY = \true

Cookie path.

public mixed K_COOKIE_PATH = '/'

The SameSite attribute lets servers specify whether/when cookies are sent with cross-site requests.

public mixed K_COOKIE_SAMESITE = 'Strict'

If true use secure cookies.

public mixed K_COOKIE_SECURE = \true

K_CUSTOM_AUTH_METHODS

Lisf of enabled custom authentication methods.

public mixed K_CUSTOM_AUTH_METHODS = \serialize(array())

Add your custom authentication methods here.

K_DATABASE_HOST

database Host name (eg: localhost)

public mixed K_DATABASE_HOST = ''

K_DATABASE_NAME

database name (TCExam)

public mixed K_DATABASE_NAME = ''

K_DATABASE_PORT

database port (eg: 3306, 5432, 1521)

public mixed K_DATABASE_PORT = ''

NOTE: For MYSQL database type, set this constant to NULL to be able to use the MySQL socket path defined by the mysqli.default_socket PHP value. For example, in Apache: php_value mysqli.default_socket "/path/to/mysql.sock"

K_DATABASE_TYPE

database type (MYSQL, POSTGRESQL, ORACLE)

public mixed K_DATABASE_TYPE = ''

K_DATABASE_USER_NAME

database user name

public mixed K_DATABASE_USER_NAME = ''

K_DATABASE_USER_PASSWORD

database user password

public mixed K_DATABASE_USER_PASSWORD = ''

K_DIGSIG_CERT_TYPE

The access permissions granted for this document.

public mixed K_DIGSIG_CERT_TYPE = '1'

Valid values shall be: 1 = No changes to the document shall be permitted; any change to the document shall invalidate the signature; 2 = Permitted changes shall be filling in forms, instantiating page templates, and signing; other changes shall invalidate the signature; 3 = Permitted changes shall be the same as for 2, as well as annotation creation, deletion, and modification; other changes shall invalidate the signature.

K_DIGSIG_CERTIFICATE

Signing certificate (string or filename prefixed with 'file://').

public mixed K_DIGSIG_CERTIFICATE = 'file://../../shared/config/tcpdf.crt'

K_DIGSIG_CONTACT

Information provided by the signer to enable a recipient to contact the signer to verify the signature; for example, a phone number or email address.

public mixed K_DIGSIG_CONTACT = 'you@example.com'

K_DIGSIG_ENABLE

If true digitally sign PDF documents.

public mixed K_DIGSIG_ENABLE = \false

K_DIGSIG_EXTRA_CERTS

Name of a file containing a bunch of extra certificates to include in the signature which can for example be used to help the recipient to verify the certificate that you used.

public mixed K_DIGSIG_EXTRA_CERTS = ''

K_DIGSIG_LOCATION

The CPU host name or physical location of the signing.

public mixed K_DIGSIG_LOCATION = 'Office'

K_DIGSIG_NAME

The name of the person or authority signing the document.

public mixed K_DIGSIG_NAME = 'TCEXAM'

K_DIGSIG_PASSWORD

Password for private key.

public mixed K_DIGSIG_PASSWORD = 'tcpdfdemo'

K_DIGSIG_PRIVATE_KEY

Private key (string or filename prefixed with 'file://').

public mixed K_DIGSIG_PRIVATE_KEY = 'file://../../shared/config/tcpdf.crt'

K_DIGSIG_REASON

The reason for the signing, such as ( I agree ...).

public mixed K_DIGSIG_REASON = 'Certification'

K_DISPLAY_TEST_DESCRIPTION

If true display test description before executing the test.

public mixed K_DISPLAY_TEST_DESCRIPTION = \true

K_ENABLE_ANSWER_EXPLANATION

If true enable explanation field for answers.

public mixed K_ENABLE_ANSWER_EXPLANATION = \true

K_ENABLE_JSERRORS

If true display messages and errors on Javascript popup window.

public mixed K_ENABLE_JSERRORS = \false

K_ENABLE_QUESTION_EXPLANATION

If true enable explanation field for questions.

public mixed K_ENABLE_QUESTION_EXPLANATION = \true

K_ENABLE_VIRTUAL_KEYBOARD

If true enable virtual keyboard on some textarea fields.

public mixed K_ENABLE_VIRTUAL_KEYBOARD = \true

K_ERROR_TYPES

Define error reporting types for debug.

public mixed K_ERROR_TYPES = \E_ALL | \E_STRICT

K_EXTEND_TIME_MINUTES

Default minutes used to extend test duration.

public mixed K_EXTEND_TIME_MINUTES = 5

K_HTTPBASIC_ENABLED

If true trust HTTP Basic Auth

public mixed K_HTTPBASIC_ENABLED = \false

K_HTTPBASIC_USER_GROUP_ID

Default user group ID This is the TCExam group id to which the accounts belong.

public mixed K_HTTPBASIC_USER_GROUP_ID = 1

You can also set 0 for all available groups or a string containing a comma-separated list of group IDs.

K_HTTPBASIC_USER_LEVEL

Default user level

public mixed K_HTTPBASIC_USER_LEVEL = 1

K_KEY_SECURITY

String used for security feature, do not alter.

public mixed K_KEY_SECURITY = 'VENFeGFtIChjKSAyMDA0LTIwMjAgTmljb2xhIEFzdW5pIC0gVGVjbmljay5jb20gLSB0Y2V4YW0uY29t'

K_LANGUAGE

2-letters code for default language.

public mixed K_LANGUAGE = 'en'

K_LANGUAGE_SELECTOR

If true, display a language selector.

public mixed K_LANGUAGE_SELECTOR = \true

K_LATEX_CLASS

LaTeX class (article).

public mixed K_LATEX_CLASS = 'article'

K_LATEX_FONT_SIZE

Font size (10).

public mixed K_LATEX_FONT_SIZE = 10

K_LATEX_FORMULA_DENSITY

Formula density used by ImageMagick (120).

public mixed K_LATEX_FORMULA_DENSITY = 120

K_LATEX_IMG_FORMAT

Image format (png).

public mixed K_LATEX_IMG_FORMAT = 'png'

K_LATEX_IMG_PREFIX

Filename prefix for chached images (latex_).

public mixed K_LATEX_IMG_PREFIX = 'latex_'

K_LATEX_MAX_HEIGHT

Image height limit in pixels (500).

public mixed K_LATEX_MAX_HEIGHT = 800

K_LATEX_MAX_LENGHT

Size limit for input string (500).

public mixed K_LATEX_MAX_LENGHT = 500

K_LATEX_MAX_WIDTH

Image width limit in pixels (500).

public mixed K_LATEX_MAX_WIDTH = 800

K_LATEX_PATH_CONVERT

Path to ImageMagick convert (/usr/bin/convert).

public mixed K_LATEX_PATH_CONVERT = '/usr/bin/convert'

K_LATEX_PATH_PICTURE

Absolute path to images directory.

public mixed K_LATEX_PATH_PICTURE = \K_PATH_CACHE

K_LATEX_PATH_PICTURE_HTTPD

relative path to images directory.

public mixed K_LATEX_PATH_PICTURE_HTTPD = \K_PATH_URL_CACHE

K_LATEX_PDFLATEX

Path to PDFLATEX (/usr/bin/pdflatex).

public mixed K_LATEX_PDFLATEX = '/usr/bin/pdflatex'

K_LDAP_BASE_DN

The base DN for the directory.

public mixed K_LDAP_BASE_DN = 'ou=users,dc=mydom,dc=example,dc=org'

K_LDAP_ENABLED

If true enable LDAP.

public mixed K_LDAP_ENABLED = \false

K_LDAP_FILTER

The search filter can be simple or advanced, using boolean operators in the format described in the LDAP documentation. Use "#USERNAME#" as a placeholder for the username passed by login form. For W2K3 use: "(sAMAccountName=#USERNAME#)"

public mixed K_LDAP_FILTER = 'uid=#USERNAME#'

K_LDAP_HOST

LDAP hostname. If you are using OpenLDAP 2.x.x you can specify a URL instead of the hostname. To use LDAP with SSL, compile OpenLDAP 2.x.x with SSL support, configure PHP with SSL, and set this parameter as ldaps://hostname/.

public mixed K_LDAP_HOST = 'localhost'

K_LDAP_PORT

The port to connect to. Not used when using URLs.

public mixed K_LDAP_PORT = 389

K_LDAP_PROTOCOL_VERSION

LDAP protocol version.

public mixed K_LDAP_PROTOCOL_VERSION = 3

K_LDAP_ROOT_DN

The DN for the ROOT Account Set to null for anonymous LDAP binding

public mixed K_LDAP_ROOT_DN = \null

K_LDAP_ROOT_PASS

The password for the ROOT Account Set to null for anonymous LDAP binding

public mixed K_LDAP_ROOT_PASS = \null

K_LDAP_USER_GROUP_ID

Default user group ID.

public mixed K_LDAP_USER_GROUP_ID = 1

This is the TCExam group id to which the LDAP accounts belongs. You can also set 0 for all available groups or a string containing a comma-separated list of group IDs.

K_LDAP_USER_LEVEL

Default user level

public mixed K_LDAP_USER_LEVEL = 1

K_LDAP_UTF8

Set to true if LDAP uses UTF-8 encoding.

public mixed K_LDAP_UTF8 = \true

K_LOGOUT_URL

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

public mixed K_LOGOUT_URL = ''

K_MAX_TESTS_DAY

Maximum number of tests per day (last 24 hours).

public mixed K_MAX_TESTS_DAY = \false

false = unlimited

K_MAX_TESTS_MONTH

Maximum number of tests per month (last 30 days).

public mixed K_MAX_TESTS_MONTH = \false

false = unlimited

K_MAX_TESTS_YEAR

Maximum number of tests per year (last 365 days).

public mixed K_MAX_TESTS_YEAR = \false

false = unlimited

K_OTP_LOGIN

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

public mixed K_OTP_LOGIN = \false

K_PASSWORD_RESET

If true enable password reset feature.

public mixed K_PASSWORD_RESET = \true

K_PATH_BACKUP

Full path to backup directory.

public mixed K_PATH_BACKUP = \K_PATH_MAIN . 'admin/backup/'

Please protect this directory with extra authentication to restrict access.

K_PATH_CACHE

Full path to cache directory.

public mixed K_PATH_CACHE = \K_PATH_MAIN . 'cache/'

K_PATH_FONTS

Full path to fonts directory.

public mixed K_PATH_FONTS = \K_PATH_MAIN . 'fonts/'

K_PATH_HOST

Host URL (e.g.: "http://www.yoursite.com").

public mixed K_PATH_HOST = ''

K_PATH_IMAGES

Relative path to images directory.

public mixed K_PATH_IMAGES = '../../images/'

K_PATH_JSCRIPTS

Relative path to javascript directory.

public mixed K_PATH_JSCRIPTS = '../jscripts/'

K_PATH_LANG_CACHE

Full path to cache directory used for language files.

public mixed K_PATH_LANG_CACHE = \K_PATH_CACHE . 'lang/'

K_PATH_MAIN

Real full path where this program is installed (e.g: "/var/www/html/TCExam/").

public mixed K_PATH_MAIN = ''

K_PATH_PUBLIC_CODE

Path to public code.

public mixed K_PATH_PUBLIC_CODE = \K_PATH_HOST . \K_PATH_TCEXAM . 'public/code/'

K_PATH_PUBLIC_CODE_REAL

Server path to public code.

public mixed K_PATH_PUBLIC_CODE_REAL = \K_PATH_MAIN . 'public/code/'

K_PATH_SHARED_JSCRIPTS

Relative path to shared javascript directory.

public mixed K_PATH_SHARED_JSCRIPTS = '../../shared/jscripts/'

K_PATH_STYLE_SHEETS

Relative path to stylesheets directory.

public mixed K_PATH_STYLE_SHEETS = '../styles/'

K_PATH_TCEXAM

Relative URL where this program is installed (e.g.: "/").

public mixed K_PATH_TCEXAM = ''

K_PATH_TMX_FILE

Full path to TMX language file.

public mixed K_PATH_TMX_FILE = \K_PATH_MAIN . 'shared/config/lang/language_tmx.xml'

K_PATH_URL

Constant used on TCPDF library.

public mixed K_PATH_URL = \K_PATH_HOST . \K_PATH_TCEXAM

K_PATH_URL_CACHE

URL path to to cache directory.

public mixed K_PATH_URL_CACHE = \K_PATH_TCEXAM . 'cache/'

K_QUESTION_DIFFICULTY_LEVELS

Number of difficulty levels for questions.

public mixed K_QUESTION_DIFFICULTY_LEVELS = 10

K_QUESTION_LINE_MAX_LENGTH

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

public mixed K_QUESTION_LINE_MAX_LENGTH = 70

K_RADIUS_ACCOUNTING_PORT

Radius accounting port (e.g.: 1813).

public mixed K_RADIUS_ACCOUNTING_PORT = 1813

K_RADIUS_AUTHENTICATION_PORT

Radius authentication port (e.g.: 1812).

public mixed K_RADIUS_AUTHENTICATION_PORT = 1812

K_RADIUS_ENABLED

If true enable RADIUS.

public mixed K_RADIUS_ENABLED = \false

K_RADIUS_SERVER_IP

IP address of the radius server (e.g.: "127.0.0.1").

public mixed K_RADIUS_SERVER_IP = 'localhost'

K_RADIUS_SHARED_SECRET

Shared secret with the radius server.

public mixed K_RADIUS_SHARED_SECRET = 'WinRadius'

K_RADIUS_SUFFIX

Radius domain name suffix (e.g.: "@mydomain.com").

public mixed K_RADIUS_SUFFIX = ''

K_RADIUS_UDP_TIMEOUT

Radius UDP timeout (e.g.: 5).

public mixed K_RADIUS_UDP_TIMEOUT = 5

K_RADIUS_USER_GROUP_ID

Default user group ID.

public mixed K_RADIUS_USER_GROUP_ID = 1

This is the TCExam group id to which the radius accounts belongs. You can also set 0 for all available groups or a string containing a comma-separated list of group IDs.

K_RADIUS_USER_LEVEL

Default user level.

public mixed K_RADIUS_USER_LEVEL = 1

K_RADIUS_UTF8

Set to true if RADIUS uses UTF-8 encoding.

public mixed K_RADIUS_UTF8 = \true

K_RANDOM_SECURITY

String used as a seed for some security code generation please change this value and keep it secret.

public mixed K_RANDOM_SECURITY = 'mkTzxf8WwUxwvj6w'

K_REDIRECT_LOGIN_MODE

Various pages redirection modes after login (valid values are 1, 2, 3 and 4).

public mixed K_REDIRECT_LOGIN_MODE = 4

1 = relative redirect. 2 = absolute redirect. 3 = html redirect. 4 = full redirect.

K_SECONDS_IN_DAY

Number of seconds in one day.

public mixed K_SECONDS_IN_DAY = 24 * \K_SECONDS_IN_HOUR

K_SECONDS_IN_HOUR

Number of seconds in one hour.

public mixed K_SECONDS_IN_HOUR = 60 * \K_SECONDS_IN_MINUTE

K_SECONDS_IN_MONTH

Number of seconds in one month.

public mixed K_SECONDS_IN_MONTH = 30 * \K_SECONDS_IN_DAY

K_SECONDS_IN_WEEK

Number of seconds in one week.

public mixed K_SECONDS_IN_WEEK = 7 * \K_SECONDS_IN_DAY

K_SECONDS_IN_YEAR

Number of seconds in one year.

public mixed K_SECONDS_IN_YEAR = 365 * \K_SECONDS_IN_DAY

K_SESSION_LIFE

User's session life time in seconds.

public mixed K_SESSION_LIFE = \K_SECONDS_IN_HOUR

K_SHIBBOLETH_ENABLED

If true trust Shibboleth Auth

public mixed K_SHIBBOLETH_ENABLED = \false

K_SHIBBOLETH_LOGIN

URL of the Shibboleth login page

public mixed K_SHIBBOLETH_LOGIN = ''

K_SHIBBOLETH_USER_GROUP_ID

Default user group ID This is the TCExam group id to which the accounts belong.

public mixed K_SHIBBOLETH_USER_GROUP_ID = 1

You can also set 0 for all available groups or a string containing a comma-separated list of group IDs.

K_SHIBBOLETH_USER_LEVEL

Default user level

public mixed K_SHIBBOLETH_USER_LEVEL = 1

K_SHORT_ANSWERS_BINARY

If true compare short answers in binary mode.

public mixed K_SHORT_ANSWERS_BINARY = \false

K_SMALL_RATIO

reduction factor for small font

public mixed K_SMALL_RATIO = 2 / 3

K_SSL_ENABLED

If true trust SSL Auth

public mixed K_SSL_ENABLED = \false

K_SSL_USER_GROUP_ID

Default user group ID This is the TCExam group id to which the accounts belong.

public mixed K_SSL_USER_GROUP_ID = 1

You can also set 0 for all available groups or a string containing a comma-separated list of group IDs.

K_SSL_USER_LEVEL

Default user level

public mixed K_SSL_USER_LEVEL = 1

K_STANDARD_PORT

Standard port for http (80) or https (443).

public mixed K_STANDARD_PORT = 80

K_TABLE_ANSWERS

This table contains all answers relative to a specific questions.

public mixed K_TABLE_ANSWERS = \K_TABLE_PREFIX . 'answers'

K_TABLE_GROUPS

This table contains users' groups. Each user belongs to one of the groups defined in this table.

public mixed K_TABLE_GROUPS = \K_TABLE_PREFIX . 'user_groups'

K_TABLE_LOG_ANSWER

This table contains the list of the selected alternative answers for each multiple-choice question.

public mixed K_TABLE_LOG_ANSWER = \K_TABLE_PREFIX . 'tests_logs_answers'

K_TABLE_MODULES

Table for modules. A module is a container for subjects.

public mixed K_TABLE_MODULES = \K_TABLE_PREFIX . 'modules'

K_TABLE_PREFIX

prefix for database tables names

public mixed K_TABLE_PREFIX = 'tce_'

K_TABLE_QUESTIONS

This table contains all questions relative to specific subjects.

public mixed K_TABLE_QUESTIONS = \K_TABLE_PREFIX . 'questions'

K_TABLE_SESSIONS

This table stores information about users' Web sessions.

public mixed K_TABLE_SESSIONS = \K_TABLE_PREFIX . 'sessions'

K_TABLE_SSLCERTS

This table contains the SSL certificates.

public mixed K_TABLE_SSLCERTS = \K_TABLE_PREFIX . 'sslcerts'

K_TABLE_SUBJECT_SET

This table contains all tests subjects (topics, branch of studies).

public mixed K_TABLE_SUBJECT_SET = \K_TABLE_PREFIX . 'test_subjects'

K_TABLE_SUBJECTS

This table contains all tests subjects (topics, branch of studies).

public mixed K_TABLE_SUBJECTS = \K_TABLE_PREFIX . 'subjects'

K_TABLE_TEST_GROUPS

This table contains the list of groups enabled for a selected test.

public mixed K_TABLE_TEST_GROUPS = \K_TABLE_PREFIX . 'testgroups'

K_TABLE_TEST_SSLCERTS

This table contains the list of SSL certificates enabled for a selected test.

public mixed K_TABLE_TEST_SSLCERTS = \K_TABLE_PREFIX . 'testsslcerts'

K_TABLE_TEST_SUBJSET

This table lists the type and quantity of the questions associated to each set of subjects selected for a particular test.

public mixed K_TABLE_TEST_SUBJSET = \K_TABLE_PREFIX . 'test_subject_set'

K_TABLE_TEST_USER

This table contains the list of tests generated for each user.

public mixed K_TABLE_TEST_USER = \K_TABLE_PREFIX . 'tests_users'

K_TABLE_TESTS

This table contains all tests data.

public mixed K_TABLE_TESTS = \K_TABLE_PREFIX . 'tests'

K_TABLE_TESTS_LOGS

This table contains all questions and user answers relative to a specific test for a specific user.

public mixed K_TABLE_TESTS_LOGS = \K_TABLE_PREFIX . 'tests_logs'

K_TABLE_TESTUSER_STAT

This table counts the number of generated tests.

public mixed K_TABLE_TESTUSER_STAT = \K_TABLE_PREFIX . 'testuser_stat'

K_TABLE_USERGROUP

This table contains the list of groups to whom each user belongs.

public mixed K_TABLE_USERGROUP = \K_TABLE_PREFIX . 'usrgroups'

K_TABLE_USERS

This table contains all registered users' data, including system administrators and a special 'anonymous' user.

public mixed K_TABLE_USERS = \K_TABLE_PREFIX . 'users'

K_TCEXAM_VERSION

TCExam version (do not change).

public mixed K_TCEXAM_VERSION = \file_get_contents('../../VERSION')

K_TCPDF_CALLS_IN_HTML

if true allows to call TCPDF methods using HTML syntax IMPORTANT: For security reason, disable this feature if you are printing user HTML content.

public mixed K_TCPDF_CALLS_IN_HTML = \false

K_TCPDF_EXTERNAL_CONFIG

Do not change the value of this define.

public mixed K_TCPDF_EXTERNAL_CONFIG = \true

K_TCPDF_THROW_EXCEPTION_ERROR

if true adn PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.

public mixed K_TCPDF_THROW_EXCEPTION_ERROR = \false

K_TEST_INFO_HEIGHT

Popup window height in pixels for test info.

public mixed K_TEST_INFO_HEIGHT = 400

K_TEST_INFO_WIDTH

Popup window width in pixels for test info.

public mixed K_TEST_INFO_WIDTH = 700

K_THAI_TOPCHARS

set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language

public mixed K_THAI_TOPCHARS = \false

K_TIMESTAMP_FORMAT

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

public mixed K_TIMESTAMP_FORMAT = 'Y-m-d H:i:s'

K_TIMEZONE

Set your own timezone here.

public mixed K_TIMEZONE = 'UTC'

Possible values are listed on: http://php.net/manual/en/timezones.php

K_TITLE_MAGNIFICATION

title magnification respect main font size

public mixed K_TITLE_MAGNIFICATION = 1.3

K_USE_ERROR_LOG

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

public mixed K_USE_ERROR_LOG = \false

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.

public mixed K_USER_GROUP_RSYNC = \false

K_USRREG_ADMIN_EMAIL

The following email will receive copies of verification messages.

public mixed K_USRREG_ADMIN_EMAIL = ''

K_USRREG_AGREEMENT

URL of an HTML page containing the registration agreement (i.e.: "http://www.example.com/agreement.html").

public mixed K_USRREG_AGREEMENT = ''

K_USRREG_EMAIL_CONFIRM

If true requires email confirmation.

public mixed K_USRREG_EMAIL_CONFIRM = \true

K_USRREG_PASSWORD_RE

Regular expression defining the allowed characters for a password

public mixed K_USRREG_PASSWORD_RE = '^(.{8,})$'

PDF_AUTHOR

Document author.

public mixed PDF_AUTHOR = 'TCExam 12'

PDF_CREATOR

Document creator.

public mixed PDF_CREATOR = 'TCExam 12'

PDF_FONT_MONOSPACED

default monospaced font name

public mixed PDF_FONT_MONOSPACED = 'courier'

PDF_FONT_NAME_DATA

Data font name.

public mixed PDF_FONT_NAME_DATA = 'helvetica'

PDF_FONT_NAME_MAIN

Main font name.

public mixed PDF_FONT_NAME_MAIN = 'helvetica'

PDF_FONT_SIZE_DATA

Data font size.

public mixed PDF_FONT_SIZE_DATA = 7

PDF_FONT_SIZE_MAIN

Main font size.

public mixed PDF_FONT_SIZE_MAIN = 9

Image logo.

public mixed PDF_HEADER_LOGO = 'logo_example.png'

PDF_HEADER_LOGO_WIDTH

Header logo image width [mm].

public mixed PDF_HEADER_LOGO_WIDTH = 20

PDF_HEADER_STRING

Header description string.

public mixed PDF_HEADER_STRING = "first row\nsecond row\nthird row"

PDF_HEADER_TITLE

Header title.

public mixed PDF_HEADER_TITLE = "School name"

PDF_IMAGE_SCALE_RATIO

ratio used to adjust the conversion of pixels to user units

public mixed PDF_IMAGE_SCALE_RATIO = 1.25

PDF_MARGIN_BOTTOM

Bottom margin.

public mixed PDF_MARGIN_BOTTOM = 30

Footer margin.

public mixed PDF_MARGIN_FOOTER = 10

PDF_MARGIN_HEADER

Header margin.

public mixed PDF_MARGIN_HEADER = 5

PDF_MARGIN_LEFT

Left margin.

public mixed PDF_MARGIN_LEFT = 15

PDF_MARGIN_RIGHT

Right margin.

public mixed PDF_MARGIN_RIGHT = 15

PDF_MARGIN_TOP

Top margin.

public mixed PDF_MARGIN_TOP = 27

PDF_PAGE_FORMAT

Page format.

public mixed PDF_PAGE_FORMAT = 'A4'

PDF_PAGE_ORIENTATION

Page orientation (P=portrait, L=landscape).

public mixed PDF_PAGE_ORIENTATION = 'P'

PDF_TEXTANSWER_HEIGHT

Height of area for offline user answer.

public mixed PDF_TEXTANSWER_HEIGHT = 40

PDF_UNIT

Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].

public mixed PDF_UNIT = 'mm'

PHP_VERSION_ID

public mixed PHP_VERSION_ID = $version[0] * 10000 + $version[2] * 100 + $version[4]

Functions

addSlashesArray()

Escape strings with backslashes before characters that need to be escaped.

addSlashesArray( $data) : array<string|int, mixed>|string

These characters are single quote ('), double quote ("), backslash () and NUL (the NULL byte).

Parameters
$data :

(array|string) String or array to escape

Return values
array<string|int, mixed>|string
On this page
 

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