2012-02-01 15:07:03 +00:00
|
|
|
<?php
|
2012-03-31 18:59:28 +01:00
|
|
|
/*
|
|
|
|
* First, load the user-specified settings
|
|
|
|
*/
|
|
|
|
@include_once "data/config/shimmie.conf.php";
|
|
|
|
@include_once "data/config/extensions.conf.php";
|
|
|
|
|
|
|
|
|
2012-02-12 14:56:21 -05:00
|
|
|
/**
|
2012-03-31 18:59:28 +01:00
|
|
|
* For any values that aren't defined in the above files, Shimmie
|
|
|
|
* will set the values to their defaults
|
2012-02-12 14:56:21 -05:00
|
|
|
*
|
2012-03-30 18:03:55 +01:00
|
|
|
* All of these can be over-ridden by placing a 'define' in data/config/shimmie.conf.php
|
2012-02-12 14:56:21 -05:00
|
|
|
*
|
|
|
|
* Do NOT change them in this file. These are the defaults only!
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* define("SPEED_HAX", true);
|
|
|
|
*
|
|
|
|
*/
|
2015-09-12 11:43:28 +01:00
|
|
|
|
2019-05-29 18:23:29 +01:00
|
|
|
function _d(string $name, $value): void
|
2019-05-28 17:59:38 +01:00
|
|
|
{
|
|
|
|
if (!defined($name)) {
|
|
|
|
define($name, $value);
|
|
|
|
}
|
|
|
|
}
|
2012-02-01 15:07:03 +00:00
|
|
|
_d("DATABASE_DSN", null); // string PDO database connection details
|
2012-06-23 23:57:34 +01:00
|
|
|
_d("DATABASE_KA", true); // string Keep database connection alive
|
2019-06-25 16:15:49 -05: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("COVERAGE", false); // boolean activate xdebug coverage monitor
|
|
|
|
_d("CACHE_HTTP", false); // boolean output explicit HTTP caching headers
|
|
|
|
_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("COMPILE_ELS", false); // boolean pre-build the list of event listeners
|
|
|
|
_d("NICE_URLS", false); // boolean force niceurl mode
|
2015-07-12 22:12:05 +01:00
|
|
|
_d("SEARCH_ACCEL", false); // boolean use search accelerator
|
2012-02-01 15:07:03 +00:00
|
|
|
_d("WH_SPLITS", 1); // int how many levels of subfolders to put in the warehouse
|
2019-10-01 11:06:40 +01:00
|
|
|
_d("VERSION", '2.8-dev'); // string shimmie version
|
2012-02-01 15:07:03 +00:00
|
|
|
_d("TIMEZONE", null); // string timezone
|
2016-07-11 13:00:54 +01:00
|
|
|
_d("EXTRA_EXTS", ""); // string optional extra extensions
|
|
|
|
_d("BASE_URL", null); // string force a specific base URL (default is auto-detect)
|
2019-10-01 11:06:40 +01:00
|
|
|
_d("MIN_PHP_VERSION", '7.3');// string minimum supported PHP version
|
2019-07-07 13:51:19 +01:00
|
|
|
_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
|
2018-11-05 22:30:18 +00:00
|
|
|
_d("ENABLED_MODS", "imageboard");
|
2012-03-31 18:59:28 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Calculated settings - you should never need to change these
|
|
|
|
* directly, only the things they're built from
|
|
|
|
*/
|
2014-04-27 15:45:22 -04:00
|
|
|
_d("SCORE_VERSION", 'develop/'.VERSION); // string SCore version
|