--- /dev/null
+#####\r
+# FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
+# Copyright (C) 2003-2007 Frederico Caldeira Knabben\r
+#\r
+# == BEGIN LICENSE ==\r
+#\r
+# Licensed under the terms of any of the following licenses at your\r
+# choice:\r
+#\r
+# - GNU General Public License Version 2 or later (the "GPL")\r
+# http://www.gnu.org/licenses/gpl.html\r
+#\r
+# - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
+# http://www.gnu.org/licenses/lgpl.html\r
+#\r
+# - Mozilla Public License Version 1.1 or later (the "MPL")\r
+# http://www.mozilla.org/MPL/MPL-1.1.html\r
+#\r
+# == END LICENSE ==\r
+#\r
+# This is the File Manager Connector for Perl.\r
+#####\r
+\r
+sub CreateXmlHeader\r
+{\r
+ local($command,$resourceType,$currentFolder) = @_;\r
+\r
+ # Create the XML document header.\r
+ print '<?xml version="1.0" encoding="utf-8" ?>';\r
+\r
+ # Create the main "Connector" node.\r
+ print '<Connector command="' . $command . '" resourceType="' . $resourceType . '">';\r
+\r
+ # Add the current folder node.\r
+ print '<CurrentFolder path="' . ConvertToXmlAttribute($currentFolder) . '" url="' . ConvertToXmlAttribute(GetUrlFromPath($resourceType,$currentFolder)) . '" />';\r
+}\r
+\r
+sub CreateXmlFooter\r
+{\r
+ print '</Connector>';\r
+}\r
+\r
+sub SendError\r
+{\r
+ local( $number, $text ) = @_;\r
+\r
+ print << "_HTML_HEAD_";\r
+Content-Type:text/xml; charset=utf-8\r
+Pragma: no-cache\r
+Cache-Control: no-cache\r
+Expires: Thu, 01 Dec 1994 16:00:00 GMT\r
+\r
+_HTML_HEAD_\r
+\r
+ # Create the XML document header\r
+ print '<?xml version="1.0" encoding="utf-8" ?>' ;\r
+\r
+ print '<Connector><Error number="' . $number . '" text="' . &specialchar_cnv( $text ) . '" /></Connector>' ;\r
+\r
+ exit ;\r
+}\r
+\r
+1;\r