tce_paths.php

Configuration file for files and directories paths.

Source: shared/config.default/tce_paths.php

Configuration file for files and directories paths.

Constants

K_BLANK_IMAGE

Full path to a blank image.

const K_BLANK_IMAGE = \K_PATH_IMAGES . '_blank.png'

Source: shared/config.default/tce_paths.php:144

K_FILE_ALLOWED_HOSTS

Allowlist of hostnames that the tc-lib-file safe methods are permitted to fetch remote URLs from (mitigates SSRF). Provide a serialized array of hostnames.

Example: define(‘K_FILE_ALLOWED_HOSTS’, serialize(array(‘reports.example.com’)));

const K_FILE_ALLOWED_HOSTS = \serialize([])

Source: shared/config.default/tce_paths.php:70

K_FILE_ALLOWED_PATHS

Allowlist of filesystem path prefixes that the tc-lib-file safe file methods (Com\Tecnick\File\File) are permitted to read. Keeps local file access (e.g. the OMR bulk importer) contained within trusted directories and blocks path traversal.

Provide a serialized array of absolute path prefixes. The cache directory (K_PATH_CACHE) is always trusted in addition to the entries listed here. Example: define(‘K_FILE_ALLOWED_PATHS’, serialize(array(’/srv/tcexam-imports/’)));

const K_FILE_ALLOWED_PATHS = \serialize([])

Source: shared/config.default/tce_paths.php:63

K_PATH_BACKUP

Full path to backup directory.

Please protect this directory with extra authentication to restrict access.

const K_PATH_BACKUP = \K_PATH_MAIN . 'admin/backup/'

Source: shared/config.default/tce_paths.php:105

K_PATH_CACHE

Full path to cache directory.

const K_PATH_CACHE = \K_PATH_MAIN . 'cache/'

Source: shared/config.default/tce_paths.php:89

K_PATH_FONTS

const K_PATH_FONTS = \K_PATH_MAIN . 'vendor/tecnickcom/tc-lib-pdf-font/target/fonts/'

Source: shared/config.default/tce_paths.php:113

K_PATH_HOST

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

const K_PATH_HOST = ''

Source: shared/config.default/tce_paths.php:27

K_PATH_IMAGES

Relative path to images directory.

const K_PATH_IMAGES = '../../images/'

Source: shared/config.default/tce_paths.php:134

K_PATH_JSCRIPTS

Relative path to javascript directory.

const K_PATH_JSCRIPTS = '../jscripts/'

Source: shared/config.default/tce_paths.php:124

K_PATH_LANG_CACHE

Full path to cache directory used for language files.

const K_PATH_LANG_CACHE = \K_PATH_CACHE . 'lang/'

Source: shared/config.default/tce_paths.php:99

K_PATH_MAIN

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

const K_PATH_MAIN = ''

Source: shared/config.default/tce_paths.php:37

K_PATH_PUBLIC_CODE

Path to public code.

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

Source: shared/config.default/tce_paths.php:79

K_PATH_PUBLIC_CODE_REAL

Server path to public code.

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

Source: shared/config.default/tce_paths.php:84

K_PATH_SHARED_JSCRIPTS

Relative path to shared javascript directory.

const K_PATH_SHARED_JSCRIPTS = '../../shared/jscripts/'

Source: shared/config.default/tce_paths.php:129

K_PATH_STYLE_SHEETS

Relative path to stylesheets directory.

const K_PATH_STYLE_SHEETS = '../styles/'

Source: shared/config.default/tce_paths.php:119

K_PATH_TCEXAM

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

const K_PATH_TCEXAM = ''

Source: shared/config.default/tce_paths.php:32

K_PATH_TMX_FILE

Full path to TMX language file.

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

Source: shared/config.default/tce_paths.php:139

K_PATH_URL

Constant used on TCPDF library.

const K_PATH_URL = \K_PATH_HOST . \K_PATH_TCEXAM

Source: shared/config.default/tce_paths.php:42

K_PATH_URL_ADMIN

Base URL used for links to the administration area (e.g.: “https://admin.yoursite.com/").

Set it when the admin/ directory is served from a separate host.

const K_PATH_URL_ADMIN = \K_PATH_URL

Source: shared/config.default/tce_paths.php:48

K_PATH_URL_CACHE

URL path to to cache directory.

const K_PATH_URL_CACHE = \K_PATH_TCEXAM . 'cache/'

Source: shared/config.default/tce_paths.php:94

K_STANDARD_PORT

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

const K_STANDARD_PORT = 80

Source: shared/config.default/tce_paths.php:53