PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` getScriptsContent(); } /** * Getting scripts content. * * @return string */ public function getScriptsContent() { $content = ''; if (!function_exists('xray_get_tracing_task_id')) { return $content; } $tracing_task_id = xray_get_tracing_task_id(); if (!is_string($tracing_task_id)) { return $content; } $processor_path = CL_PHP_XRAY_PROFILER_PATH . '/assets/web.vitals.min.js'; if (is_readable($processor_path)) { $js_app_code = file_get_contents($processor_path); if (is_string($js_app_code)) { $js_app_code = preg_replace( [ '/' . preg_quote('#cl_id#') . '/', '/' . preg_quote('#cl_api_url#') . '/', ], [ $tracing_task_id, $this->getAPIUrl(), ], $js_app_code, 1 ); if (is_string($js_app_code)) { $content = $this->wrapJsCode($js_app_code); } } } return $content; } /** * Wrap the javascript code in the script tag * * @param string $code * * @return string */ public function wrapJsCode($code) { return ''; } /** * Getting API URL * * @return string */ public function getAPIUrl() { $url = 'https://xray.cloudlinux.com/api/xray/web-vitals'; if ( @file_exists('/opt/cloudlinux/staging_mode') || (defined('CL_STAGING_MODE') && CL_STAGING_MODE) ) { $url = 'https://test-api.imunify360.com/api/xray/web-vitals'; } return $url; } } }