diff --git a/lib/updater.php b/lib/updater.php index 20760db..9adc2d7 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -55,12 +55,7 @@ function copyOldVersion() { } $source = "../"; $dest = PATH; - // Set a stream context timeout for file reading - $context = stream_context_create(array('http'=> - array( - 'timeout' => 60 // secs - ) - )); + echo 'Moving current ICEcoder files...
'; foreach ($iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($source, RecursiveDirectoryIterator::SKIP_DOTS),RecursiveIteratorIterator::SELF_FIRST) as $item) { if (strpos($source.DIRECTORY_SEPARATOR.$iterator->getSubPathName(),"oldVersion")==false) { @@ -84,8 +79,6 @@ function copyOldVersion() { } function openZipNew($icvInfo) { - global $context; - echo 'Retrieving zip from ICEcoder site...
'; $source = 'ICEcoder v'.$icvInfo; $target = '../'; @@ -129,8 +122,6 @@ function openZipNew($icvInfo) { } function transposeSettings($oldFile,$newFile,$saveFile) { - global $context; - echo '- Getting old and new settings...
'; // Get old and new settings and start a new $contents $oldSettingsContent = getData($oldFile); @@ -213,7 +204,7 @@ if ($updateDone) { echo ''; } else { echo 'Something appears to have gone wrong :-/

'; - echo 'Please report bugs at https://github.com/mattpass/ICEcoder

'; + echo 'Please report bugs at https://github.com/icecoder/ICEcoder

'; echo 'You can recover the old version from ICEcoder\'s tmp dir'; } ?>