source: companies/celepar/expressoMail1_2/js/fckeditor/editor/filemanager/browser/default/connectors/php/util.php @ 763

Revision 763, 949 bytes checked in by niltonneto, 15 years ago (diff)

Importação inicial do Expresso da Celepar

Line 
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
21function RemoveFromStart( $sourceString, $charToRemove )
22{
23        $sPattern = '|^' . $charToRemove . '+|' ;
24        return preg_replace( $sPattern, '', $sourceString ) ;
25}
26
27function RemoveFromEnd( $sourceString, $charToRemove )
28{
29        $sPattern = '|' . $charToRemove . '+$|' ;
30        return preg_replace( $sPattern, '', $sourceString ) ;
31}
32
33function ConvertToXmlAttribute( $value )
34{
35        return utf8_encode( htmlspecialchars( $value ) ) ;
36}
37?>
Note: See TracBrowser for help on using the repository browser.