3 * FCKeditor - The text editor for internet
4 * Copyright (C) 2003-2006 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?"
15 * This is the File Manager Connector for ASP.
18 * Frederico Caldeira Knabben (fredck@fckeditor.net)
21 function RemoveExtension( $fileName )
23 return substr( $fileName, 0, strrpos( $fileName, '.' ) ) ;
26 function GetRootPath()
28 $sRealPath = realpath( './' ) ;
30 $sSelfPath = $_SERVER['PHP_SELF'] ;
31 $sSelfPath = substr( $sSelfPath, 0, strrpos( $sSelfPath, '/' ) ) ;
33 return substr( $sRealPath, 0, strlen( $sRealPath ) - strlen( $sSelfPath ) ) ;