?
Current File : //proc/thread-self/root/proc/thread-self/root/proc/self/root/var/softaculous/tcexam/tce_config.php
<?php

//============================================================+
// File name   : tce_config.php
// Begin       : 2001-09-02
// Last Update : 2023-11-30
//
// Description : Configuration file for administration section.
//
// License:
//    Copyright (C) 2004-2026 Nicola Asuni - Tecnick.com LTD
//    See LICENSE file for more information.
//============================================================+

/**
 * @file
 * Configuration file for administration section.
 * @package com.tecnick.tcexam.admin.cfg
 * @brief TCExam Configuration for Administration Area
 * @author Nicola Asuni
 * @since 2001-09-02
 */

// --- INCLUDE FILES -----------------------------------------------------------

require_once '../config/tce_auth.php';
require_once '../../shared/config/tce_config.php';

// --- OPTIONS / COSTANTS ------------------------------------------------------

/**
 * Max memory limit.
 */
define('K_MAX_MEMORY_LIMIT', '512M');

/**
 * Max number of rows to display in tables.
 */
define('K_MAX_ROWS_PER_PAGE', 50);

/**
 * Max size to be uploaded in bytes.
 */
define('K_MAX_UPLOAD_SIZE', 25_000_000);

/**
 * List of allowed file types for upload (remove all extensions to disable upload).
 * FOR SERVER SECURITY DO NOT ADD EXECUTABLE FILE TYPES HERE
 */
define('K_ALLOWED_UPLOAD_EXTENSIONS', serialize([
    'csv',
    'tsv',
    'xml',
    'txt',
    'png',
    'gif',
    'jpg',
    'jpeg',
    'svg',
    'mp3',
    'mid',
    'oga',
    'ogg',
    'wav',
    'wma',
    'avi',
    'flv',
    'm2v',
    'mpeg',
    'mpeg4',
    'mpg',
    'mpg2',
    'mpv',
    'ogm',
    'ogv',
    'vid',
    'pfx',
    'pem',
    'crt',
]));

// -- DEFAULT META and BODY Tags --

/**
 * TCExam title.
 */
define('K_TCEXAM_TITLE', 'TCExam');

/**
 * TCExam description.
 */
define('K_TCEXAM_DESCRIPTION', 'TCExam by Tecnick.com');

/**
 * TCExam Author.
 */
define('K_TCEXAM_AUTHOR', 'Nicola Asuni - Tecnick.com LTD');

/**
 * Reply-to meta tag.
 */
define('K_TCEXAM_REPLY_TO', '');

/**
 * Default html meta keywords.
 */
define('K_TCEXAM_KEYWORDS', 'TCExam, eExam, e-exam, web, exam');

/**
 * Relative path to html icon.
 */
define('K_TCEXAM_ICON', '../../favicon.ico');

/**
 * Theme for the admin area
 */
define('K_ADMIN_THEME', 'default');

/**
 * Path to public CSS stylesheet for LTR languages.
 */
define('K_TCEXAM_STYLE', K_PATH_STYLE_SHEETS . K_ADMIN_THEME . '.css');

/**
 * Full path to CSS stylesheet for RTL languages.
 */
define('K_TCEXAM_STYLE_RTL', K_PATH_STYLE_SHEETS . K_ADMIN_THEME . '_rtl.css');

/**
 * If true display admin clock in UTC (GMT).
 */
define('K_CLOCK_IN_UTC', false);

/**
 * Max number of chars to display on a selection box.
 */
define('K_SELECT_SUBSTRING', 40);

/**
 * If true display an additional button to print only the TEXT answers on all users' results.
 */
define('K_DISPLAY_PDFTEXT_BUTTON', false);

/**
 * Name of the option to import questions using a custom format (file: admin/code/tce_import_custom.php).
 * Set this constant to empty to disable this feature (or if you haven't set tce_import_custom.php)
 */
define('K_ENABLE_CUSTOM_IMPORT', '');

/**
 * Name of the button to export results in custom format (file: admin/code/tce_export_custom.php).
 * Set this constant to empty to disable this feature (or if you haven't set tce_import_custom.php)
 */
define('K_ENABLE_CUSTOM_EXPORT', '');

/**
 * If true enable the backup download.
 */
define('K_DOWNLOAD_BACKUPS', true);

/**
 * If true check the unicity of question and answer descriptions using a binary collation when using MySQL.
 */
define('K_MYSQL_QA_BIN_UNIQUITY', true);

/**
 * Binary collation used for the question and answer uniqueness check when K_MYSQL_QA_BIN_UNIQUITY is true.
 * The collation must be compatible with the character set of your database columns:
 * use 'utf8_bin' for utf8 (utf8mb3) columns, or 'utf8mb4_bin' for utf8mb4 columns.
 */
define('K_MYSQL_QA_BIN_COLLATION', '[[utf8]]_bin');

/**
 * Set the UTF-8 Normalization mode for question and answer descriptions:
 * NONE=None;
 * C=Normalization Form C (NFC) - Canonical Decomposition followed by Canonical Composition;
 * D=Normalization Form D (NFD) - Canonical Decomposition;
 * KC=Normalization Form KC (NFKC) - Compatibility Decomposition, followed by Canonical Composition;
 * KD=Normalization Form KD (NFKD) - Compatibility Decomposition;
 * CUSTOM=Custom normalization using user defined function 'user_utf8_custom_normalizer'.
 */
define('K_UTF8_NORMALIZATION_MODE', 'NONE');

/**
 * Path to zbarimg executable (/usr/bin/zbarimg).
 * This application is required to decode barcodes on scanned offline test pages.
 * For installation instructions: http://zbar.sourceforge.net/
 * On Debian/Ubuntu you can easily install zbarimg using the following command:
 * "sudo apt-get install zbar-tools"
 */
define('K_OMR_PATH_ZBARIMG', '/usr/bin/zbarimg');

/**
 * Defines a serialized array of available fonts for PDF.
 */
define('K_AVAILABLE_FONTS', serialize([
    'courier' => 'courier',
    'helvetica' => 'helvetica',
    'times' => 'times',
    'symbol' => 'symbol',
    'zapfdingbats' => 'zapfdingbats',
    'DejaVuSans' => 'dejavusans,sans',
    'DejaVuSansCondensed' => 'dejavusanscondensed,sans',
    'DejaVuSansMono' => 'dejavusansmono,monospace',
    'DejaVuSerif' => 'dejavuserif,serif',
    'DejaVuSerifCondensed' => 'dejavuserifcondensed,serif',
    'FreeMono' => 'freemono,monospace',
    'FreeSans' => 'freesans,sans',
    'FreeSerif' => 'freeserif,serif',
]));

// --- INCLUDE FILES -----------------------------------------------------------

require_once '../../shared/config/tce_db_config.php';
require_once '../../shared/code/tce_db_connect.php';
require_once '../../shared/code/tce_functions_general.php';

// --- PHP SETTINGS -----------------------------------------------------------

ini_set('memory_limit', K_MAX_MEMORY_LIMIT); // set PHPmemory limit
ini_set('upload_max_filesize', K_MAX_UPLOAD_SIZE); // set max upload size
ini_set('post_max_size', K_MAX_UPLOAD_SIZE); // set max post size
ini_set('session.use_trans_sid', 0); // if =1 use PHPSESSID