Fixed problems with autoupdate enterprise in login when no connect with artica.es

This commit is contained in:
m-lopez-f 2016-03-23 14:01:25 +01:00
parent e12924d579
commit 82174f0bae
1 changed files with 4 additions and 0 deletions

View File

@ -230,6 +230,8 @@ function update_manager_check_online_free_packages_available() {
curl_setopt($curlObj, CURLOPT_POST, true); curl_setopt($curlObj, CURLOPT_POST, true);
curl_setopt($curlObj, CURLOPT_POSTFIELDS, $params); curl_setopt($curlObj, CURLOPT_POSTFIELDS, $params);
curl_setopt($curlObj, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curlObj, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curlObj, CURLOPT_CONNECTTIMEOUT, 4);
if (isset($config['update_manager_proxy_server'])) { if (isset($config['update_manager_proxy_server'])) {
curl_setopt($curlObj, CURLOPT_PROXY, $config['update_manager_proxy_server']); curl_setopt($curlObj, CURLOPT_PROXY, $config['update_manager_proxy_server']);
} }
@ -296,6 +298,8 @@ function update_manager_check_online_free_packages ($is_ajax=true) {
curl_setopt($curlObj, CURLOPT_POST, true); curl_setopt($curlObj, CURLOPT_POST, true);
curl_setopt($curlObj, CURLOPT_POSTFIELDS, $params); curl_setopt($curlObj, CURLOPT_POSTFIELDS, $params);
curl_setopt($curlObj, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curlObj, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curlObj, CURLOPT_CONNECTTIMEOUT, 4);
if (isset($config['update_manager_proxy_server'])) { if (isset($config['update_manager_proxy_server'])) {
curl_setopt($curlObj, CURLOPT_PROXY, $config['update_manager_proxy_server']); curl_setopt($curlObj, CURLOPT_PROXY, $config['update_manager_proxy_server']);
} }