*** empty log message ***
[project/fckeditor.git] / lib / editor / filemanager / browser / default / connectors / php / basexml.php
CommitLineData
2c41f413
JT
1<?php \r/*
2 * FCKeditor - The text editor for internet\r
3 * Copyright (C) 2003-2004 Frederico Caldeira Knabben\r
4 * \r
5 * Licensed under the terms of the GNU Lesser General Public License:\r
6 * http://www.opensource.org/licenses/lgpl-license.php\r
7 * \r
8 * For further information visit:\r
9 * http://www.fckeditor.net/\r
10 * \r
11 * File Name: basexml.php\r
12 * This is the File Manager Connector for ASP.\r
13 * \r
14 * Version: 2.0 RC2\r
15 * Modified: 2004-12-10 17:49:19\r
16 * \r
17 * File Authors:\r
18 * Frederico Caldeira Knabben (fredck@fckeditor.net)
19 */
20\r
21function CreateXmlHeader( $command, $resourceType, $currentFolder )\r
22{\r
23 // Create the XML document header.\r
24 echo '<?xml version="1.0" encoding="utf-8" ?>' ;\r
25\r
26 // Create the main "Connector" node.\r
27 echo '<Connector command="' . $command . '" resourceType="' . $resourceType . '">' ;\r
28 \r
29 // Add the current folder node.\r
30 echo '<CurrentFolder path="' . ConvertToXmlAttribute( $currentFolder ) . '" url="' . ConvertToXmlAttribute( GetUrlFromPath( $resourceType, $currentFolder ) ) . '" />' ;\r
31}\r
32\r
33function CreateXmlFooter()\r
34{\r
35 echo '</Connector>' ;\r
36}\r
37?>