Revision 1257,
884 bytes
checked in by niltonneto, 15 years ago
(diff) |
Ticket #475 - Adicionado template default (celepar renomeado).
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[1257] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | * FCKeditor - The text editor for internet |
---|
| 4 | * Copyright (C) 2003-2006 Frederico Caldeira Knabben |
---|
| 5 | * |
---|
| 6 | * Licensed under the terms of the GNU Lesser General Public License: |
---|
| 7 | * http://www.opensource.org/licenses/lgpl-license.php |
---|
| 8 | * |
---|
| 9 | * For further information visit: |
---|
| 10 | * http://www.fckeditor.net/ |
---|
| 11 | * |
---|
| 12 | * "Support Open Source software. What about a donation today?" |
---|
| 13 | * |
---|
| 14 | * File Name: util.php |
---|
| 15 | * This is the File Manager Connector for ASP. |
---|
| 16 | * |
---|
| 17 | * File Authors: |
---|
| 18 | * Frederico Caldeira Knabben (fredck@fckeditor.net) |
---|
| 19 | */ |
---|
| 20 | |
---|
| 21 | function RemoveExtension( $fileName ) |
---|
| 22 | { |
---|
| 23 | return substr( $fileName, 0, strrpos( $fileName, '.' ) ) ; |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | function GetRootPath() |
---|
| 27 | { |
---|
| 28 | $sRealPath = realpath( './' ) ; |
---|
| 29 | |
---|
| 30 | $sSelfPath = $_SERVER['PHP_SELF'] ; |
---|
| 31 | $sSelfPath = substr( $sSelfPath, 0, strrpos( $sSelfPath, '/' ) ) ; |
---|
| 32 | |
---|
| 33 | return substr( $sRealPath, 0, strlen( $sRealPath ) - strlen( $sSelfPath ) ) ; |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.