mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Config now includes server name
Config filename now also includes server name (domain and subdomains). This means you can end up with different config files depending on where ICEcoder is being used, such as config-localhost.php, config-mydomain_com.php, config-dev_mydomain_com.php etc. Also now using CodeMirror 3.13
This commit is contained in:
@@ -73,7 +73,7 @@ function toUTF8noBOM($string,$message) {
|
||||
|
||||
// Settings are stored in this file
|
||||
$settingsTemplate = 'config-template.php';
|
||||
$settingsFile = 'config.php';
|
||||
$settingsFile = 'config-'.str_replace(".","_",$_SERVER['SERVER_NAME']).'.php';
|
||||
if (!file_exists(dirname(__FILE__)."/".$settingsFile)) {
|
||||
if (!copy(dirname(__FILE__)."/".$settingsTemplate, dirname(__FILE__)."/".$settingsFile)) {
|
||||
die("Couldn't create $settingsFile. Maybe you need write permissions on the lib folder?");
|
||||
@@ -84,7 +84,7 @@ include(dirname(__FILE__)."/".$settingsFile);
|
||||
// Add ICEcoder settings to beginning of $ICEcoder array
|
||||
$ICEcoder = array(
|
||||
"versionNo" => "2.4",
|
||||
"codeMirrorDir" => "CodeMirror-3.12",
|
||||
"codeMirrorDir" => "CodeMirror-3.13",
|
||||
"demoMode" => false,
|
||||
"devMode" => false,
|
||||
"lineEnding" => "\n"
|
||||
|
||||
Reference in New Issue
Block a user