When logged in, the last loggedin time is stored in the edit_user table, additional to the normal logging. More array() to [] conversion in config files, etc Javascript: add math.round Basic Class: Fix key length array mapping to more efficiont loop run DB/IO: some name fixes in get key function description/comments SmartyExtended: add CORE CSS/JS file include if exists. Follows after MAIN and BEFORE page and special
29 lines
711 B
PHP
Executable File
29 lines
711 B
PHP
Executable File
<?php declare(strict_types=1);
|
|
/********************************************************************
|
|
* AUTHOR: Clemens Schwaighofer
|
|
* CREATED: 2019/10/28
|
|
* SHORT DESCRIPTION:
|
|
* other global constant variables
|
|
* HISTORY:
|
|
*********************************************************************/
|
|
|
|
// DEFINE('SOME_ID', <SOME VALUE>);
|
|
|
|
/************* 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.DS.'convert') && is_file($path.DS.'convert')) {
|
|
// image magick convert location
|
|
define('CONVERT', $path.DS.'convert');
|
|
}
|
|
}
|
|
unset($paths);
|
|
|
|
// __END__
|