Disable updater system for now

This commit is contained in:
mattpass
2020-07-18 21:48:43 +01:00
parent e9ee1a9428
commit bedf482035
3 changed files with 15 additions and 12 deletions

View File

@@ -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() {

View File

@@ -29,7 +29,7 @@ if ($ICEcoder["checkUpdates"]) {
$updateMsg =
";ICEcoder.dataMessage('<b>" . $t['UPDATE INFO'] .
":</b> ICEcoder v " . $icv." " . $t['now available'] . ". (" . $t['Your version is'] . " v " . $ICEcoder["versionNo"] .
").<br><br><a onclick=\\'ICEcoder.update()\\' style=\\'color:#fff; background: #b00; padding: 5px; text-decoration: none; cursor: pointer\\'>" .
").<br><br><a href=\\'https://icecoder.net\\' target=\\'_blank\\' style=\\'color:#fff; background: #b00; padding: 5px; text-decoration: none; cursor: pointer\\'>" .
$t['Update now'] . "</a><br><br>" . $icvI ."');";
}
}

View File

@@ -1,4 +1,6 @@
<?php
die("Updater system unused till a future point in time");
include("headers.php");
include("settings.php");
$t = $text['updater'];
@@ -169,6 +171,7 @@ function copyOverSettings($icvInfo) {
// The reason we create it, is so it has PHP write permissions, meaning we can update it later
if (!file_exists(dirname(__FILE__)."/../data/".$configSettings)) {
echo 'Creating new settings file...<br>';
// 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')) {