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:
Matt Pass
2014-04-26 16:14:27 +01:00
parent f00686c679
commit d5e6fb041f
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

@@ -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);

View File

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