mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-12 03:26:50 +01:00
Turn SSL verify peer off
https over CURL Won't work locally otherwise
This commit is contained in:
@@ -15,6 +15,7 @@ if ($ICEcoder["checkUpdates"]) {
|
||||
$icvInfo = explode("\n",file_get_contents($icv_url,false,$context));
|
||||
} elseif (function_exists('curl_init')) {
|
||||
$ch = curl_init($icv_url);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
$icvInfo = explode("\n", curl_exec($ch));
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ if (ini_get('allow_url_fopen')) {
|
||||
$pluginsDataJS = file_get_contents($pluginsDataSrc, false, $context);
|
||||
} elseif (function_exists('curl_init')) {
|
||||
$pDSrc = curl_init($pluginsDataSrc);
|
||||
curl_setopt($pDSrc, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($pDSrc, CURLOPT_RETURNTRANSFER, true);
|
||||
$pluginsDataJS = curl_exec($pDSrc);
|
||||
}
|
||||
|
||||
@@ -54,6 +54,7 @@ function copyOldVersion() {
|
||||
$icvInfo = file_get_contents($icv_url,false,$context);
|
||||
} elseif (function_exists('curl_init')) {
|
||||
$ch = curl_init($icv_url);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
$icvInfo = curl_exec($ch);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user