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