Use array_keys whenever only keys are needed in foreach
[phpmyadmin.git] / libraries / vendor_config.php
blobe393ddfeff584ff6ea3065b8dafbf8948fcb3484
1 <?php
2 /**
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.
8 */
10 declare(strict_types=1);
12 // phpcs:disable PSR1.Files.SideEffects
13 if (! defined('PHPMYADMIN')) {
14 exit;
17 // phpcs:enable
19 /**
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');
25 /**
26 * Directory where cache files are stored.
28 define('TEMP_DIR', ROOT_PATH . 'tmp' . DIRECTORY_SEPARATOR);
30 /**
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');
36 /**
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');
42 /**
43 * Directory where SQL scripts to create/upgrade configuration storage reside.
45 define('SQL_DIR', ROOT_PATH . 'sql' . DIRECTORY_SEPARATOR);
47 /**
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);
54 /**
55 * Filename of a configuration file.
57 define('CONFIG_FILE', CONFIG_DIR . 'config.inc.php');
59 /**
60 * Filename of custom header file.
62 define('CUSTOM_HEADER_FILE', CONFIG_DIR . 'config.header.inc.php');
64 /**
65 * Filename of custom footer file.
67 define('CUSTOM_FOOTER_FILE', CONFIG_DIR . 'config.footer.inc.php');
69 /**
70 * Default value for check for version upgrades.
72 define('VERSION_CHECK_DEFAULT', true);
74 /**
75 * Path to files with compiled locales (*.mo)
77 define('LOCALE_PATH', ROOT_PATH . 'locale' . DIRECTORY_SEPARATOR);
79 /**
80 * Define the cache directory for routing cache an other cache files
82 define('CACHE_DIR', ROOT_PATH . 'libraries' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR);
84 /**
85 * Suffix to add to the phpMyAdmin version
87 define('VERSION_SUFFIX', '');
89 /**
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);