<root> <?php if (is_array($message)) { foreach ($message as $msg) { ?> <error><?php echo kc_text::xml_data($msg); ?> </error> <?php } } else { ?> <error><?php echo kc_text::xml_data($message); ?> </error> <?php } ?> </root>
?> " thumb="<?php echo $file['thumb'] ? "yes" : "no"; ?> " smallThumb="<?php echo $file['small_thumb'] ? "yes" : "no"; ?> " fileId="<?php echo $file['file_id']; ?> " attachId="<?php echo $file['attach_id']; ?> "> <name><?php echo kc_text::xml_data($file['name']); ?> </name> </file> <?php } ?> </files> <filescount><?php echo $files_count; ?> </filescount> <filessize><?php echo $files_size; ?> </filessize>
<root> <name><?php echo kc_text::xml_data($name); ?> </name> </root>
/** * 超时错误处理 **/ protected function time_error_msg($message, $data = null) { $output = '<root>'; if (is_array($message)) { foreach ($message as $msg) { $output .= '<error>' . kc_text::xml_data($msg) . '</error>'; } } else { $output .= '<error>' . kc_text::xml_data($message) . '</error>'; } $output .= '</root>'; header("Content-Type: text/xml; charset=UTF-8"); die($output); }
protected function callback($url, $message = "") { $message = kc_text::js_value($message); $CKfuncNum = isset($this->opener['CKEditor']['funcNum']) ? $this->opener['CKEditor']['funcNum'] : 0; if (!$CKfuncNum) { $CKfuncNum = 0; } header("Content-Type: text/html; charset={$this->charset}"); ?> <html> <body> <script type='text/javascript'> var kc_CKEditor = (window.parent && window.parent.CKEDITOR) ? window.parent.CKEDITOR.tools.callFunction : ((window.opener && window.opener.CKEDITOR) ? window.opener.CKEDITOR.tools.callFunction : false); var kc_FCKeditor = (window.opener && window.opener.OnUploadCompleted) ? window.opener.OnUploadCompleted : ((window.parent && window.parent.OnUploadCompleted) ? window.parent.OnUploadCompleted : false); var kc_Custom = (window.parent && window.parent.KCFinder) ? window.parent.KCFinder.callBack : ((window.opener && window.opener.KCFinder) ? window.opener.KCFinder.callBack : false); if (kc_CKEditor) kc_CKEditor(<?php echo $CKfuncNum; ?> , '<?php echo $url; ?> ', '<?php echo $message; ?> '); if (kc_FCKeditor) kc_FCKeditor(<?php echo strlen($message) ? 1 : 0; ?> , '<?php echo $url; ?> ', '', '<?php echo $message; ?> '); if (kc_Custom) { if (<?php echo strlen($message); ?> ) alert('<?php echo $message; ?> '); kc_Custom('<?php echo $url; ?> '); } if (!kc_CKEditor && !kc_FCKeditor && !kc_Custom) alert("<?php echo $message; ?> "); </script> </body> </html><?php }
echo kc_text::js_value(Kohana::config('kc.type')); ?> "; browser.opener.name = "tinymce"; browser.opener.TinyMCE = true; browser.siteId = "<?php echo $site_id; ?> "; _.kuki.domain = document.domain; _.kuki.path = "<?php echo kc_text::js_value(Kohana::config('kc.cookiePath')); ?> "; _.kuki.prefix = "<?php echo kc_text::js_value(Kohana::config('kc.cookiePrefix')); ?> "; $(document).ready(function() { browser.resize(); browser.init(); $('#all').css('visibility', 'visible'); }); $(window).resize(browser.resize); </script> </head> <body> <script type="text/javascript"> $('body').noContext(); </script> <div id="resizer"></div>
<root> <?php foreach ($dirs as $dir) { ?> <dir readable="<?php echo $dir['readable'] ? "yes" : "no"; ?> " writable="<?php echo $dir['writable'] ? "yes" : "no"; ?> " removable="<?php echo $dir['removable'] ? "yes" : "no"; ?> " hasDirs="<?php echo $dir['has_dirs'] ? "yes" : "no"; ?> " dirId="<?php echo $dir['id']; ?> "> <name><?php echo kc_text::xml_data($dir['name']); ?> </name> </dir> <?php } ?> </root>