~ubuntu-branches/ubuntu/precise/moin/precise-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/editor/filemanager/browser/default/connectors/php/util.php

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-11-13 16:45:52 UTC
  • mfrom: (0.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20081113164552-49t6zf2t2o5bqigh
Tags: 1.8.0-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop recommendation of python-xml, the packages isn't anymore in
    sys.path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php 
2
 
/*
3
 
 * FCKeditor - The text editor for internet
4
 
 * Copyright (C) 2003-2005 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 RemoveFromStart( $sourceString, $charToRemove )
22
 
{
23
 
        $sPattern = '|^' . $charToRemove . '+|' ;
24
 
        return preg_replace( $sPattern, '', $sourceString ) ;
25
 
}
26
 
 
27
 
function RemoveFromEnd( $sourceString, $charToRemove )
28
 
{
29
 
        $sPattern = '|' . $charToRemove . '+$|' ;
30
 
        return preg_replace( $sPattern, '', $sourceString ) ;
31
 
}
32
 
 
33
 
function ConvertToXmlAttribute( $value )
34
 
{
35
 
        return utf8_encode( htmlspecialchars( $value ) ) ;
36
 
}
37
 
?>
 
 
b'\\ No newline at end of file'