From bedf4820354e4e35cec3c4fed99fd346e7739b92 Mon Sep 17 00:00:00 2001 From: mattpass Date: Sat, 18 Jul 2020 21:48:43 +0100 Subject: [PATCH] Disable updater system for now --- assets/js/icecoder.js | 22 +++++++++++----------- index.php | 2 +- lib/updater.php | 3 +++ 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/assets/js/icecoder.js b/assets/js/icecoder.js index 5222825..4072d82 100644 --- a/assets/js/icecoder.js +++ b/assets/js/icecoder.js @@ -3752,17 +3752,17 @@ var ICEcoder = { }, // Update ICEcoder - update: function() { - var autoUpdate; - - autoUpdate = confirm(t['Please note for...']); - if (autoUpdate) { - this.showHide('show',get('loadingMask')); - window.location = iceLoc+"/lib/updater.php"; - } else { - window.open("https://this.net"); - } - }, + // update: function() { + // var autoUpdate; + // + // autoUpdate = confirm(t['Please note for...']); + // if (autoUpdate) { + // this.showHide('show',get('loadingMask')); + // window.location = iceLoc+"/lib/updater.php"; + // } else { + // window.open("https://this.net"); + // } + // }, // ICEcoder just updated updated: function() { diff --git a/index.php b/index.php index 1a4191a..fb70c60 100644 --- a/index.php +++ b/index.php @@ -29,7 +29,7 @@ if ($ICEcoder["checkUpdates"]) { $updateMsg = ";ICEcoder.dataMessage('" . $t['UPDATE INFO'] . ": ICEcoder v " . $icv." " . $t['now available'] . ". (" . $t['Your version is'] . " v " . $ICEcoder["versionNo"] . - ").

" . + ").

" . $t['Update now'] . "

" . $icvI ."');"; } } diff --git a/lib/updater.php b/lib/updater.php index d0d6469..a6f10ac 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -1,4 +1,6 @@ '; + // TODO: Needs overhauling as newConfigSettingsFile no longer exists // Include our params to make use of (as $newConfigSettingsFile) include(dirname(__FILE__)."/settings-system-params.php"); if ($fConfigSettings = fopen(dirname(__FILE__)."/../data/".$configSettings, 'w')) {