- remove not used code - reorder defines for possible clean up targets - TARGET and HOST_NAME are set early HOST NAME is set right at the top TARGET is set after site configs is read - add more $_ENV reads DEFAULT_ACL_LEVEL LOCALE (encoding is read from locale which should be in the format of nn_CT.ENCODING, eg en_US.UTF-8), falls back to UTF-8 ADMIN.STYLESHEET ADMIN.JAVASCRIPT
45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php // phpcs:ignore PSR1.Files.SideEffects
|
|
|
|
/********************************************************************
|
|
* AUTHOR: Clemens Schwaighofer
|
|
* CREATED: 2019/10/28
|
|
* SHORT DESCRIPTION:
|
|
* other global constant variables
|
|
* HISTORY:
|
|
*********************************************************************/
|
|
|
|
declare(strict_types=1);
|
|
|
|
// style sheet for the edit base interface
|
|
define('EDIT_BASE_STYLESHEET', 'edit.css');
|
|
|
|
// define('SOME_ID', <SOME VALUE>);
|
|
|
|
/************* QUEUE TABLE *************/
|
|
// if we have a dev/live system
|
|
// set_live is a per page/per item
|
|
// live_queue is a global queue system
|
|
// define('QUEUE', 'live_queue');
|
|
|
|
/************* CONVERT *******************/
|
|
// this only needed if the external thumbnail create is used
|
|
$paths = [
|
|
'/bin',
|
|
'/usr/bin',
|
|
'/usr/local/bin',
|
|
];
|
|
// find convert
|
|
foreach ($paths as $path) {
|
|
if (
|
|
file_exists($path . DIRECTORY_SEPARATOR . 'convert') &&
|
|
is_file($path . DIRECTORY_SEPARATOR . 'convert')
|
|
) {
|
|
// image magick convert location
|
|
define('CONVERT', $path . DIRECTORY_SEPARATOR . 'convert');
|
|
break;
|
|
}
|
|
}
|
|
unset($paths);
|
|
|
|
// __END__
|