mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-11 19:16:49 +01:00
Start copying settings over
$updateDone = true moved to end of new function, copyOverSettings Extra echo line in openNewZip and then calls this function Get settings from old config___settings.php file For now, for each one, get $key and $value Need to save these info new config___settings.php file
This commit is contained in:
@@ -61,8 +61,6 @@ function copyOldVersion() {
|
||||
}
|
||||
|
||||
function openZipNew($icvInfo) {
|
||||
global $updateDone;
|
||||
|
||||
echo 'Retrieving zip from ICEcoder site...<br>';
|
||||
$source = 'ICEcoder v'.$icvInfo;
|
||||
$target = '../';
|
||||
@@ -109,6 +107,22 @@ function openZipNew($icvInfo) {
|
||||
}
|
||||
fclose($fpr);
|
||||
}
|
||||
echo 'Finished copying over zip dirs & files...<br>';
|
||||
copyOverSettings($icvInfo);
|
||||
}
|
||||
|
||||
function copyOverSettings($icvInfo) {
|
||||
global $updateDone;
|
||||
|
||||
// Get settings from old version
|
||||
include(PATH."lib/config___settings.php");
|
||||
echo "Getting...".PATH."lib/config___settings.php<br>";
|
||||
var_dump($ICEcoderSettings);
|
||||
foreach ($ICEcoderSettings as $key => $value) {
|
||||
echo "Key: $key; Value: $value<br />\n";
|
||||
// Now need to copy the settings over to new config file...
|
||||
}
|
||||
echo 'All update tasks completed...<br>';
|
||||
$updateDone = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user