mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-11 19:16:49 +01:00
Reverting to use http: instead of https: for now
file_get_contents won't get https: data for now Need to look at resolving this
This commit is contained in:
@@ -10,7 +10,7 @@ if (!in_array($_SERVER["REMOTE_ADDR"], $_SESSION['allowedIPs']) && !in_array("*"
|
||||
$updateMsg = '';
|
||||
// Check for updates
|
||||
if ($ICEcoder["checkUpdates"]) {
|
||||
$icv_url = "https://icecoder.net/latest-version?thisVersion=".$ICEcoder["versionNo"];
|
||||
$icv_url = "http://icecoder.net/latest-version?thisVersion=".$ICEcoder["versionNo"];
|
||||
if (ini_get('allow_url_fopen')) {
|
||||
$icvInfo = explode("\n",file_get_contents($icv_url,false,$context));
|
||||
} elseif (function_exists('curl_init')) {
|
||||
|
||||
@@ -3,7 +3,7 @@ include("headers.php");
|
||||
include("settings.php");
|
||||
|
||||
// Set the plugin data source
|
||||
$pluginsDataSrc = "https://icecoder.net/plugin-data?format=JSON";
|
||||
$pluginsDataSrc = "http://icecoder.net/plugin-data?format=JSON";
|
||||
|
||||
// Now get our plugin data and put into a PHP array
|
||||
if (ini_get('allow_url_fopen')) {
|
||||
|
||||
@@ -48,7 +48,7 @@ function copyOldVersion() {
|
||||
}
|
||||
}
|
||||
}
|
||||
$icv_url = "https://icecoder.net/latest-version.txt";
|
||||
$icv_url = "http://icecoder.net/latest-version.txt";
|
||||
echo 'Detecting current version of ICEcoder...<br>';
|
||||
if (ini_get('allow_url_fopen')) {
|
||||
$icvInfo = file_get_contents($icv_url,false,$context);
|
||||
@@ -71,7 +71,7 @@ function openZipNew($icvInfo) {
|
||||
$source = 'ICEcoder v'.$icvInfo;
|
||||
$target = '../';
|
||||
|
||||
$remoteFile = 'https://icecoder.net/ICEcoder-v'.(str_replace(" beta", "-beta",$icvInfo)).'.zip';
|
||||
$remoteFile = 'http://icecoder.net/ICEcoder-v'.(str_replace(" beta", "-beta",$icvInfo)).'.zip';
|
||||
$file = "../tmp/new-version.zip";
|
||||
if (ini_get('allow_url_fopen')) {
|
||||
$fileData = file_get_contents($remoteFile,false,$context);
|
||||
|
||||
@@ -225,7 +225,7 @@ test = {
|
||||
o.p = ICEcoder.openFiles[1];
|
||||
t++;
|
||||
},1);
|
||||
result = ICEcoder.getRemoteFile('https://icecoder.net/latest-version');
|
||||
result = ICEcoder.getRemoteFile('http://icecoder.net/latest-version');
|
||||
},
|
||||
|
||||
moveGoToLine: function() {
|
||||
|
||||
Reference in New Issue
Block a user