uawdijnntqw1x1x1
IP : 216.73.217.47
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
.
/
files
/
need-2-delete
/
mini-borishof.ru1
/
bitrix
/
modules
/
fileman
/
classes
/
general
/
code_editor.php
/
/
<? IncludeModuleLangFile(__FILE__); class CCodeEditor // CE { public static function Show($params) { global $APPLICATION, $USER; CUtil::InitJSCore(array('window', 'ajax')); $APPLICATION->AddHeadScript('/bitrix/js/fileman/code_editor/code-editor.js'); $APPLICATION->SetAdditionalCSS('/bitrix/js/fileman/code_editor/code-editor.css'); $id = (isset($params['id']) && strlen($params['id']) > 0) ? $params['id'] : 'bxce-'.substr(uniqid(mt_rand(), true), 0, 4); $theme = isset($params['defaultTheme']) ? $params['defaultTheme'] : 'light'; $highlight = isset($params['defaultHighlight']) ? $params['defaultHighlight'] : true; $saveSettings = $params['saveSettings'] !== false && $USER && $USER->IsAuthorized(); if ($saveSettings) { $Settings = CUserOptions::GetOption("fileman", "code_editor"); $theme = $Settings['theme'] == 'dark' ? 'dark' : 'light'; $highlight = !isset($Settings['highlight']) || $Settings['highlight']; } if (!in_array($theme, array('dark', 'light'))) $theme = 'dark'; $highlight = $highlight === false ? false : true; $JSConfig = array( 'id' => $id, 'textareaId' => $params['textareaId'], 'theme' => $theme, 'highlightMode' => $highlight, 'saveSettings' => $saveSettings ); if (isset($params['width']) && intVal($params['width']) > 0) $JSConfig['width'] = $params['width']; if (isset($params['height']) && intVal($params['height']) > 0) $JSConfig['height'] = $params['height']; if (isset($params['forceSyntax']) && in_array($params['forceSyntax'], array('php', 'js', 'sql', 'css'))) $JSConfig['forceSyntax'] = $params['forceSyntax']; else $JSConfig['forceSyntax'] = false; ?> <script> BX.ready(function() { if (!top.BXCodeEditors) top.BXCodeEditors = window.BXCodeEditors = {}; function codeEditorLoaded() { var CE = new window.JCCodeEditor(<?= CUtil::PhpToJSObject($JSConfig)?>, <?= self::GetLangMessage()?>); top.BXCodeEditors['<?= $id?>'] = window.BXCodeEditors['<?= $id?>'] = CE; BX.onCustomEvent(window, "OnCodeEditorReady", ['<?= $id?>']); } if (!window.JCCodeEditor) { BX.loadScript('/bitrix/js/fileman/code_editor/code-editor.js?<?= @filemtime($_SERVER['DOCUMENT_ROOT'].'/bitrix/js/fileman/code_editor/code-editor.js')?>', codeEditorLoaded); BX.loadCSS('/bitrix/js/fileman/code_editor/code-editor.css'); } else { codeEditorLoaded(); } }); </script> <? return $id; } public static function GetLangMessage() { $langPath = $_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/fileman/lang/'.LANGUAGE_ID.'/classes/general/code_editor_js.php'; if(file_exists($langPath)) include($langPath); else $langPath = $_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/fileman/lang/en/classes/general/code_editor_js.php'; echo CUtil::PhpToJSObject($MESS); } } ?>
/var/./files/need-2-delete/mini-borishof.ru1/bitrix/modules/fileman/classes/general/code_editor.php