Beispiel #1
0
	function Report2Server($arServerReport)
	{
		$strError_tmp = "";

		if (!is_array($arServerReport) || count($arServerReport)<=0)
		{
			$strError_tmp .= "[UR2S01] Empty report.<br>";
		}

		if (strlen($strError_tmp)<=0)
		{
			$GLOBALS["DB"]->GetVersion();

			$strVars = "LICENSE_KEY=".urlencode(md5(CUpdateSystem::GetLicenseKey())).
				"&CLIENT_SITE=".urlencode($_SERVER["SERVER_NAME"]).
				"&CLIENT_PHPVER=".urlencode(phpversion()).
				"&SUPD_DBS=".urlencode($GLOBALS["DB"]->type).
				"&XE=".urlencode(($GLOBALS["DB"]->XE) ? "Y" : "N").
				"&CANGZIP=".urlencode((CUpdateSystem::IsGzipInstalled()) ? "Y" : "N");

			foreach ($arServerReport as $key => $value)
			{
				if (strlen($strVars)>0)
					$strVars .= "&";

				$strVars .= "bitm_".$key."=".urlencode($value[0]."!".$value[1]);
			}
		}

		if (strlen($strError_tmp)<=0)
		{
			$content = CUpdateSystem::getHTTPPage("bit_sysreport.php", $strVars, $strError_tmp);

			if (strlen($content)<=0)
				$strError_tmp .= "[UR2S03] Empty server response.<br>";
		}
	}
Beispiel #2
0
		<br><br>
		<?php 
    }
    ?>

	<?php 
    $bLicenseNotFound = False;
    if ($arTypesUpdates !== false && isset($arTypesUpdates["ERROR"]) && count($arTypesUpdates["ERROR"]) > 0) {
        for ($i = 0; $i < count($arTypesUpdates["ERROR"]); $i++) {
            if ($arTypesUpdates["ERROR"][$i]["@"]["TYPE"] == "LICENSE_NOT_FOUND") {
                $bLicenseNotFound = True;
                break;
            }
        }
    }
    $strLicenseKey_tmp = CUpdateSystem::GetLicenseKey();
    if (!$bLockUpdateSystemKernel && (strlen($strLicenseKey_tmp) <= 0 || strtolower($strLicenseKey_tmp) == "demo" || $bLicenseNotFound)) {
        if (defined("DEMO") && DEMO == "Y") {
            ?>
			<?php 
            echo str_replace("#URL#", "http://" . ($lang == "ru" ? "www.bitrixsoft.ru/ru" : "www.bitrixsoft.com") . "/bsm_register.php?dt=" . UrlEncode($SiteExpireDate), GetMessage("SUP_NO_KEY_PROMT"));
            ?>
			<br><br>

			<a href="http://<?php 
            echo $lang == "ru" ? "www.bitrixsoft.ru/ru" : "www.bitrixsoft.com";
            ?>
/bsm_register.php?dt=<?php 
            echo UrlEncode($SiteExpireDate);
            ?>
" target="_blank"><img src="/bitrix/images/main/icon2.gif" width="15" height="15" border="0" alt="<?php