Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
/ICEcoderPublic archive

Commit9f0c83a

Browse files
authored
Remove context, unused
1 parent745d47c commit9f0c83a

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

‎lib/updater.php‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ function copyOldVersion() {
5555
}
5656
$source ="../";
5757
$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+
6459
echo'Moving current ICEcoder files...<br>';
6560
foreach ($iterator =newRecursiveIteratorIterator(newRecursiveDirectoryIterator($source, RecursiveDirectoryIterator::SKIP_DOTS),RecursiveIteratorIterator::SELF_FIRST)as$item) {
6661
if (strpos($source.DIRECTORY_SEPARATOR.$iterator->getSubPathName(),"oldVersion")==false) {
@@ -84,8 +79,6 @@ function copyOldVersion() {
8479
}
8580

8681
functionopenZipNew($icvInfo) {
87-
global$context;
88-
8982
echo'Retrieving zip from ICEcoder site...<br>';
9083
$source ='ICEcoder v'.$icvInfo;
9184
$target ='../';
@@ -129,8 +122,6 @@ function openZipNew($icvInfo) {
129122
}
130123

131124
functiontransposeSettings($oldFile,$newFile,$saveFile) {
132-
global$context;
133-
134125
echo'- Getting old and new settings...<br>';
135126
// Get old and new settings and start a new $contents
136127
$oldSettingsContent =getData($oldFile);
@@ -213,7 +204,7 @@ function copyOverSettings($icvInfo) {
213204
echo'<script>alert("'.$t['Update appears to...'].'");window.location = "../?display=updated&csrf='.$_SESSION["csrf"].'";</script>';
214205
}else {
215206
echo'Something appears to have gone wrong :-/<br><br>';
216-
echo'Please report bugs at <a href=\"https://github.com/mattpass/ICEcoder\" style=\"color: #fff\">https://github.com/mattpass/ICEcoder</a><br><br>';
207+
echo'Please report bugs at <a href=\"https://github.com/icecoder/ICEcoder\" style=\"color: #fff\">https://github.com/icecoder/ICEcoder</a><br><br>';
217208
echo'You can recover the old version from ICEcoder\'s tmp dir';
218209
}
219210
?>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp