Created
January 19, 2012 02:58
-
-
Save edbo/1637394 to your computer and use it in GitHub Desktop.
MODX Config File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* MODX Configuration file | |
*/ | |
$database_type = 'mysql'; | |
$database_server = '#DBHOST#'; | |
$database_user = '#DBUSER#'; | |
$database_password = '#DBPASS#'; | |
$database_connection_charset = 'utf8'; | |
$dbase = '#DBNAME#'; | |
$table_prefix = 'modx_'; | |
$database_dsn = 'mysql:host=#DBHOST#;dbname=#DBNAME#;charset=utf8'; | |
$config_options = array ( | |
); | |
$lastInstallTime = 1326791052; | |
$site_id = 'modx_sinoforest_'; | |
$site_sessionname = 'SNsinoforestZfouyHtlT8RQg'; | |
$https_port = '443'; | |
$uuid = 'F6EB8E32-091F-400A-942E-F0794596FE61'; | |
if (!defined('MODX_CORE_PATH')) { | |
$modx_core_path= '#APPLICATIONPATH#/core/'; | |
define('MODX_CORE_PATH', $modx_core_path); | |
} | |
if (!defined('MODX_PROCESSORS_PATH')) { | |
$modx_processors_path= '#APPLICATIONPATH#/core/model/modx/processors/'; | |
define('MODX_PROCESSORS_PATH', $modx_processors_path); | |
} | |
if (!defined('MODX_CONNECTORS_PATH')) { | |
$modx_connectors_path= '#APPLICATIONPATH#/connectors/'; | |
$modx_connectors_url= '/connectors/'; | |
define('MODX_CONNECTORS_PATH', $modx_connectors_path); | |
define('MODX_CONNECTORS_URL', $modx_connectors_url); | |
} | |
if (!defined('MODX_MANAGER_PATH')) { | |
$modx_manager_path= '#APPLICATIONPATH#/manager/'; | |
$modx_manager_url= '/manager/'; | |
define('MODX_MANAGER_PATH', $modx_manager_path); | |
define('MODX_MANAGER_URL', $modx_manager_url); | |
} | |
if (!defined('MODX_BASE_PATH')) { | |
$modx_base_path= '#APPLICATIONPATH#/'; | |
$modx_base_url= '/'; | |
define('MODX_BASE_PATH', $modx_base_path); | |
define('MODX_BASE_URL', $modx_base_url); | |
} | |
if(defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) { | |
$isSecureRequest = false; | |
} else { | |
$isSecureRequest = ((isset ($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') || $_SERVER['SERVER_PORT'] == $https_port); | |
} | |
if (!defined('MODX_URL_SCHEME')) { | |
$url_scheme= $isSecureRequest ? 'https://' : 'http://'; | |
define('MODX_URL_SCHEME', $url_scheme); | |
} | |
if (!defined('MODX_HTTP_HOST')) { | |
if(defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) { | |
$http_host='localhost'; | |
define('MODX_HTTP_HOST', $http_host); | |
} else { | |
$http_host= $_SERVER['HTTP_HOST']; | |
if ($_SERVER['SERVER_PORT'] != 80) { | |
$http_host= str_replace(':' . $_SERVER['SERVER_PORT'], '', $http_host); // remove port from HTTP_HOST | |
} | |
$http_host .= ($_SERVER['SERVER_PORT'] == 80 || $isSecureRequest) ? '' : ':' . $_SERVER['SERVER_PORT']; | |
define('MODX_HTTP_HOST', $http_host); | |
} | |
} | |
if (!defined('MODX_SITE_URL')) { | |
$site_url= $url_scheme . $http_host . MODX_BASE_URL; | |
define('MODX_SITE_URL', $site_url); | |
} | |
if (!defined('MODX_ASSETS_PATH')) { | |
$modx_assets_path= '#APPLICATIONPATH#/assets/'; | |
$modx_assets_url= '/assets/'; | |
define('MODX_ASSETS_PATH', $modx_assets_path); | |
define('MODX_ASSETS_URL', $modx_assets_url); | |
} | |
if (!defined('MODX_LOG_LEVEL_FATAL')) { | |
define('MODX_LOG_LEVEL_FATAL', 0); | |
define('MODX_LOG_LEVEL_ERROR', 1); | |
define('MODX_LOG_LEVEL_WARN', 2); | |
define('MODX_LOG_LEVEL_INFO', 3); | |
define('MODX_LOG_LEVEL_DEBUG', 4); | |
} | |
if (!defined('MODX_CACHE_DISABLED')) { | |
$modx_cache_disabled= true; | |
define('MODX_CACHE_DISABLED', $modx_cache_disabled); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment