This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/core/sys_config.php

35 lines
1.5 KiB
PHP
Raw Normal View History

2020-01-26 13:19:35 +00:00
<?php declare(strict_types=1);
/**
* For any values that aren't defined in data/config/*.php,
* Shimmie will set the values to their defaults
*
* All of these can be over-ridden by placing a 'define' in
* data/config/shimmie.conf.php
*
* Do NOT change them in this file. These are the defaults only!
*
* Example:
* define("SPEED_HAX", true);
*/
2015-09-12 10:43:28 +00:00
2019-05-29 17:23:29 +00:00
function _d(string $name, $value): void
{
if (!defined($name)) {
define($name, $value);
}
}
2020-03-27 12:24:47 +00:00
$_g = file_exists(".git") ? '+' : '';
2012-02-01 15:07:03 +00:00
_d("DATABASE_DSN", null); // string PDO database connection details
2019-06-25 21:15:49 +00:00
_d("DATABASE_TIMEOUT", 10000);// int Time to wait for each statement to complete
2012-02-01 15:07:03 +00:00
_d("CACHE_DSN", null); // string cache connection details
_d("DEBUG", false); // boolean print various debugging details
_d("COOKIE_PREFIX", 'shm'); // string if you run multiple galleries with non-shared logins, give them different prefixes
_d("SPEED_HAX", false); // boolean do some questionable things in the name of performance
_d("WH_SPLITS", 1); // int how many levels of subfolders to put in the warehouse
2020-06-24 15:14:49 +00:00
_d("VERSION", "2.8.4$_g"); // string shimmie version
2012-02-01 15:07:03 +00:00
_d("TIMEZONE", null); // string timezone
_d("EXTRA_EXTS", ""); // string optional extra extensions
2020-02-01 22:26:08 +00:00
_d("BASE_HREF", null); // string force a specific base URL (default is auto-detect)
_d("TRACE_FILE", null); // string file to log performance data into
_d("TRACE_THRESHOLD", 0.0); // float log pages which take more time than this many seconds