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:140

K_FILE_ALLOWED_HOSTS

Allowlist of hostnames that the tc-lib-file safe methods are permitted to fetch remote URLs from (mitigates SSRF). Used e.g. by the email report generator, which renders a PDF via an internal HTTP request to this installation. Provide a serialized array of hostnames. The host of K_PATH_HOST is always trusted in addition to these.

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

const K_FILE_ALLOWED_HOSTS = \serialize([])

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

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:57

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:101

K_PATH_CACHE

Full path to cache directory.

const K_PATH_CACHE = \K_PATH_MAIN . 'cache/'

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

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:109

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:130

K_PATH_JSCRIPTS

Relative path to javascript directory.

const K_PATH_JSCRIPTS = '../jscripts/'

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

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:95

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:75

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:80

K_PATH_SHARED_JSCRIPTS

Relative path to shared javascript directory.

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

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

K_PATH_STYLE_SHEETS

Relative path to stylesheets directory.

const K_PATH_STYLE_SHEETS = '../styles/'

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

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:135

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_CACHE

URL path to to cache directory.

const K_PATH_URL_CACHE = \K_PATH_TCEXAM . 'cache/'

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

K_STANDARD_PORT

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

const K_STANDARD_PORT = 80

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