CanDoOperation('fileman_view_file_structure') || !$USER->CanDoOperation('fileman_edit_existent_files')) $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/include.php"); function callback($buffer) { return $buffer; } ob_start("callback"); if(CModule::IncludeModule("compression")) CCompress::Disable2048Spaces(); header("Content-type: text/xml"); echo '<'.'?xml version="1.0" encoding="'.LANG_CHARSET.'"?>'; echo "\r\n"; function bx_array_walk_recursive(&$array, $callback) { foreach($array as $key=>$val) { if(is_array($array[$key])) bx_array_walk_recursive($array[$key], $callback); else $callback($array[$key], $key); } } function __unescapeuXXX(&$item, $key) { global $APPLICATION; $item = $APPLICATION->UnJSEscape($item); } function __xmlspecialchars($str) { return str_replace("'", "'", htmlspecialchars($str)); } bx_array_walk_recursive($_POST, '__unescapeuXXX'); ?>