Subversion Repositories Applications.papyrus

Rev

Rev 433 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 433 Rev 436
1
<?php 
1
<?php 
2
/*
2
/*
3
 * FCKeditor - The text editor for internet
3
 * FCKeditor - The text editor for internet
4
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
5
 * 
5
 * 
6
 * Licensed under the terms of the GNU Lesser General Public License:
6
 * Licensed under the terms of the GNU Lesser General Public License:
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
8
 * 
8
 * 
9
 * For further information visit:
9
 * For further information visit:
10
 * 		http://www.fckeditor.net/
10
 * 		http://www.fckeditor.net/
11
 * 
11
 * 
12
 * File Name: util.php
12
 * File Name: util.php
13
 * 	This is the File Manager Connector for ASP.
13
 * 	This is the File Manager Connector for ASP.
14
 * 
14
 * 
15
 * File Authors:
15
 * File Authors:
16
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
16
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
17
 */
17
 */
18
 
18
 
19
function RemoveExtension( $fileName )
19
function RemoveExtension( $fileName )
20
{
20
{
21
	return substr( $fileName, 0, strrpos( $fileName, '.' ) ) ;
21
	return substr( $fileName, 0, strrpos( $fileName, '.' ) ) ;
22
}
22
}
23
 
23
 
24
function GetRootPath()
24
function GetRootPath()
25
{
25
{
26
	$sRealPath = realpath( './' ) ;
26
	$sRealPath = realpath( './' ) ;
27
 
27
 
28
	$sSelfPath = $_SERVER['PHP_SELF'] ;
28
	$sSelfPath = $_SERVER['PHP_SELF'] ;
29
	$sSelfPath = substr( $sSelfPath, 0, strrpos( $sSelfPath, '/' ) ) ;
29
	$sSelfPath = substr( $sSelfPath, 0, strrpos( $sSelfPath, '/' ) ) ;
30
 
30
 
31
	//return substr( $sRealPath, 0, strlen( $sRealPath ) - strlen( $sSelfPath ) ) ;
-
 
32
	
31
	return substr( $sRealPath, 0, strlen( $sRealPath ) - strlen( $sSelfPath ) ) ;
33
	return "/home/david/workspace/papyrus";
32
	
34
}
33
}
35
 
34
 
36
 
35
 
37
?>
36
?>