array( 'proxy' => 'tcp://'.$SETS['network']['proxyserver'], 'request_fulluri' => true, 'header' => "Proxy-Authorization: Basic $strProxyAuth", 'timeout' => 1, ), ); } else { $aContext = array( 'http' => array( 'proxy' => 'tcp://'.$SETS['network']['proxyserver'], 'request_fulluri' => true, 'timeout' => 1, ), ); } $intErrorReporting = error_reporting(); error_reporting(0); $cxContext = stream_context_create($aContext); $arrFile = file($versionfeed, false, $cxContext); $arrError = error_get_last(); error_reporting($intErrorReporting); if ($arrError['message'] != "") $strError .= utf8_encode($arrError['message'])." (".translate("check proxy settings").")"; } else { $intErrorReporting = error_reporting(); error_reporting(0); $cxContext = stream_context_create(array('http' => array('timeout' => 1))); $arrFile = file($versionfeed, false, $cxContext); $arrError = error_get_last(); error_reporting($intErrorReporting); if ($arrError['message'] != "") $strError .= utf8_encode($arrError['message'])." (".translate("check proxy settings").")"; } $strInstalled = translate('Installed'); $strAvailable = translate('Available'); $strInformation = translate('Information'); $strVersion = ""; $strRelease = ""; $strRelInfo = ""; if (is_array($arrFile) && (count($arrFile)) != 0) { foreach ($arrFile AS $elem) { if (substr_count($elem,"version") != 0) $strVersion = trim(strip_tags($elem)); if (substr_count($elem,"release_date") != 0) $strRelease = trim(strip_tags($elem)); if (substr_count($elem,"error") != 0) $strError = trim(strip_tags($elem)); if (substr_count($elem,"information") != 0) $strRelInfo = trim(strip_tags($elem)); } } $setFileAvailable = $strVersion; if (version_compare($strVersion, $setFileVersion,'==')) { $setFileInformation = "NagiosQL on Sourceforge"; } else if (version_compare($strVersion, $setFileVersion,'<=')) { $setFileInformation = " "; } if (($strError != "none") && ($strError != "")) $setFileInformation = " "; ?>
"; } else if (version_compare($strVersion, $setFileVersion,'>=')) { $setFileInformation = " : "; $setFileInformation .= "
Loading...