25 $curl = curl_init($url);
28 if ($useProxySettings && $httpProxyHost =
Config::getVar(
'proxy',
'http_host')) {
29 curl_setopt($curl, CURLOPT_PROXY, $httpProxyHost);
30 curl_setopt($curl, CURLOPT_PROXYPORT,
Config::getVar(
'proxy',
'http_port',
'80'));
32 curl_setopt($curl, CURLOPT_PROXYUSERPWD, $username .
':' .
Config::getVar(
'proxy',
'password'));
38 curl_setopt($curl, CURLOPT_CAINFO, $cainfo);
43 if (
Config::getVar(
'general',
'installed') && !defined(
'RUNNING_UPGRADE')) {
45 curl_setopt($curlCh, CURLOPT_USERAGENT,
$application->getName() .
'/' . $currentVersion->getVersionString());
47 curl_setopt($curlCh, CURLOPT_USERAGENT,
$application->getName() .
'/?');