|
|
@ -127,10 +127,24 @@ class SetUp
|
|
|
|
$zip->extractTo("../content");
|
|
|
|
$zip->extractTo("../content");
|
|
|
|
|
|
|
|
|
|
|
|
//move to appropriate spots
|
|
|
|
//move to appropriate spots
|
|
|
|
|
|
|
|
/*
|
|
|
|
rename(
|
|
|
|
rename(
|
|
|
|
"../content/settings/settings.json",
|
|
|
|
"../content/settings/settings.json",
|
|
|
|
"../config/settings.json"
|
|
|
|
"../config/settings.json"
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//load up old config file
|
|
|
|
|
|
|
|
$newConfig = json_decode(
|
|
|
|
|
|
|
|
file_get_contents("../content/settings/settings.json"),
|
|
|
|
|
|
|
|
true
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
//check for key, add if not there
|
|
|
|
|
|
|
|
if (!isset($newConfig["global"]["externalAPI"])) {
|
|
|
|
|
|
|
|
$newConfig["global"]["externalAPI"] = "false";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//write new config file
|
|
|
|
|
|
|
|
DocTools::writeSettings("../config/settings.json", $newConfig);
|
|
|
|
|
|
|
|
|
|
|
|
//rename("../content/settings/folks.json", "../config/folks.json");
|
|
|
|
//rename("../content/settings/folks.json", "../config/folks.json");
|
|
|
|
DocTools::writeSettings("../config/folks.json", $newFolks);
|
|
|
|
DocTools::writeSettings("../config/folks.json", $newFolks);
|
|
|
|