84             $this->_sBaseDirectory = $sDir;
 
  105         if (!empty($sVersion)) {
 
  106             $this->_sVersion = $sVersion;
 
  127         if (!empty($sEdition)) {
 
  128             $this->_sEdition = $sEdition;
 
  149         if (!empty($sRevision)) {
 
  150             $this->_sRevision = $sRevision;
 
  172             $this->_sWebServiceUrl = $sUrl;
 
  213         $this->_oCurlHandler = 
oxNew(
"oxCurl");
 
  216             $this->_blError = 
true;
 
  217             $this->_sErrorMessage .= 
"Error: requirements are not met.";
 
  248         $this->_oCurlHandler->setUrl($this->_sWebServiceUrl);
 
  249         $this->_oCurlHandler->setMethod(
"GET");
 
  250         $this->_oCurlHandler->setOption(
"CURLOPT_CONNECTTIMEOUT", 30);
 
  251         $this->_oCurlHandler->setParameters($aParams);
 
  252         $sXML = $this->_oCurlHandler->execute();
 
  255             $this->_blError = 
true;
 
  256             $this->_sErrorMessage = 
oxRegistry::getLang()->translateString(
'OXDIAG_ERRORMESSAGEWEBSERVICEISNOTREACHABLE');
 
  260             $oXML = 
new SimpleXMLElement($sXML);
 
  262             $this->_blError = 
true;
 
  263             $this->_sErrorMessage .= 
oxRegistry::getLang()->translateString(
'OXDIAG_ERRORMESSAGEWEBSERVICERETURNEDNOXML');
 
  266         if (!is_object($oXML)) {
 
  267             $this->_blError = 
true;
 
  268             $this->_sErrorMessage .= 
oxRegistry::getLang()->translateString(
'OXDIAG_ERRORMESSAGEVERSIONDOESNOTEXIST');
 
  283             'job' => 
'existsversion',
 
  289         $sURL = $this->_sWebServiceUrl . 
"?" . http_build_query($aParams);
 
  291         if ($sXML = @file_get_contents($sURL)) {
 
  292             $oXML = 
new SimpleXMLElement($sXML);
 
  293             if (is_object($oXML)) {
 
  294                 if ($oXML->exists == 1) {
 
  300         $this->_blError = 
true;
 
  306         $this->_sErrorMessage .= $sError;
 
  323         if ($this->_oCurlHandler == null) {
 
  327         if (!file_exists($this->_sBaseDirectory . $sFile)) {
 
  331         $sMD5 = md5_file($this->_sBaseDirectory . $sFile);
 
  339         if (is_object($oXML)) {
 
  341             if ($oXML->res == 
'OK') {
 
  345                 if (preg_match(
'/(SOURCE|SNAPSHOT)/', $oXML->pkg, $aMatch)) {
 
  347                     $sMessage = 
'SOURCE|SNAPSHOT';
 
  353             } elseif ($oXML->res == 
'VERSIONMISMATCH') {
 
  357             } elseif ($oXML->res == 
'MODIFIED') {
 
  361             } elseif ($oXML->res == 
'OBSOLETE') {
 
  365             } elseif ($oXML->res == 
'UNKNOWN') {
 
  373                 "result"  => strval($oXML->res),
 
  377                 "message" => $sMessage
 
  403         $this->_oCurlHandler->setUrl($this->_sWebServiceUrl);
 
  404         $this->_oCurlHandler->setMethod(
"GET");
 
  405         $this->_oCurlHandler->setOption(
"CURLOPT_CONNECTTIMEOUT", 30);
 
  406         $this->_oCurlHandler->setParameters($aParams);
 
  407         $sXML = $this->_oCurlHandler->execute();
 
  410             $oXML = 
new SimpleXMLElement($sXML);