' ; // Create the main "Connector" node. echo '' ; // Add the current folder node. echo '' ; $GLOBALS['HeaderSent'] = true ; } function CreateXmlFooter() { echo '' ; } function SendError( $number, $text ) { if ( $_GET['Command'] == 'FileUpload' ) SendUploadResults( $number, "", "", $text ) ; if ( isset( $GLOBALS['HeaderSent'] ) && $GLOBALS['HeaderSent'] ) { SendErrorNode( $number, $text ) ; CreateXmlFooter() ; } else { SetXmlHeaders() ; // Create the XML document header echo '' ; echo '' ; SendErrorNode( $number, $text ) ; echo '' ; } exit ; } function SendErrorNode( $number, $text ) { if ($text) echo '' ; else echo '' ; } ?>