@@ -55,12 +55,7 @@ function copyOldVersion() {
55
55
}
56
56
$ source = "../ " ;
57
57
$ dest = PATH ;
58
- // Set a stream context timeout for file reading
59
- $ context = stream_context_create (array ('http ' =>
60
- array (
61
- 'timeout ' => 60 // secs
62
- )
63
- ));
58
+
64
59
echo 'Moving current ICEcoder files...<br> ' ;
65
60
foreach ($ iterator = new RecursiveIteratorIterator (new RecursiveDirectoryIterator ($ source , RecursiveDirectoryIterator::SKIP_DOTS ),RecursiveIteratorIterator::SELF_FIRST ) as $ item ) {
66
61
if (strpos ($ source .DIRECTORY_SEPARATOR .$ iterator ->getSubPathName (),"oldVersion " )==false ) {
@@ -84,8 +79,6 @@ function copyOldVersion() {
84
79
}
85
80
86
81
function openZipNew ($ icvInfo ) {
87
- global $ context ;
88
-
89
82
echo 'Retrieving zip from ICEcoder site...<br> ' ;
90
83
$ source = 'ICEcoder v ' .$ icvInfo ;
91
84
$ target = '../ ' ;
@@ -129,8 +122,6 @@ function openZipNew($icvInfo) {
129
122
}
130
123
131
124
function transposeSettings ($ oldFile ,$ newFile ,$ saveFile ) {
132
- global $ context ;
133
-
134
125
echo '- Getting old and new settings...<br> ' ;
135
126
// Get old and new settings and start a new $contents
136
127
$ oldSettingsContent = getData ($ oldFile );
@@ -213,7 +204,7 @@ function copyOverSettings($icvInfo) {
213
204
echo '<script>alert(" ' .$ t ['Update appears to... ' ].'");window.location = "../?display=updated&csrf= ' .$ _SESSION ["csrf " ].'";</script> ' ;
214
205
} else {
215
206
echo 'Something appears to have gone wrong :-/<br><br> ' ;
216
- echo 'Please report bugs at <a href=\"https://github.com/%3Cspan%20class="x x-first x-last">mattpass /ICEcoder\" style=\"color: #fff\">https://github.com/mattpass /ICEcoder</a><br><br> ';
207
+ echo 'Please report bugs at <a href=\"https://github.com/%3Cspan%20class="x x-first x-last">icecoder /ICEcoder\" style=\"color: #fff\">https://github.com/icecoder /ICEcoder</a><br><br> ';
217
208
echo 'You can recover the old version from ICEcoder \'s tmp dir ' ;
218
209
}
219
210
?>
0 commit comments