Changeset 1660 in ExiteCMS for trunk/includes/core_functions.php
- Timestamp:
- 08/21/08 16:07:21 (4 years ago)
- File:
-
- 1 edited
-
trunk/includes/core_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core_functions.php
r1648 r1660 100 100 define("INIT_CMS_OK", TRUE); 101 101 102 // loadthe config file102 // get the full filename of the config file 103 103 @include_once PATH_ROOT."configpath.php"; 104 104 if (substr(CONFIG_PATH,0,1) == "/") { 105 if(is_file(CONFIG_PATH."/config.php")) { 106 @include_once CONFIG_PATH."/config.php"; 107 } 105 define('CONFIG_FILE', str_replace("//", "/", CONFIG_PATH."/config.php")); 108 106 } else { 109 if(is_file(PATH_ROOT.CONFIG_PATH."/config.php")) { 110 @include_once PATH_ROOT.CONFIG_PATH."/config.php"; 111 } 107 define('CONFIG_FILE', str_replace("//", "/", PATH_ROOT.CONFIG_PATH."/config.php")); 108 } 109 if(is_file(CONFIG_FILE)) { 110 @include_once CONFIG_FILE; 112 111 } 113 112 114 113 // if config.php is absent or empty, bail out with an error 115 if (!isset($db_name)) terminate('FATAL ERROR: config file is missing. Check our Wiki at http://exitecms.exite.eu on how to run the setup'); 114 if (!isset($db_name)) { 115 terminate('FATAL ERROR: config file is missing. Did you run the setup?<br />Check our Wiki at http://exitecms.exite.eu on how to run the setup'); 116 } 116 117 117 118 // load the database functions, and establish a database connection
Note: See TracChangeset
for help on using the changeset viewer.
