"Fossies" - the Fresh Open Source Software Archive 
Member "modx-3.0.4-pl/core/docs/config.inc.tpl" (3 Oct 2023, 3267 Bytes) of package /linux/www/modx-3.0.4-pl.zip:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the last
Fossies "Diffs" side-by-side code changes report for "config.inc.tpl":
2.8.3-pl_vs_3.0.0-pl.
1 <?php
2 /**
3 * MODX Configuration file
4 */
5 $database_type = '{database_type}';
6 $database_server = '{database_server}';
7 $database_user = '{database_user}';
8 $database_password = '{database_password}';
9 $database_connection_charset = '{database_connection_charset}';
10 $dbase = '{dbase}';
11 $table_prefix = '{table_prefix}';
12 $database_dsn = '{database_dsn}';
13 $config_options = {config_options};
14 $driver_options = {driver_options};
15
16 $lastInstallTime = {last_install_time};
17
18 $site_id = '{site_id}';
19 $site_sessionname = '{site_sessionname}';
20 $https_port = '{https_port}';
21 $uuid = '{uuid}';
22
23 if (!defined('MODX_CORE_PATH')) {
24 $modx_core_path= '{core_path}';
25 define('MODX_CORE_PATH', $modx_core_path);
26 }
27 if (!defined('MODX_PROCESSORS_PATH')) {
28 $modx_processors_path= '{processors_path}';
29 define('MODX_PROCESSORS_PATH', $modx_processors_path);
30 }
31 if (!defined('MODX_CONNECTORS_PATH')) {
32 $modx_connectors_path= '{connectors_path}';
33 $modx_connectors_url= '{connectors_url}';
34 define('MODX_CONNECTORS_PATH', $modx_connectors_path);
35 define('MODX_CONNECTORS_URL', $modx_connectors_url);
36 }
37 if (!defined('MODX_MANAGER_PATH')) {
38 $modx_manager_path= '{mgr_path}';
39 $modx_manager_url= '{mgr_url}';
40 define('MODX_MANAGER_PATH', $modx_manager_path);
41 define('MODX_MANAGER_URL', $modx_manager_url);
42 }
43 if (!defined('MODX_BASE_PATH')) {
44 $modx_base_path= '{web_path}';
45 $modx_base_url= '{web_url}';
46 define('MODX_BASE_PATH', $modx_base_path);
47 define('MODX_BASE_URL', $modx_base_url);
48 }
49 if(defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
50 $isSecureRequest = false;
51 } else {
52 $isSecureRequest = ((isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') || $_SERVER['SERVER_PORT'] == $https_port);
53 }
54 if (!defined('MODX_URL_SCHEME')) {
55 $url_scheme= $isSecureRequest ? 'https://' : 'http://';
56 define('MODX_URL_SCHEME', $url_scheme);
57 }
58 if (!defined('MODX_HTTP_HOST')) {
59 if(defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
60 $http_host='{http_host}';
61 define('MODX_HTTP_HOST', $http_host);
62 } else {
63 $http_host= array_key_exists('HTTP_HOST', $_SERVER) ? htmlspecialchars($_SERVER['HTTP_HOST'], ENT_QUOTES) : '{http_host}';
64 if ($_SERVER['SERVER_PORT'] != 80) {
65 $http_host = str_replace(':' . $_SERVER['SERVER_PORT'], '', $http_host); // remove port from HTTP_HOST
66 }
67 $http_host .= in_array($_SERVER['SERVER_PORT'], [80, 443]) ? '' : ':' . $_SERVER['SERVER_PORT'];
68 define('MODX_HTTP_HOST', $http_host);
69 }
70 }
71 if (!defined('MODX_SITE_URL')) {
72 $site_url= $url_scheme . $http_host . MODX_BASE_URL;
73 define('MODX_SITE_URL', $site_url);
74 }
75 if (!defined('MODX_ASSETS_PATH')) {
76 $modx_assets_path= '{assets_path}';
77 $modx_assets_url= '{assets_url}';
78 define('MODX_ASSETS_PATH', $modx_assets_path);
79 define('MODX_ASSETS_URL', $modx_assets_url);
80 }
81 if (!defined('MODX_LOG_LEVEL_FATAL')) {
82 define('MODX_LOG_LEVEL_FATAL', 0);
83 define('MODX_LOG_LEVEL_ERROR', 1);
84 define('MODX_LOG_LEVEL_WARN', 2);
85 define('MODX_LOG_LEVEL_INFO', 3);
86 define('MODX_LOG_LEVEL_DEBUG', 4);
87 }