3
* FCKeditor - The text editor for internet
4
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
6
* Licensed under the terms of the GNU Lesser General Public License:
7
* http://www.opensource.org/licenses/lgpl-license.php
9
* For further information visit:
10
* http://www.fckeditor.net/
12
* "Support Open Source software. What about a donation today?"
14
* File Name: basexml.php
15
* This is the File Manager Connector for ASP.
18
* Frederico Caldeira Knabben (fredck@fckeditor.net)
21
function SetXmlHeaders()
23
// Prevent the browser from caching the result.
25
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT') ;
27
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT') ;
29
header('Cache-Control: no-store, no-cache, must-revalidate') ;
30
header('Cache-Control: post-check=0, pre-check=0', false) ;
32
header('Pragma: no-cache') ;
34
// Set the response format.
35
header( 'Content-Type:text/xml; charset=utf-8' ) ;
38
function CreateXmlHeader( $command, $resourceType, $currentFolder )
42
// Create the XML document header.
43
echo '<?xml version="1.0" encoding="utf-8" ?>' ;
45
// Create the main "Connector" node.
46
echo '<Connector command="' . $command . '" resourceType="' . $resourceType . '">' ;
48
// Add the current folder node.
49
echo '<CurrentFolder path="' . ConvertToXmlAttribute( $currentFolder ) . '" url="' . ConvertToXmlAttribute( GetUrlFromPath( $resourceType, $currentFolder ) ) . '" />' ;
52
function CreateXmlFooter()
57
function SendError( $number, $text )
61
// Create the XML document header
62
echo '<?xml version="1.0" encoding="utf-8" ?>' ;
64
echo '<Connector><Error number="' . $number . '" text="' . htmlspecialchars( $text ) . '" /></Connector>' ;
b'\\ No newline at end of file'