array( 'method' => 'POST', 'content' => $d )); if ($optional_headers !== null) { $params['http']['header'] = $optional_headers; } $ctx = stream_context_create($params); $fp = @fopen($url, 'rb', false, $ctx); if (!$fp) { throw new Exception(GetMessage("JS_ERR_CONN")." $url $php_errormsg"); } $response = @stream_get_contents($fp); if ($response === false) { throw new Exception(GetMessage("JS_ERR_CONN")." $url $php_errormsg"); } return $response; } try { $authToken = uniqid (); $siteUrl = "http://".COption::GetOptionString("main", "server_name"); if (!$email) throw new Exception(GetMessage("JS_NO_EMAIL")); if (!$password) throw new Exception(GetMessage("JS_NO_PW")); if (!$sites) throw new Exception(GetMessage("JS_NO_SITES")); if (!$userDisplayName) throw new Exception(GetMessage("JS_NO_NAME")); $res = do_post_request("https://".JIVO_BASE_URL."/integration/install", array( "partnerId" => "bitrix", "partnerPassword" => "bitrix", "siteUrl" => $siteUrl, "email" => $email, "userPassword" => $password, "userDisplayName" => $userDisplayName, "authToken" => $authToken ) ); if (strstr($res,"Error:") != FALSE || !preg_match('/^[0-9a-zA-Z]{10}$/', $res)){ throw new Exception($res); } COption::SetOptionString("jivosite.jivosite", "widget_id", $res); COption::SetOptionString("jivosite.jivosite", "auth_token", $authToken); $sites = json_encode($sites); COption::SetOptionString("jivosite.jivosite", "sites", $sites); RegisterModule("jivosite.jivosite"); RegisterModuleDependences("main", "OnPageStart", "jivosite.jivosite", "JivoSiteClass", "addScriptTag", "0"); echo CAdminMessage::ShowNote(GetMessage("MOD_INST_OK")); $token = COption::GetOptionString("jivosite.jivosite", "auth_token"); ?>
Fatal error: Uncaught Error: Call to undefined function GetMessage() in D:\ktt\ttepla.com\public_html\bitrix\modules\jivosite.jivosite\install\step2.php:78 Stack trace: #0 {main} thrown in D:\ktt\ttepla.com\public_html\bitrix\modules\jivosite.jivosite\install\step2.php on line 78