3 * File for vendor customization, you can change here paths or some behaviour,
4 * which vendors such as Linux distributions might want to change.
6 * For changing this file you should know what you are doing. For this reason
7 * options here are not part of normal configuration.
10 declare(strict_types
=1);
12 // phpcs:disable PSR1.Files.SideEffects
13 if (! defined('PHPMYADMIN')) {
20 * Path to vendor autoload file. Useful when you want to
21 * have have vendor dependencies somewhere else.
23 define('AUTOLOAD_FILE', ROOT_PATH
. 'vendor' . DIRECTORY_SEPARATOR
. 'autoload.php');
26 * Directory where cache files are stored.
28 define('TEMP_DIR', ROOT_PATH
. 'tmp' . DIRECTORY_SEPARATOR
);
31 * Path to changelog file, can be gzip compressed. Useful when you want to
32 * have documentation somewhere else, eg. /usr/share/doc.
34 define('CHANGELOG_FILE', ROOT_PATH
. 'ChangeLog');
37 * Path to license file. Useful when you want to have documentation somewhere
38 * else, eg. /usr/share/doc.
40 define('LICENSE_FILE', ROOT_PATH
. 'LICENSE');
43 * Directory where SQL scripts to create/upgrade configuration storage reside.
45 define('SQL_DIR', ROOT_PATH
. 'sql' . DIRECTORY_SEPARATOR
);
48 * Directory where configuration files are stored.
49 * It is not used directly in code, just a convenient
50 * define used further in this file.
52 define('CONFIG_DIR', ROOT_PATH
);
55 * Filename of a configuration file.
57 define('CONFIG_FILE', CONFIG_DIR
. 'config.inc.php');
60 * Filename of custom header file.
62 define('CUSTOM_HEADER_FILE', CONFIG_DIR
. 'config.header.inc.php');
65 * Filename of custom footer file.
67 define('CUSTOM_FOOTER_FILE', CONFIG_DIR
. 'config.footer.inc.php');
70 * Default value for check for version upgrades.
72 define('VERSION_CHECK_DEFAULT', true);
75 * Path to files with compiled locales (*.mo)
77 define('LOCALE_PATH', ROOT_PATH
. 'locale' . DIRECTORY_SEPARATOR
);
80 * Define the cache directory for routing cache an other cache files
82 define('CACHE_DIR', ROOT_PATH
. 'libraries' . DIRECTORY_SEPARATOR
. 'cache' . DIRECTORY_SEPARATOR
);
85 * Suffix to add to the phpMyAdmin version
87 define('VERSION_SUFFIX', '');
90 * TCPDF workaround. Avoid referring to nonexistent files (causes warnings when open_basedir is used).
91 * This is defined to avoid the TCPDF code to search for a directory outside of open_basedir.
92 * This value if not used but is useful, no header logic is used for PDF exports.
94 * @see https://github.com/phpmyadmin/phpmyadmin/issues/16709
96 define('K_PATH_IMAGES', ROOT_PATH
);