Changeset 357
- Timestamp:
- 2007-06-03 18:48:59 (18 months ago)
- Location:
- FCKeditor/trunk/editor/filemanager/browser/default
- Files:
-
- 4 modified
-
connectors/php/basexml.php (modified) (1 diff)
-
connectors/php/io.php (modified) (1 diff)
-
frmresourceslist.html (modified) (1 diff)
-
js/fckxml.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/filemanager/browser/default/connectors/php/basexml.php
r355 r357 40 40 41 41 // Set the response format. 42 header( 'Content-Type: text/xml; charset=utf-8' ) ;42 header( 'Content-Type: text/xml; charset=utf-8' ) ; 43 43 } 44 44 -
FCKeditor/trunk/editor/filemanager/browser/default/connectors/php/io.php
r355 r357 112 112 // Get the slash according to the filesystem 113 113 $slash = ( strpos( $sRealPath, '/' ) === false ) ? '\\' : '/' ; 114 $sSelfPath = str_replace( '/', $slash, $sSelfPath) ;114 $sSelfPath = str_replace( '/', $slash, $sSelfPath ) ; 115 115 116 $position = strpos( $sRealPath, $sSelfPath) ;116 $position = strpos( $sRealPath, $sSelfPath ) ; 117 117 118 118 // This can check only that this script isn't run from a virtual dir 119 119 // But it avoids problems the problems that arise if it isn't checked 120 120 if ( $position === false || $position <> strlen( $sRealPath ) - strlen( $sSelfPath ) ) 121 SendError( 1, "Sorry, can't map 'UserFilesPath' to a physical path. You must set the 'UserFilesAbsolutePath' value " . $position) ;121 SendError( 1, 'Sorry, can\'t map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/browser/default/connectors/php/config.php".' ) ; 122 122 123 123 return substr( $sRealPath, 0, $position ) ; -
FCKeditor/trunk/editor/filemanager/browser/default/frmresourceslist.html
r342 r357 108 108 if ( oFolderNode == null ) 109 109 { 110 alert( 'The server didn\'t reply with a proper XML file\r\nCheck your configuration.' ) ;110 alert( 'The server didn\'t reply with a proper XML data. Please check your configuration.' ) ; 111 111 return ; 112 112 } -
FCKeditor/trunk/editor/filemanager/browser/default/js/fckxml.js
r132 r357 62 62 if ( oXmlHttp.readyState == 4 ) 63 63 { 64 if ( oXmlHttp.responseXML == null || oXmlHttp.responseXML.firstChild == null)64 if ( ( oXmlHttp.status != 200 && oXmlHttp.status != 304 ) || oXmlHttp.responseXML == null || oXmlHttp.responseXML.firstChild == null ) 65 65 { 66 alert( 'The server didn\'t send back a proper XML response.\r\n\r\n' + 67 'Requested URL: ' + urlToCall + '\r\n' + 68 'Response text:\r\n' + oXmlHttp.responseText ) ; 66 alert( 'The server didn\'t send back a proper XML response. Please contact your system administrator.\n\n' + 67 'XML request error: ' + oXmlHttp.statusText + ' (' + oXmlHttp.status + ')\n\n' + 68 'Requested URL:\n' + urlToCall + '\n\n' + 69 'Response text:\n' + oXmlHttp.responseText ) ; 69 70 return ; 70 71 } 72 71 73 oFCKXml.DOMDocument = oXmlHttp.responseXML ; 72 if ( oXmlHttp.status == 200 || oXmlHttp.status == 304 ) 73 asyncFunctionPointer( oFCKXml ) ; 74 else 75 alert( 'XML request error: ' + oXmlHttp.statusText + ' (' + oXmlHttp.status + ')' ) ; 74 asyncFunctionPointer( oFCKXml ) ; 76 75 } 77 76 }