Current Path : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/modules/fileman/admin/ |
Current File : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/modules/fileman/admin/fileman_js.php |
<? $HTTP_ACCEPT_ENCODING = ''; session_cache_limiter("public"); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); IncludeModuleLangFile(__FILE__); function _GtFMess() { if(file_exists($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/fileman/lang/'.LANGUAGE_ID.'/admin/fileman_js.php')) include($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/fileman/lang/'.LANGUAGE_ID.'/admin/fileman_js.php'); else include($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/fileman/lang/en/admin/fileman_js.php'); return $MESS; } $file_version = @filemtime($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/fileman/lang/'.LANGUAGE_ID.'/admin/fileman_js.php'); if (!isset($_SERVER['HTTP_IF_NONE_MATCH']) || $_SERVER['HTTP_IF_NONE_MATCH'] != '"'.$file_version.'"') { header("Pragma: private"); header("Cache-Control: public, max-age=2592000"); // 30 days header('ETag: "'.$file_version.'"'); header("Content-Type: application/x-javascript; charset=".LANG_CHARSET); $sMess = ""; $aMess = _GtFMess(); $aMess = array_keys($aMess); for($i=0; $i<count($aMess); $i++) if(mb_substr($aMess[$i], 0, mb_strlen("FILEMAN_JS_")) == "FILEMAN_JS_") $sMess .= "'".mb_substr($aMess[$i], mb_strlen("FILEMAN_JS_"))."': '".CUtil::addslashes(GetMessage($aMess[$i]))."',"; $sMess = rtrim($sMess,','); ?>var BX_MESS = {<?=$sMess?>};<? } else { CHTTP::SetStatus("304 Not Modified"); header("Pragma: private"); header("Cache-Control: public, max-age=2592000"); // 30 days header('ETag: "'.$file_version.'"'); header("Content-Type: application/x-javascript; charset=".LANG_CHARSET); while(ob_get_level()) ob_end_clean(); exit; }