mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Disable updater system for now
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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 ."');";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user