%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.146.221.231 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 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, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/webdebug.antirutin/plugins/element/function_exec/ |
Upload File : |
<? use WD\Antirutin\Helper, WD\Antirutin\IBlock; $arFunctions = $this->getFunctionList(true); $strFuncName = $this->get('function_name'); $arFuncJson = []; $strFuncJson = '{}'; if(strlen($strFuncName)){ $arFuncJson = $this->getFunctionArray($strFuncName); if(is_array($arFuncJson) && is_array($arFuncJson['ARGS'])){ foreach($arFuncJson['ARGS'] as $strArg => $arArg){ $strArgValue = $this->getFuncArgument($strArg); if(!is_null($strArgValue)){ $arFuncJson['ARGS'][$strArg]['VALUE'] = $strArgValue; } } } $strFuncJson = \WD\Antirutin\Json::encode($arFuncJson['ARGS']); } ?> <div class="plugin-form__field"> <div class="plugin-form__field-title"> <?=$this->fieldName('FIELD', true);?> </div> <div class="plugin-form__field-value"> <div id="<?=$this->getId('field');?>"> <?=IBlock::showAvailableFields($this->getFields(), $this->strEntityType, $this->getInputName('field'), $this->get('field'), 'data-role="field"', true);?> </div> </div> </div> <div class="plugin-form__field"> <div class="plugin-form__field-title"> <?=$this->fieldName('FUNCTION', true);?> </div> <div class="plugin-form__field-value"> <div id="<?=$this->getId('function');?>"> <div> <select name="<?=$this->getInputName('function_name');?>" data-role="function_name" data-json="<?=htmlspecialcharsbx($strFuncJson);?>"> <option value=""><?=static::getMessage('FUNCTION_EMPTY');?></option> <?foreach($this->getFunctionList() as $strGroup => $arGroup):?> <?if(!empty($arGroup['ITEMS'])):?> <optgroup label="<?=$arGroup['NAME'];?>"> <?foreach($arGroup['ITEMS'] as $strFunc => $arFunc):?> <option value="<?=$strFunc;?>"<?=$strSelected;?> data-arguments="<?=htmlspecialcharsbx(\WD\Antirutin\Json::encode($arFunc['ARGS']));?>" <?if($strFunc == $this->get('function_name')):?>selected="selected"<?endif?> ><?=$strFunc;?> - <?=htmlspecialcharsbx($arFunc['NAME']);?></option> <?endforeach?> </optgroup> <?endif?> <?endforeach?> </select> </div> <div data-role="function_arguments"></div> </div> </div> </div> <div class="plugin-form__field"> <label> <input type="hidden" name="<?=$this->getInputName('php_debug_mode');?>" value="N" /> <input type="checkbox" name="<?=$this->getInputName('php_debug_mode');?>" value="Y" data-role="php_debug_mode" <?if($this->get('php_debug_mode') != 'N'):?>checked="checked"<?endif?> /> <?=$this->fieldName('PHP_DEBUG_MODE', true, false);?> </label> </div> <input type="hidden" data-role="error_no_field" value="<?=static::getMessage('ERROR_NO_FIELD');?>" />